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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...