May 1, 20187 yr 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() { } }
May 1, 20187 yr Author Ah i got it working...if somebody come across the same problems, in vanilla: SpellManager.CastSpellByIdLUA(20572);
Create an account or sign in to comment