Jump to content

plugin auto buff Blood Fury Rogue


Recommended Posts

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
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...