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
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