oliveiraihago
Junior Member
Posts: 5 Likes: 0
Currently Offline
Last Online: Aug 6, 2023 21:45:02 GMT
View Profile
Registered On: Jul 1, 2023 23:34:18 GMT
|
Post by oliveiraihago on Jul 1, 2023 23:43:54 GMT
Hi, I would like to begin by thanking all the work that this forum has done over the years, it has helped me so much with learning how elfbot works.
So first the background to the script I need.
I play a high exp with a reset system with loads of events, I need the script to stop everything my char is doing, mostly stop cavebot and wait for battle to go off and say '!fly temple', after that it should load another cavebot, the thing is, the flag for the script to work need to either be the time, because the event is every hour or the message received in Server Log that has a [Dungeon] tag, i tried those:
auto 1 if [$systime == '00:00:00'] {setcavebot off | wait 40000 | say '!fly temple' | wait 300 | loadcavebot 'Dungeon' | wait 500 | gotolabel TP | wait 500 | setcavebot on}}
In this case it would be checking for every hour of the day, 00:00:00, 01:00:00 and so on, it kinda worked but it wasn't consistent
auto 1 if [$lastmsg.content ? '[Dungeon]'] {setcavebot off | wait 40000 | say '!fly temple' | wait 300 | loadcavebot 'Dungeon' | wait 500 | gotolabel TP | wait 500 | setcavebot on}
Any help or insight would be very good, thanks!
|
|
zuwerflal
Junior Member
Posts: 8 Likes: 2
Currently Offline
Last Online: Feb 18, 2024 21:32:27 GMT
View Profile
Registered On: Jun 16, 2023 7:31:34 GMT
|
Post by zuwerflal on Jul 19, 2023 10:12:09 GMT
auto 1 dontlist | if [$cutstr.$systime.3.2 == 00 && $cutstr.$systime.7.2 <= 02 && $WaitPZ == 0 && $GotoTP == 0] {set $WaitPZ 1 | setfollowwaypoints off} auto 1 dontlist | if [$WaitPZ == 1 && $battlesign == 0] {say '!fly temple' | set $GotoTP 1 | wait 500 | clear $WaitPZ | loadcavebot 'Dungeon' | setfollowwaypoints on}
in cavebot Dungeon, first line, put this action -> A 0 0 0 Verif
wait 200 | if [$GotoTP == 1] {clear $GotoTP | gotolabel TP}
|
|