What's new
  • Visit Rebornbuddy
  • Visit Resources
  • Visit API Documentation
  • Visit Downloads
  • Visit Portal
  • Visit Panda Profiles
  • Visit LLamamMagic

How to add wait - URGET - Important

MonsterMMORPG

Member
Joined
Aug 22, 2012
Messages
463
Reaction score
1
Hello. At C# we are able to wait with threading.sleep

but i don't think so that would work well at plugins

i want to add some delay between these 2 lines

Zeta.CommonBot.BotMain.Stop();

Zeta.CommonBot.BotMain.Start();


how can i add delay ? like 5 seconds

ty
 
Hello. At C# we are able to wait with threading.sleep

but i don't think so that would work well at plugins

i want to add some delay between these 2 lines

Zeta.CommonBot.BotMain.Stop();

Zeta.CommonBot.BotMain.Start();


how can i add delay ? like 5 seconds

ty

not smart to try and delay the bot. it functions by being responsive. if you delay it you will only slow it down / make it appear even dumber than it already is at times.
 
Why do you put "URGENT" in all of your topic titles, as if what you have to say is more important than everyone else?
 
not smart to try and delay the bot. it functions by being responsive. if you delay it you will only slow it down / make it appear even dumber than it already is at times.

because right now it is not working since there is no delay between those 2 commands
 
I'll need more information on what you're trying to do before I can suggest a solution.
So please, needz moar infor!
 
Maybe a wait timer something along the lines of <WaitTimer questId="1" waitTime="250" />, like Panda said, can't really suggest a solution without knowing what you are trying to do.
 
Also the Devs used:

BotMain.PauseFor(System.TimeSpan.FromSeconds(2));
Thread.Sleep(2000);

in their Unstucker Plugin, so I believe it should work
 
Back
Top