|
Post by Darth Maul on Jun 6, 2018 13:41:49 GMT
Run back to PZ if attacked and wait x time.
You have to setup your labels correctly for it to work in your cavebot file.
You only actually need this script for it to work.
auto 100 listas 'Player Attacking Check' | ifplayerattacking {gotolabel 'LEAVE HUNT' | pm '$self.name' 'leaving' | set $tt [60*15] | wait [$tt*1000] | pm '$self.name' 'returning' | gotolabel 'TRAVEL HUNT' | wait 5000}
These two scripts are used to display information on your screen so you know how long left until you return to your hunting spot.
auto 1000 | dontlist | if [$tt >1] {set $tt '[$tt-1]'} auto 1000 | dontlist | setpos [$screenleft-253] [$screentop+110] | if [$tt > 1]{setcolor 250 0 0 | displaytext 'Returning in $formattime.$tt'} | if [$tt <=1] {setcolor 0 150 0 | displaytext 'Safe to hunt'}
|
|