|
Post by clee4601 on Jul 22, 2020 22:59:26 GMT
I am working on a script to disco, honor, then slay with a pet. The problem I am running into is getting it to repeat disco on a target until successful. The function should be:
# find type #honor #use discord (repeat until successful) #tell pet to kill
I can get really close, but if i get it to repeat then it tends to send the pet command in the middle of the disco loop. Any suggestions would be great.
if not listexists 'farm'
createlist 'farm'
pushlist 'farm' '0x5'
endif
for 0 in 'farm'
while @findtype farm[] 'any' 10
getenemy 'found'
virtue 'honor'
waitfortarget 500
target! 'found'
while @injournal 'You attempt to disrupt'
getenemy 'found'
useskill 'Discordance'
waitfortarget 500
target! 'found'
pause 6500
if @injournal 'jarring'
msg 'all kill'
waitfortarget 15000
target! 'last'
endwhile
endif
endfor
|
|
|
Post by cmray on Apr 15, 2021 10:07:06 GMT
For While, you need to endwhile
|
|