What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal
RebornBuddy Forums

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

undonelyric

New Member
Joined
Mar 25, 2014
Messages
5
[Plugin] Potion Of Treasure Finding - Auto Use (Updated)

**UPDATE**: The plugin now waits 20 seconds to use the Potion Of Treasure Finding to compensate for instance zoning. This update should correct any problems. I tested and it's working on my end


I saw a few people including myself that wanted a plugin to use the Potion Of Treasure Finding automatically. That's what this plugin does!

How does it work?
The plugin searches for the Potion Of Treasure Finding in your bag, uses it, and waits until the full duration to use the next one. I've been testing this for the past 3 days and it is working perfect for me.

Please Note: This will keep using The Potion Of Treasure Finding until you have no more left in your bag. Make sure you are at your farming location before you enable the plugin or you may waste the buff.

Simply download the plugin, unzip and put the "Potion of TF" folder inside your "plugins" folder, load up Honorbuddy, enable the plugin and you're ready to go.

If you have any questions, let me know. :)

Download: View attachment Potion of TF v2.zip

I can not take full credit for this plugin as I modified andygami's Potion of Luck plugin to accomplish this.
Original creator: https://www.thebuddyforum.com/members/123704-andygami.html
 
Last edited:
I farmed it in firelands and it uses the potion every time it enters the raid instead of every 60 mins. Any idea how to solve this?
 
I farmed it in firelands and it uses the potion every time it enters the raid instead of every 60 mins. Any idea how to solve this?
Hi, Dtcxjn,

This may be a timing issue. Your buffs are probably still being reconstructed as you zone into a raid, and the plugin re-applies the buff when it sees it missing during this few seconds it takes to zone in.

cheers,
chinajade
 
I farmed it in firelands and it uses the potion every time it enters the raid instead of every 60 mins. Any idea how to solve this?


Dtcxjn,
I did not test this in instance farming so I apologize for that. I only use it farming in tol'barad for Embersilk cloth so I don't really ever zone in or out. I'll see if I can update it so it won't auto re-use when going in and out of instances.
 
Dtcxjn,
I did not test this in instance farming so I apologize for that. I only use it farming in tol'barad for Embersilk cloth so I don't really ever zone in or out. I'll see if I can update it so it won't auto re-use when going in and out of instances.

This should help you fixing it :)

private void zoneChange(BotEvents.Player.MapChangedEventArgs args)
{
//Stop plugin for some time here. Im using StyxWoW.Sleep, but it is obsolete. http://docs.honorbuddy.com/html/ef237e53-d049-17cd-80fe-5232ccbbfecd.htm this one will probably work
//StyxWoW.Sleep(10000);
}
 
Trixiap, Thank you! Yes it that helped. :)
FYI, may I call your attention to this article?
https://www.thebuddyforum.com/honor...er-forum/220957-thread-sleep.html#post2008196

Code:
 private void zoneChange(BotEvents.Player.MapChangedEventArgs args)
{
//Stop plugin for some time here. Im using StyxWoW.Sleep, but it is obsolete. [url]http://docs.honorbuddy.com/html/ef23...32ccbbfecd.htm[/url] this one will probably work
//StyxWoW.Sleep(10000);
}
With this code, you're blocking HB's execution completely for 10 seconds. It's a bad and dirty solution for plugins.
Better use stopwatch instead and check in the Pulse() function if it has lapsed.

HTH ;)
 
hey i have tried the version uploaded to the thread and sadly it still uses the potion more then once an hour for me (im doing firelands trash farm, so instances)

i also tried to implement the stopwatch and the delay methods mentioned in corleone's post, but failed miserably :/ (the plugin didnt compile anymore)

does anyone have a version of this plugin which drinks the potion only once an hour while you do instances? :)

would be really appriciated
 
Yo guys. So I ran the new version of the plugin and I'm still getting my potion popping early when I phase in.

As a quick fix, I changed this in the xml file:

public static bool IsPotionofLuckOnCooldown() {
StyxWoW.Sleep(20000);
return PotionofLuckItem.Cooldown > 0;

Into this

public static bool IsPotionofLuckOnCooldown() {
StyxWoW.Sleep(30000);
return PotionofLuckItem.Cooldown > 0;

Thank me later, if anyone gets helped by this.

Edit: Oop, it just started doing it again. God damn it.
 
Last edited:
I think i found a way.
Just add in your profile :
<CustomBehavior File="Hooks\DoWhen" UseWhen="!Me.HasAura(80263) &amp;&amp; HasItem(58488) &amp;&amp; !Me.IsCasting" ActivityName="UseSomeItem" AllowUseDuringCombat="False" AllowUseWhileFlying="False" >
<CustomBehavior File="Message" Text="Use Potion of Treasure Finding" LogColor="RED" />
<CustomBehavior File="Misc\RunLua" Lua="UseItemByName(58488)" WaitTime="1000" />
</CustomBehavior>

and
<CustomBehavior File="Hooks\DoWhen" ItemId="58488" UseWhen="!Me.HasAura(80263) &amp;&amp; HasItem(58488) &amp;&amp; !Me.IsCasting" AllowUseWhileFlying="False" AllowUseDuringCombat="false" />

Tell me if this works
 
Back
Top