mr dantes
06-10-2006, 12:53 PM
ok, the difference with mine is movement is fixed, not based on time, which is necessary because mine moves much faster. someone will probably post saying it's easier to get a scripting violation this way, but i've taken many characters to level 10 with it and i truly believe that no one cares anymore if you script rats. at any rate, this script is clean, concise, and fast.
variables needed: shield, weapon, container (if you're not using a backworn container, change "waitfor You take" to whatever messaging you get when you remove your container).
edit: starts at temple altar (where you go when you decay). also, you have to set your stance yourself, the script doesn't change stances.
#rats
save n
fromrest:
put get my %weapon
wait
put remove %shield
wait
move go crack
move d
move d
move u
move ne
move e
move e
move e
move e
move n
move go grate
move:
put %s
match nexus Nexus]
match c1 giant rat
match movewait Obvious
match newdir You can't go there
matchwait
newdir:
pause 1
goto %s
n:
save s
goto move
s:
save n
goto move
ne:
save sw
goto move
sw:
save ne
goto move
e:
save w
goto move
w:
save e
goto move
nw:
save se
goto move
se:
save nw
goto move
nexus:
put exp
match gorest Your mind can't
match newdir2 Your mind is numbed
match newdir2 Your mind is
matchwait
newdir2:
pause 1
goto %s1
n1:
save ne
goto move
ne1:
save e
goto move
e1:
save se
goto move
se1:
save s
goto move
s1:
sw1:
w1:
nw1:
goto move
c1:
match newdir You can't go there
match movewait Also here
match movewait Also in the room
match attack Obvious
matchwait
movewait:
waitfor exits
goto move
attack:
put kill rat
match dead dies
match dead goes still
match move what were you
match move already dead
match attackwait Roundtime
matchwait
attackwait:
pause 1
goto attack
dead:
pause 1
put skin rat
match skinned You skinned
match notskinned You botched
match look The giant rat has already
match dead wait
matchwait
skinned:
put sheath
waitfor You put a
put get pelt
match stowpelt You pick up
match weaponback I could not find
matchwait
stowpelt:
put stow my pelt
waitfor You put a
weaponback:
put get my %weapon
waitfor You remove a
notskinned:
put search rat
waitfor hair and bone
look:
put l
match c1 giant rat
match movewait Obvious
matchwait
gorest:
move go grate
move s
move w
move w
move w
move w
move sw
move d
move go arc
move u
move go crac
pause
put put my %weapon in my %container
put wear my %shield
waitfor You sling
put look in my %container
match sellpelt rat pelt
match rest and
matchwait
sellpelt:
move o
move o
move w
move n
move n
move w
move w
move w
move nw
move n
move n
move e
move go furr
put rem my %container
waitfor You take
put sell %container
put wear %container
waitfor You put
move o
move w
move s
move s
move s
move go bank
move go arch
put depo all
move go arch
move o
move e
move e
move e
move e
move s
move s
move e
move go temple
move go altar
rest:
pause 100
put exp
match rest Your mind can't
match rest Your mind is numbed
match fromrest Your mind is beco
match fromrest Your mind is
matchwait
variables needed: shield, weapon, container (if you're not using a backworn container, change "waitfor You take" to whatever messaging you get when you remove your container).
edit: starts at temple altar (where you go when you decay). also, you have to set your stance yourself, the script doesn't change stances.
#rats
save n
fromrest:
put get my %weapon
wait
put remove %shield
wait
move go crack
move d
move d
move u
move ne
move e
move e
move e
move e
move n
move go grate
move:
put %s
match nexus Nexus]
match c1 giant rat
match movewait Obvious
match newdir You can't go there
matchwait
newdir:
pause 1
goto %s
n:
save s
goto move
s:
save n
goto move
ne:
save sw
goto move
sw:
save ne
goto move
e:
save w
goto move
w:
save e
goto move
nw:
save se
goto move
se:
save nw
goto move
nexus:
put exp
match gorest Your mind can't
match newdir2 Your mind is numbed
match newdir2 Your mind is
matchwait
newdir2:
pause 1
goto %s1
n1:
save ne
goto move
ne1:
save e
goto move
e1:
save se
goto move
se1:
save s
goto move
s1:
sw1:
w1:
nw1:
goto move
c1:
match newdir You can't go there
match movewait Also here
match movewait Also in the room
match attack Obvious
matchwait
movewait:
waitfor exits
goto move
attack:
put kill rat
match dead dies
match dead goes still
match move what were you
match move already dead
match attackwait Roundtime
matchwait
attackwait:
pause 1
goto attack
dead:
pause 1
put skin rat
match skinned You skinned
match notskinned You botched
match look The giant rat has already
match dead wait
matchwait
skinned:
put sheath
waitfor You put a
put get pelt
match stowpelt You pick up
match weaponback I could not find
matchwait
stowpelt:
put stow my pelt
waitfor You put a
weaponback:
put get my %weapon
waitfor You remove a
notskinned:
put search rat
waitfor hair and bone
look:
put l
match c1 giant rat
match movewait Obvious
matchwait
gorest:
move go grate
move s
move w
move w
move w
move w
move sw
move d
move go arc
move u
move go crac
pause
put put my %weapon in my %container
put wear my %shield
waitfor You sling
put look in my %container
match sellpelt rat pelt
match rest and
matchwait
sellpelt:
move o
move o
move w
move n
move n
move w
move w
move w
move nw
move n
move n
move e
move go furr
put rem my %container
waitfor You take
put sell %container
put wear %container
waitfor You put
move o
move w
move s
move s
move s
move go bank
move go arch
put depo all
move go arch
move o
move e
move e
move e
move e
move s
move s
move e
move go temple
move go altar
rest:
pause 100
put exp
match rest Your mind can't
match rest Your mind is numbed
match fromrest Your mind is beco
match fromrest Your mind is
matchwait