JackDaniels 3 Posted December 3, 2017 Share Posted December 3, 2017 Hi there, Is it possible to have a random wait time after loot? like putting in 2 values and it picks a random number in between as its wait time? Link to comment https://wrobot.eu/forums/topic/7901-random-wait-time/ Share on other sites More sharing options...
Droidz 2738 Posted December 4, 2017 Share Posted December 4, 2017 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 vodkalol and JackDaniels 2 Link to comment https://wrobot.eu/forums/topic/7901-random-wait-time/#findComment-36170 Share on other sites More sharing options...
JackDaniels 3 Posted December 4, 2017 Author Share Posted December 4, 2017 Oh wow, thanks Droidz! this is even better than i was looking for! Link to comment https://wrobot.eu/forums/topic/7901-random-wait-time/#findComment-36193 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now