maukor 34 Posted April 20, 2019 Share Posted April 20, 2019 My bot is not pressing macros when he's dead, is there an option? I need macro: /script acceptRessurect() Link to comment https://wrobot.eu/forums/topic/11088-press-macro-when-dead/ Share on other sites More sharing options...
Findeh 34 Posted April 20, 2019 Share Posted April 20, 2019 Most likely you will have to do is as a plugin Link to comment https://wrobot.eu/forums/topic/11088-press-macro-when-dead/#findComment-52909 Share on other sites More sharing options...
maukor 34 Posted April 20, 2019 Author Share Posted April 20, 2019 Just now, Findeh said: Most likely you will have to do is as a plugin The problem is, vanilla doesnt support macros Link to comment https://wrobot.eu/forums/topic/11088-press-macro-when-dead/#findComment-52910 Share on other sites More sharing options...
Droidz 2738 Posted April 20, 2019 Share Posted April 20, 2019 Hello, use plugin like (no tested): using System.Threading; using robotManager.Products; using wManager.Plugin; using wManager.Wow.Helpers; using wManager.Wow.ObjectManager; public class Main : IPlugin { private bool _isLaunched; public void Initialize() { _isLaunched = true; while (_isLaunched && Products.IsStarted) { if (Conditions.InGameAndConnected && Conditions.ProductIsStartedNotInPause && ObjectManager.Me.IsDead) { Lua.LuaDoString("AcceptResurrect()"); Thread.Sleep(1000); } Thread.Sleep(150); } } public void Dispose() { _isLaunched = false; } public void Settings() { } } Link to comment https://wrobot.eu/forums/topic/11088-press-macro-when-dead/#findComment-52911 Share on other sites More sharing options...
maukor 34 Posted April 20, 2019 Author Share Posted April 20, 2019 Just now, Droidz said: Hello, use plugin like (no tested): using System.Threading; using robotManager.Products; using wManager.Plugin; using wManager.Wow.Helpers; using wManager.Wow.ObjectManager; public class Main : IPlugin { private bool _isLaunched; public void Initialize() { _isLaunched = true; while (_isLaunched && Products.IsStarted) { if (Conditions.InGameAndConnected && Conditions.ProductIsStartedNotInPause && ObjectManager.Me.IsDead) { Lua.LuaDoString("AcceptResurrect()"); Thread.Sleep(1000); } Thread.Sleep(150); } } public void Dispose() { _isLaunched = false; } public void Settings() { } } Hi, it works. but the problem is, I need to stop all other actions, even Release corpse on bot, All i need is just spam that AcceptRessurect forever, but bot writes "Idle" and do nothing, or if i use quester he ressurect himself, my another char cant cast Resurect on him cause he's non targetable anymore Link to comment https://wrobot.eu/forums/topic/11088-press-macro-when-dead/#findComment-52913 Share on other sites More sharing options...
Droidz 2738 Posted April 20, 2019 Share Posted April 20, 2019 using wManager.Wow.ObjectManager; public class Main : wManager.Plugin.IPlugin { public void Initialize() { robotManager.Events.FiniteStateMachineEvents.OnBeforeCheckIfNeedToRunState += (engine, state, cancelable) => { try { if (state is wManager.Wow.Bot.States.Resurrect) cancelable.Cancel = true; } catch { } }; } public void Dispose() { } public void Settings() { } } Link to comment https://wrobot.eu/forums/topic/11088-press-macro-when-dead/#findComment-52914 Share on other sites More sharing options...
maukor 34 Posted April 20, 2019 Author Share Posted April 20, 2019 Just now, Droidz said: using wManager.Wow.ObjectManager; public class Main : wManager.Plugin.IPlugin { public void Initialize() { robotManager.Events.FiniteStateMachineEvents.OnBeforeCheckIfNeedToRunState += (engine, state, cancelable) => { try { if (state is wManager.Wow.Bot.States.Resurrect) cancelable.Cancel = true; } catch { } }; } public void Dispose() { } public void Settings() { } } After first accept ressurect bot writes: Bot state: Idle Link to comment https://wrobot.eu/forums/topic/11088-press-macro-when-dead/#findComment-52915 Share on other sites More sharing options...
Dreamful 148 Posted April 20, 2019 Share Posted April 20, 2019 using robotManager.Helpful; using wManager.Wow.Enums; using wManager.Wow.Helpers; using wManager.Events; using wManager.Wow.ObjectManager; using System.Media; using System.Windows.Forms; using System; using System.Threading; public class Main : wManager.Plugin.IPlugin { private bool _isRunning; /* Code here runs when the plugin is enabled and the bot it started. */ public void Initialize() { _isRunning = true; Logging.Write("[SpirithealerFixer] Loaded."); SpirithealerAccept(); } public void SpirithealerAccept() { while (_isRunning) { try { if (ObjectManager.Me.HaveBuff(8326)) { Lua.LuaDoString("StaticPopup1Button1:Click()"); } } catch (Exception e) { Logging.WriteError(" ERROR: " + e); } Thread.Sleep(10); // Pause 10 ms to reduce the CPU usage. } } public void Dispose() { _isRunning = false; Logging.Write("[SpirithealerFixer] Stopped."); } public void Settings() { Logging.Write("[SpirithealerFixer] No settings."); } } I have the problem the Spirithealer rezzing is till today not working on Woltk, i made a plugin that spams the Accept button all day long if you have a dead debuff.https://wotlk.evowow.com/?spell=8326 i dont know if that works, but just change it for the dead buff in vanilla and you good to go. Hope i understand your usage correctly. Peace, Dreamful Link to comment https://wrobot.eu/forums/topic/11088-press-macro-when-dead/#findComment-52916 Share on other sites More sharing options...
Droidz 2738 Posted April 21, 2019 Share Posted April 21, 2019 20 hours ago, maukor said: After first accept ressurect bot writes: Bot state: Idle Problem is probably in your profile, plugins change nothing about that Link to comment https://wrobot.eu/forums/topic/11088-press-macro-when-dead/#findComment-52934 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now