Jump to content

Recommended Posts

Hello, use plugin like:

using System.Threading;
using robotManager.FiniteStateMachine;
using robotManager.Helpful;
using wManager.Wow.Helpers;

public class Main : wManager.Plugin.IPlugin
{
    public void Initialize()
    {
        robotManager.Events.FiniteStateMachineEvents.OnAfterRunState += delegate(Engine engine, State state)
        {
            try
            {
                if (Conditions.InGameAndConnectedAndAliveAndProductStartedNotInPause &&
                    !Conditions.IsAttackedAndCannotIgnore &&
                    state.DisplayName == "Looting")
                {
                    Thread.Sleep(Others.Random(1000, 5000));
                }
            }
            catch {}
        };
    }

    public void Dispose()
    {
    }

    public void Settings()
    {
    }
}

 

RandomWaitAfterLoot.cs

Link to comment
https://wrobot.eu/forums/topic/7901-random-wait-time/#findComment-36170
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...