Page 1 of 1

[help] waypoint wait/stop command

Posted: Sun Jul 17, 2011 2:17 pm
by xxxoxxx
Hi guys.

my bot is working great but i want to know how to set my char waypoint to wait or stop

exp:

<!-- # 1 --><waypoint x="-3689" z="-7952"></waypoint>
<!-- # 2 --><waypoint x="-3574" z="-8057"></waypoint>
<!-- # 3 --><waypoint x="-3478" z="-8003"></waypoint> <----- when my char come here i want to him wait like 10min or stop and when my char teleport he run first line to continue

is this Possible or not ?


thanks for wired question ~~

Re: [help] waypoint wait/stop command

Posted: Sun Jul 17, 2011 2:34 pm
by nerf
<!-- # 3 --><waypoint x="-3478" z="-8003"> player:rest(600) </waypoint>


http://www.solarstrike.net/phpBB3/viewt ... f=21&t=386
player:rest(20) will rest for 20 seconds.
player:rest(60, 20) will rest between 60 and 80 seconds.
player:rest(90, 40, "full") will rest up to between 90 and 130 seconds, and stop resting if being full
player:rest(90, 40, "time") will rest up to between 90 and 130 seconds, and not stop resting if being full
player:rest(20, 40, "full, 20") will rest up to between 20 and 60 seconds, and stop resting if being full, and wait after that between 1-20 seconds

Re: [help] waypoint wait/stop command

Posted: Sun Jul 17, 2011 3:05 pm
by xxxoxxx
wow thanks so much I'm glad for this man :)

thanks again :D

Re: [help] waypoint wait/stop command

Posted: Sun Jul 17, 2011 4:04 pm
by MiesterMan
I think player:rest() will only rest until full.

Edit: Nope, player:sleep() doesn't accept arguments, it just wait until you tell it to continue.