Danical
02-10-2007, 03:29 PM
I've created a script that casts 1030 a single time on a target but sometimes, and only sometimes, it keeps trying to cast again even if the creature died or cast successfully. What's the problem?
Example . . .
>;boom
--- Lich: boom active.
[boom]^incant 1030
You change your tune slightly, adding the element for Song of Sonic Disruption to your song...
Your spellsong is ready.
You weave another verse into your harmony, directing the sound of your voice at a triton executioner.
CS: +517 - TD: +337 + CvA: +25 + d100: +10 == +215
Warding failed!
A triton executioner reels under the force of the sonic vibrations!
Sound waves disrupt for 105 damage!
... 95 points of damage!
The triton executioner's shoulder joint explodes, severing shield arm.
Sing Roundtime 3 Seconds.
>
[boom]^incant 1030
...wait 1 seconds.
while true
fput "incant 1030"
line = waitfor("Your armor prevents the song from working correctly", "twitching for a moment before", "gurgles once and goes still", "begins to dissolve from the bottom up", "gurgling once with a", "he siren gives a plaintive wail before she slumps to her side and dies", "emits a hollow scream as ribbons of essence", "Sing Roundtime", "You do not currently have a target", "wait (1|2|3)", "FUMBLE")
if line =~ /Your armor prevents the song from working correctly|wait|FUMBLE/
redo
elsif line =~ /gurgles once and goes still|begins to dissolve from the bottom up|gurgling once with a|he siren gives a plaintive wail before she slumps to her side and dies|emits a hollow scream as ribbons of essence|twitching for a moment before/
fput "loot"
exit
else
exit
end
end
Example . . .
>;boom
--- Lich: boom active.
[boom]^incant 1030
You change your tune slightly, adding the element for Song of Sonic Disruption to your song...
Your spellsong is ready.
You weave another verse into your harmony, directing the sound of your voice at a triton executioner.
CS: +517 - TD: +337 + CvA: +25 + d100: +10 == +215
Warding failed!
A triton executioner reels under the force of the sonic vibrations!
Sound waves disrupt for 105 damage!
... 95 points of damage!
The triton executioner's shoulder joint explodes, severing shield arm.
Sing Roundtime 3 Seconds.
>
[boom]^incant 1030
...wait 1 seconds.
while true
fput "incant 1030"
line = waitfor("Your armor prevents the song from working correctly", "twitching for a moment before", "gurgles once and goes still", "begins to dissolve from the bottom up", "gurgling once with a", "he siren gives a plaintive wail before she slumps to her side and dies", "emits a hollow scream as ribbons of essence", "Sing Roundtime", "You do not currently have a target", "wait (1|2|3)", "FUMBLE")
if line =~ /Your armor prevents the song from working correctly|wait|FUMBLE/
redo
elsif line =~ /gurgles once and goes still|begins to dissolve from the bottom up|gurgling once with a|he siren gives a plaintive wail before she slumps to her side and dies|emits a hollow scream as ribbons of essence|twitching for a moment before/
fput "loot"
exit
else
exit
end
end