sirgalahad
Junior Member
Posts: 6 Likes: 0
Currently Offline
Last Online: Jun 14, 2020 2:33:39 GMT
View Profile
Registered On: Jun 7, 2020 18:22:11 GMT
|
Post by sirgalahad on Jun 7, 2020 18:31:05 GMT
Hi! Friends, I need to make the next script check 4 minutes on the screen, the next script only checks from 2 minutes, it goes to zero and is wanted for another 2 minutes. I hope you can help me, thanks in advance. auto 1 dontlist | if [$tempo > 15] {setcolor 66 CC FF} else { setcolor 1000 } | setpos [$screenleft -102] [$screentop - 500] | displaytext 'Time Buff:'| if [$tempo >0 ]{dec $tempo | wait 1000} auto 1 dontlist | if [$tempo > 15] {setcolor 66 CC FF} else { setcolor 1000 } | setpos [$screenleft -100] [$screentop - 511] | displaytext '$formattime.$tempo'
|
|
|
Post by VoltZ on Jun 8, 2020 16:39:51 GMT
tell me which spells u use so the script starts to count down after casting the specific spell
|
|
sirgalahad
Junior Member
Posts: 6 Likes: 0
Currently Offline
Last Online: Jun 14, 2020 2:33:39 GMT
View Profile
Registered On: Jun 7, 2020 18:22:11 GMT
|
Post by sirgalahad on Jun 9, 2020 4:06:16 GMT
tell me which spells u use so the script starts to count down after casting the specific spell The usage spell is 'Extreme Pala Buff' that lasts 4 minutes and has a 4 minute cooldown.
|
|
|
Post by VoltZ on Jun 9, 2020 18:11:03 GMT
auto 1000 |dontlist| {$inc $waittime}
auto 200 |dontlist| if [$waittime >= 240000] {say 'Extreme Pala Buff'}
auto 200 |dontlist| foreach 'newmessages' $p if [$p.content == 'Extreme Pala Buff' && $p.sender == '$self.name'] {set $waittime '0'}
auto 100 |dontlist| setpos [$screenleft-215] [$screenbottom-187] | setcolor 200 200 200 | displaytext '$formattime.$waittime'
|
|
|
Post by VoltZ on Jun 9, 2020 18:14:31 GMT
i dont really understand what u want to do the script above will cast ur needed spell every 4 mins Explain more if this is not what u want
|
|
sirgalahad
Junior Member
Posts: 6 Likes: 0
Currently Offline
Last Online: Jun 14, 2020 2:33:39 GMT
View Profile
Registered On: Jun 7, 2020 18:22:11 GMT
|
Post by sirgalahad on Jun 11, 2020 21:27:30 GMT
I managed to make it work, it turns out that by default elfbot was taking the buff time in 2 minutes (120 sec), but by adding the condition 'set $ tempo' to the buff command line, it is possible to control the number that will appear in the timer.
|
|