PDA

View Full Version : another rat hunter



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

Drew
06-10-2006, 01:36 PM
I got checked on the time one several times before, I don't run it AFK though so it's fine.

What is %s in this script?

mr dantes
06-10-2006, 02:43 PM
%s is the direction of movement - the script handles it all itself. it starts and n and shifts to ne, e, se, and so on

pabstblueribbon
03-15-2007, 02:55 AM
Hope someone sees this thread. Nearly a year old. Anyways i've gone through and tailored this script for an archer, and it works except for if it cant find rats and it returns to the nexus, it will say,

Script error[goto label (%s1) not found.] near line 60
[script aborted]

Is %s1 a variable i didnt set? any ideas would be appreciated.

The Ponzzz
03-15-2007, 02:05 PM
%s is the command for SAVE.

I'll look through the script to see if maybe I can fix it.

PBR is gross however.

The Ponzzz
03-15-2007, 02:06 PM
Change the %s1 to a %s and see if it works? I don't think %s can work with any numbers.

Bobmuhthol
03-15-2007, 03:03 PM
Change all your variables so that they're %x% and not %x.

liquiddrool
03-21-2007, 09:10 PM
Dude, that's a sweet pic PBR.

Xcalibur
08-21-2007, 10:14 PM
Anyone got the .rathunt, the one I was bragging about 4 years ago (hehe)?

Not those slow checking scripting, the one with the string:)