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.
private static LocalPlayer Me = StyxWoW.Me;
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();
}
}
}
new Elixir { Name = "Noggenfogger Elixir", ItemID = 8529, AuraID = 16589 },
private static bool UseNoggenfoggerElixir = true;
if (UseNoggenfoggerElixir) { UseElixir("Noggenfogger Elixir"); }