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!

[Request] Elixir/Potion Plugin

lovegame

New Member
Joined
Nov 20, 2011
Messages
95
Hello,


If anyone would take the time to write a plugin to use for example Potion of Treasure Finding (and rebuff when it's used) that would be great.



I'll trade a like and mow your lawn virtually!
=))
 
The Pandaria version of the potion is Potion of Luck. I tried the addon after seeing this post and it worked for me. You'll have to mess with the settings for the plugin.
 
Hey i can't get a plugin that works with Potion of luck, so if anyone can link up a plugin that can do it, or if there is't any, then please make one. :)

Thanks on behalf.
 
Hey i can't get a plugin that works with Potion of luck, so if anyone can link up a plugin that can do it, or if there is't any, then please make one. :)

Thanks on behalf.

A Lil' help on this side, try to make a plugin yourself, good way to find yourself a way to dev more after that.

To use "Me" as a Shortcut for your current character logged in :

Code:
private static LocalPlayer Me = StyxWoW.Me;

To use an item, if we don't already have the AURA_ID active, and if the item isn't on cooldown :

Code:
if ((Me != null) && Me.IsValid && StyxWoW.IsInGame && StyxWoW.IsInWorld)
{
    // Security checks
    if (!Me.Mounted && !Me.IsOnTransport && !Me.IsResting && !Me.IsDead && !Me.HasAura(YOUR_ITEM_AURA_ID))
    {
        using (WoWItem YOUR_ITEM_NAME = Styx.StyxWoW.Me.BagItems.FirstOrDefault(item => item.Entry == YOUR_ITEM_ID))
	{
		if(YOUR_ITEM_NAME != null && YOUR_ITEM_NAME.CooldownTimeLeft == TimeSpan.Zero)
			YOUR_ITEM_NAME.Use();
	}
    }
}
 
I tryed to make one, but had no luck. I am not very good at programming and stuff :/ can someone please help me out here?
 
Well, not tested, but should work :o it's supposed to make "Potion of luck" work, but can work with other elixirs.

To add another elixir :

- Find the ItemID / AuraID on WoWHead

- Under line 50 in the file uncomment the line (remove "//") and replace the informations (YOUR_ITEM_NAME, YOUR_ITEM_ID, YOUR_AURA_ID)

- After the line 58 in the file, uncomment the line and replace WHAT_YOU_WANT by anything you want.

- Finally, on line 70 uncomment the line, and replace UseWHAT_YOU_WANT by the named var above, and YOUR_ITEM_NAME by the item name...

Example :

PHP:
new Elixir { Name = "Noggenfogger Elixir", ItemID = 8529, AuraID = 16589 },

private static bool UseNoggenfoggerElixir = true;

if (UseNoggenfoggerElixir) { UseElixir("Noggenfogger Elixir"); }

You can add every elixir you want, enable/disable them.
 

Attachments

Back
Top