May 8, 2025May 8 I don't see any way to Reincarnate (use Ankh), is it possible for the bot to use this when it's available?
May 11, 2025May 11 (untested) public class Main : wManager.Plugin.IPlugin { public void Initialize() { robotManager.Events.FiniteStateMachineEvents.OnRunState += delegate (robotManager.FiniteStateMachine.Engine engine, robotManager.FiniteStateMachine.State state, System.ComponentModel.CancelEventArgs cancelable) { if (state is wManager.Wow.Bot.States.Resurrect) { bool popupExists = wManager.Wow.Helpers.Lua.LuaDoString<bool>( "return StaticPopup1 and StaticPopup1 ~= nil"); if (popupExists) { bool button2Exists = wManager.Wow.Helpers.Lua.LuaDoString<bool>( "return StaticPopup1Button2 and StaticPopup1Button2 ~= nil"); string buttonToClick = button2Exists ? "StaticPopup1Button2:Click()" : "StaticPopup1Button1:Click()"; wManager.Wow.Helpers.Lua.LuaDoString(buttonToClick); } } }; } public void Dispose(){} public void Settings(){} }
Create an account or sign in to comment