PDA

View Full Version : Counting Death Messages



Bobmuhthol
08-18-2003, 10:31 AM
I made a script that will wait for the death message and proceed to do the dreaded task of skinning. It also counts the number of times I skin/search a rat. I don't want it to move, attack, or anything else because I don't want to have the urge to go AFK. My problem is it will echo the counter twice.

Here's what happens when I go to the Niche:
[Script]>
**************************
You have slain 11 rats.
**************************
[Town Square, Garden Niche]
**************************
You have slain 11 rats.
**************************
This small niche between two buildings has been neatly landscaped into a tiny garden, its careful mosaic of flagstones interspersed with patches of trimmed grass. A low stone bench rests along one vine-covered wall, and a patch of colorful violets surrounds a painted wooden barrel in one corner.
Obvious paths: east
[Script]>

And here's the script:
Start:
match Skin The giant rat collapses to the ground, emits a final squeal, and dies.
match Skin The giant rat twitches and dies.
match Count Garden Niche
matchwait

Skin:
pause 1
put stance def
wait
put wear my shield
wait
put skin rat
wait
put put pelt in cloak
wait
put search rat
wait
put remove shield
wait
put stance off
counter add
goto Start

Count:
echo **************************
echo You have slain %c rats.
echo **************************
goto Start

Kyle
08-18-2003, 12:26 PM
Instead of making a script that can either scroll out (by someone walking by while skinning) or being too slow, it'd be better to create two/three commands and then wait for the second or third to go through.

Like so:

Start:
match Skin The giant rat collapses to the ground, emits a final squeal, and dies.
match Skin The giant rat twitches and dies.
match Count Garden Niche
matchwait

Skin:
waitfor roundtime
put stance def
put wear my shiel
waitfor shield
put skin rat
put put my pelt in my cloa
waitfor cloak
put search rat
put remove my shiel
waitfor shield
put stance off
counter add
goto Start

Count:
echo **************************
echo You have slain %c rats.
echo **************************
goto Start

Bobmuhthol
08-18-2003, 06:27 PM
Thanks. I think I found the problem with the double echo, too. I put a pause between the echo and goto Start.