inselmann 28 Posted May 1, 2018 Share Posted May 1, 2018 Hi there, i want to run Blood Fury on my classic wow rogue every 2minutes. I tried already: But it does not work. I would appreciate it if somebody can take a look, thank you if (SpellManager.KnowSpell(20572) && !ObjectManager.Me.IsDeadMe) { wManager.Wow.Helpers.Lua.RunMacroText("/cast Blood Fury"); Logging.WriteDebug("Use Blood Fury"); I also tried SpellManager.CastSpellByName("Blood Fury"); RunMacroText("/cast Blood Fury"); using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.ComponentModel; using System.Diagnostics; using System.Threading; using robotManager.Helpful; using robotManager.Products; using wManager.Wow.Helpers; using wManager.Wow.ObjectManager; public class Main : wManager.Plugin.IPlugin { private bool isRunning; private BackgroundWorker pulseThread; private static WoWLocalPlayer Me = ObjectManager.Me; public void Start() { pulseThread = new BackgroundWorker(); pulseThread.DoWork += Pulse; pulseThread.RunWorkerAsync(); } public void Pulse(object sender, DoWorkEventArgs args) { try { while (isRunning) { if (!Products.InPause && Products.IsStarted) { if (SpellManager.KnowSpell(20572) && !ObjectManager.Me.IsDeadMe) { wManager.Wow.Helpers.Lua.RunMacroText("/cast Blood Fury"); Logging.WriteDebug("Use Blood Fury"); Thread.Sleep(Usefuls.Latency + 100); } } Thread.Sleep(10000); } } catch (Exception ex) { } } public void Dispose() { try { isRunning = false; } catch (Exception e) { } } public void Initialize() { isRunning = true; Start(); } public void Settings() { } } Link to comment https://wrobot.eu/forums/topic/9256-plugin-auto-buff-blood-fury-rogue/ Share on other sites More sharing options...
inselmann 28 Posted May 1, 2018 Author Share Posted May 1, 2018 Ah i got it working...if somebody come across the same problems, in vanilla: SpellManager.CastSpellByIdLUA(20572); Link to comment https://wrobot.eu/forums/topic/9256-plugin-auto-buff-blood-fury-rogue/#findComment-43019 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