Jump to content

Droidz

Administrators
  • Posts

    12431
  • Joined

  • Last visited

Bug Report Comments posted by Droidz

  1. Hello,

    Start > robotManager.Events.FiniteStateMachineEvents.OnRunState

    Loop > robotManager.Events.FiniteStateMachineEvents.OnRunningLoopState (you need to wait next update)

    End > robotManager.Events.FiniteStateMachineEvents.OnAfterRunState

    robotManager.Events.FiniteStateMachineEvents.OnRunningLoopState += (state, cancel) =>
    {
        if (state.DisplayName == "Regeneration")
        {
            // ...
        }
    };
    
    // OR
    
    robotManager.Events.FiniteStateMachineEvents.OnRunningLoopState += (state, cancel) =>
    {
        if (state is wManager.Wow.Bot.States.Regeneration)
        {
            // ...
        }
    };
    
    // I also add OnCustomEvent, you can create your own event like that robotManager.Events.Events.CustomEventCancelable("Event Name", new object[] { "arg1", "arg2" });
    robotManager.Events.Events.OnCustomEvent += (name, args, cancelable) =>
    {
        if (name == "ItemsManager.UseItem")
        {
            var itemName = (string)args[0];
        }
        else if (name == "SpellManager.CastSpellByNameLUA")
        {
            var spellName = (string)args[0];
        }
        // ...
    };

     

  2. using robotManager.Helpful;
    using wManager.Wow.Helpers;
    using System.Diagnostics;
    
    public class Main : wManager.Plugin.IPlugin
    {
        public void Initialize()
        {
            var timer = Stopwatch.StartNew();
            robotManager.Events.LoggingEvents.OnAddLog += delegate (Logging.Log log)
            {
                if (timer.ElapsedMilliseconds > 3000 && log.Text.Contains("Tundra Mammoth)"))
                {
                    Logging.WriteDebug("Press MultiBarBottomRightButton1");
                    Lua.LuaDoString("RunMacroText(\"/click MultiBarBottomRightButton1\")");
                    timer.Restart();
                }
            };
        }
    
        public void Dispose()
        {
        }
    
        public void Settings()
        {
        }
    }

     

  3. using robotManager.Helpful;
    using wManager.Wow.Helpers;
    using System.Diagnostics;
    
    public class Main : wManager.Plugin.IPlugin
    {
        public void Initialize()
        {
            var timer = Stopwatch.StartNew();
            robotManager.Events.LoggingEvents.OnAddLog += delegate (Logging.Log log)
            {
                if (timer.ElapsedMilliseconds > 3000 && log.Text.Contains("(Traveler's Tundra Mammoth)"))
                {
                    Logging.WriteDebug("Press MultiBarBottomRightButton1");
                    Lua.LuaDoString("RunMacroText(\"/click MultiBarBottomRightButton1\")");
                    timer.Restart();
                }
            };
        }
    
        public void Dispose()
        {
        }
    
        public void Settings()
        {
        }
    }

    You can try this code please

  4. Try to use this bot plugin : Main.cs

    using robotManager.Helpful;
    using wManager.Wow.Helpers;
    
    public class Main : wManager.Plugin.IPlugin
    {
        public void Initialize()
        {
            robotManager.Events.LoggingEvents.OnAddLog += delegate(Logging.Log log)
            {
                if (log.Text.Contains("Cast Тундровый мамонт путешественника (Traveler's Tundra Mammoth)"))
                {
                    Lua.LuaDoString("RunMacroText(\"/cast Тундровый мамонт путешественника\")");
                }
            };
        }
    
        public void Dispose()
        {
        }
    
        public void Settings()
        {
        }
    }

     

  5. I don't have the problem. 
    I rebooted auth server, you still get this error? 
    You can access to this address ? https://auth.wrobot.eu/o
    You can also try to use google or cloudflare DNS (and restard computer). 

×
×
  • Create New...