Greetings, fellow cheaters.
I am creating a script that will:
a) Find the target
b) Cast a summons to kill the target
c) recast the summons if the target isn't dead yet
The third bit is my stumbling block. How can I monitor the follower count and the status of the monster I'm killing and re-cast if the summons died before the target did?
Obviously, #followers is involved...this snippet *appears* to be working, but if someone like EN, TM, Twinkle McNugget or another code god could double check me I'd appreciate it. This feels like I'm missing something...unfortunately, the set of circumstances I'm coding to avoid is rare and tough to test in game land.
sub castRev
while #followers = 1
{
event macro 15 114
wait 3s
while #targetcurs = 1
wait 1
set #ltargetid #findid
event macro 22 0
wait 5
}
return
Hmm...maybe it should be:
While #followers = 1
gosub CastRev
