View Full Version : Differences between sleep and wait
leleog
09-02-2012, 04:34 PM
So, like the name said, could someone please explain to me the difference between sleep(math.random(x,y)), delayWalker(x) and wait(x,y)?
Thanks!
Stusse
09-02-2012, 04:41 PM
its the same. Instead of be having to write sleep math random you just write wait, it's the same function :)
leleog
09-02-2012, 04:46 PM
nice man! thanks for your answer, but, does delayWalker(x) is the same thing as the other two functions?
Stusse
09-02-2012, 05:23 PM
nice man! thanks for your answer, but, does delayWalker(x) is the same thing as the other two functions?
You have to divide lua script and cavebot script. If you wait(x, y) it will wait to preform next action in the lua script. But it will keep the walker going. Therefor if you want to stand and say hi deposit all yes, you don't want to walk away, therefore you delay the walker X time, or set the walker off, preform script, and set the walker on again. So wait(500, 1000) waits between 0,5-1s before it attempts the next coming actions in lua, while delayWalker(5000) delays the walker to not move for 5 seconds! It got a bit blurry but I hope you understood!
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.