• Visit Rebornbuddy
  • [Plugin] UltiBuffer - ultimate item buffer

    Discussion in 'Uncataloged' started by Trixiap, Aug 26, 2014.

    1. Trixiap

      Trixiap Member

      Joined:
      Nov 18, 2010
      Messages:
      441
      Likes Received:
      10
      Trophy Points:
      18
      UltiBuffer
      What is UltiBuffer?
      UltiBuffer is plugin, that allows you to set up list of items with buff that you would like to use when you are using Honorbuddy.


      Why use UltiBuffer and not other same plugins?

      1. UltiBuffer is free and always will be
      2. You have freedom to choose which items do you want use - just insert two numbers in config file
      3. Lightweight and fast (other same plugins are at least twice as big) - main part is only 12 lines of code
      4. Dev listen to you, if you have any idea about new functionality, just post it and if it is realizable it will be included in next release

      How to use it
      1. Download zip file
      2. Unpack it in HB\Plugins folder
      3. Edit items.txt (inside UltiBuffer folder) if you want add custom items (bellow you can see how edit it)
      4. Enable plugin in HB
      5. Enjoy!

      How to add / remove items
      Add
      Find this item on WoWhead and copy ID from url
      Code:
      http://www.wowhead.com/item=[B][SIZE=3]93351[/SIZE][/B]
      then click on "Use:" on that item
      UltiHelp.png
      it will redirect you on spell page where you copy ID from url
      Code:
      http://www.wowhead.com/spell=[B][SIZE=3]135855[/SIZE][/B]
      When you have these two numbers, just insert them to items.txt (inside UltiBuffer folder) in following format

      Code:
      ID of item [B],[/B] ID of spell
      example
      Code:
      93351,135855
      If you want add item, that doesn´t have spell/buff on use, just replace ID of spell with 0
      example
      Code:
      87391,0
      Done! Just Disable/Enable plugin in HB (no need to restart HB)

      Remove
      It you want remove some item, just search wowhead for that item and copy ID from url
      Code:
      http://www.wowhead.com/item=[B]93351[/B]
      Search items.txt for that ID and delete entire line (item ID is first number)

      Default items
      • Potion of Luck (id: 93351)
      • Greater Potion of Luck (id: 76091)
      • Singing Crystal (id: 103641)
      • Book of the Ages (id: 103642)
      • Dew of Eternal Morning (id: 103643)
      • Windfeather Plume (id: 104287)
      • Crystal of Insanity (id: 86569)
      • Strange Glowing Mushroom (id: 104312)
      • Faintly-Glowing Herb (id: 104289)
      • Scuttler's Shell (id: 104293)

      Known bugs
      • Using Timeless isle items when not on Timeless isle -> Item is removed from list and plugin must be Disabled/Enabled to use that item again (restart it when on Timeless isle)



      ToDo
      Make UltiBuffer more user friendly (nice interface for editing item list)
      Include option to use item on specific map/arena etc.


      Changelog

      1.0.1.20141109 - Beta release
      Added:
      • Plugin will automaticly open any kind of container
      • Plugin can use items, that will not buff you on their CD
      Maybe fixed?:
      • Battle Horn

      1.0.0.20140828 - Beta release
      Fixed:
      • Zone change bug - Plugin is now correctly check buffs and not using potion after zone change with active buff
      • Timeless isle items - Plugin now reload list after entering Timeless isle
      • Taxi & Mount - Plugin doesn´t try to use items on mount and taxi
      • Dead & under CC & in combat - Plugin don´t try to use items when player is dead or under CC (CC need testing, maybe doesn´t work correctly) and also doesn´t use items in combat.


      1.0.1.20141109 - Beta release
       

      Attached Files:

      Last edited: Nov 8, 2014
    2. Owneth

      Owneth Member

      Joined:
      Jan 15, 2010
      Messages:
      723
      Likes Received:
      5
      Trophy Points:
      18
      Mod approved?
       
    3. Gentoo

      Gentoo Active Member

      Joined:
      Apr 29, 2011
      Messages:
      1,365
      Likes Received:
      21
      Trophy Points:
      38
      Why would it need to be mod approved, it isn't compiled..

      Thx Trix.
       
    4. Trixiap

      Trixiap Member

      Joined:
      Nov 18, 2010
      Messages:
      441
      Likes Received:
      10
      Trophy Points:
      18
      This is public section - you can post here what you want without approval if it is not breaking rules
       
    5. Owneth

      Owneth Member

      Joined:
      Jan 15, 2010
      Messages:
      723
      Likes Received:
      5
      Trophy Points:
      18
      oh sorry i didn't mean to offend! :p
       
    6. Stormchasing

      Stormchasing Community Developer

      Joined:
      Jan 15, 2011
      Messages:
      4,029
      Likes Received:
      47
      Trophy Points:
      0
      Some suggestions (even if a plugin incl. gui for configuration already exists ;))

      - Change Map Timer (switching between open world and dungeons could be a problem!)
      - Loading Screens (they could be a problem)
      - u wanna buff when ur Dead?
      - ever tested your logic with a potion that has a cooldown of X minutes and u die before the X minutes are gone? from code i would say this will fuck up the plugin at this point (or make it useless), u should rework the idea / solution
       
    7. Trixiap

      Trixiap Member

      Joined:
      Nov 18, 2010
      Messages:
      441
      Likes Received:
      10
      Trophy Points:
      18
      Thx for suggestions Storm, I know that same plugin already exist, but it is not free and competition is always good :)

      First three are valid, but I think that last one is ok, because I am checking cooldown on item so if HB is not bugged, should be ok. Also even if cooldown is bugged, it will blacklist this item and will not try to use it until plugin restart
       
      Last edited: Aug 27, 2014
    8. Stormchasing

      Stormchasing Community Developer

      Joined:
      Jan 15, 2011
      Messages:
      4,029
      Likes Received:
      47
      Trophy Points:
      0
      Will Look again :) maybe i've misread the condition for removing items from list. Watched the Code while booting my comp at work :)
       
    9. Trixiap

      Trixiap Member

      Joined:
      Nov 18, 2010
      Messages:
      441
      Likes Received:
      10
      Trophy Points:
      18
      Condition for removing items from list is here for situation when you can´t use item. It will handle item with lvl requirement and also items that for some reason were not used even if they should. Basically it is my failsafe mechanism
       
    10. Stormchasing

      Stormchasing Community Developer

      Joined:
      Jan 15, 2011
      Messages:
      4,029
      Likes Received:
      47
      Trophy Points:
      0
      Yepp that's what i've read from code, and where i see the advantage AND at the same time the disadvantage

      Think about:
      - use a potion with a cooldown of X minutes
      - u die, buff fades
      - plugin tries to use the item again, but can't because of the cooldown
      - item will be removed from the list (and maybe the file?)
      - 5 minutes later item is ready and could be used but won't be because u already removed it and haven't repopulated your list

      that's what my last point was about :)
      So your failsafe is needed, but should be refined ... there are multiple ways of doin it

      And yes (back to your previous post), competition is always good, and i have absolutely no problem with it (if i had a problem, i wouldn't giev any suggestions for improvemtns ;) )
       
    11. Trixiap

      Trixiap Member

      Joined:
      Nov 18, 2010
      Messages:
      441
      Likes Received:
      10
      Trophy Points:
      18
      I am checking cooldown on item. It will not try to use item that have cooldown. I will test it today.

      Removing from list is just deleting it from memory list, it will not delete it from file.
       
      Last edited: Aug 27, 2014
    12. Stormchasing

      Stormchasing Community Developer

      Joined:
      Jan 15, 2011
      Messages:
      4,029
      Likes Received:
      47
      Trophy Points:
      0
      yeah so i read it partially right ... failsafe for timeless i think?
      u should think about repopulating / refreshing the list on zone/mapchange or every X minutes or on BotStart, for the case the item was removed
      so u can make sure (without changing the datastructure of your items fiel) that items will be used if the toon enters timeless isle :)
       
    13. lancer34

      lancer34 New Member

      Joined:
      Oct 7, 2012
      Messages:
      45
      Likes Received:
      0
      Trophy Points:
      0
      Can you put the plugin in buddy store?
       
    14. ramptar

      ramptar New Member

      Joined:
      Aug 14, 2014
      Messages:
      13
      Likes Received:
      0
      Trophy Points:
      0
      It tried to use potion of luck when I was mounted, stunned and dead.
      So I fixed the line a little, have not tested it over a long time but so far so good.
      Code:
       if ((item != null) && (item.Cooldown == 0) && (!Styx.CommonBot.SpellManager.GlobalCooldown) && !Me.Stunned && Me.IsAlive && !Me.IsOnTransport && !Me.OnTaxi) //Ramptar
      
       
    15. Trixiap

      Trixiap Member

      Joined:
      Nov 18, 2010
      Messages:
      441
      Likes Received:
      10
      Trophy Points:
      18
      I already have better version, but still trying to fix zoning :) Anyways thanks for contribution, I will add transport and taxi to code.

      No I can´t and I don´t want. You can´t customize plugins from buddystore. Just install it old way
       
      Last edited: Aug 27, 2014
    16. lancer34

      lancer34 New Member

      Joined:
      Oct 7, 2012
      Messages:
      45
      Likes Received:
      0
      Trophy Points:
      0
      Thanks for answering ^^.
       
    17. Stormchasing

      Stormchasing Community Developer

      Joined:
      Jan 15, 2011
      Messages:
      4,029
      Likes Received:
      47
      Trophy Points:
      0
      a very common problem :)
      should be easy for ya, lil hint ... inspect BotEvents ;)
       
    18. Trixiap

      Trixiap Member

      Joined:
      Nov 18, 2010
      Messages:
      441
      Likes Received:
      10
      Trophy Points:
      18
      Thx for hint, I know about BotEvents.Player.OnMapChanged or hard way - check map ids. I am trying to find some elegant way how to do it, but my Visual Studio is broken atm so I must reinstall it.
       
    19. Trixiap

      Trixiap Member

      Joined:
      Nov 18, 2010
      Messages:
      441
      Likes Received:
      10
      Trophy Points:
      18
      New release (download in first post)

      1.0.0.20140828 - Beta release
      Fixed:
      • Zone change bug - Plugin is now correctly check buffs and not using potion after zone change with active buff
      • Timeless isle items - Plugin now reload list after entering Timeless isle
      • Taxi & Mount - Plugin doesn´t try to use items on mount and taxi
      • Dead & under CC & in combat - Plugin don´t try to use items when player is dead or under CC (CC need testing, maybe doesn´t work correctly) and also doesn´t use items in combat.
       
    20. happyfriet

      happyfriet Active Member

      Joined:
      Jan 14, 2013
      Messages:
      1,271
      Likes Received:
      19
      Trophy Points:
      38
      Thanks man - very simple but really effective plugin.
       

    Share This Page