Jump to content

Recommended Posts

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

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

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

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

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

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...