July 7, 20196 yr Is there a way to make my mage drink more than once so it's at full mana? Only will drink once and then just sits until its done with regen...
July 8, 20196 yr sorry for the delay but try and use this. it should work (not TESTED) using System.Threading; using wManager.Wow.Helpers; using wManager.Plugin; using robotManager.Helpful; using wManager.Wow.ObjectManager; using robotManager.FiniteStateMachine; using robotManager.Events; using System.ComponentModel; public class Main : IPlugin { private bool Loading; public void Initialize() { Loading = true; FiniteStateMachineEvents.OnRunState += Regen; } public void Regen(Engine engine, State state, CancelEventArgs cancelable) { if (state.DisplayName == "Regen" && state.NeedToRun && !ObjectManager.Me.InCombat) { if (ItemsManager.HasItemById(FoodID) <= 1 && ObjectManager.Me.HealthPercent <= %) { ItemsManager.UseItem("FoodName"); if (ObjectManager.Me.ManaPercentage <= % && ItemsManager.HasItemById(DrinkID)) { ItemsManager.UseItem("DrinkName"); } Thread.Sleep(30000); while (ObjectManager.Me.HaveBuff("Food") || ObjectManager.Me.HaveBuff("Drink")) { Thread.Sleep(5000); } } } } public void Dispose() { Loading = false; } public void Settings() { Logging.Write("Plugin has no Settings."); } }
Create an account or sign in to comment