PDA

View Full Version : Help with my Rat Hunter



SiKWiDiT
03-12-2005, 11:17 AM
Would someone mind telling me what I've done wrong here? It hangs up after I enter the catacombs and move west once.

Start:
put group close
waitfor Your group status
goto Begin1

Begin1:
put look
goto MindCheck

Begin:
put look
match FromTable Table]
match FromParlour [Frith's Inn, Parlour]
matchwait

FromTable:
put stand
put get my rune staff
waitfor You remove
put stance def
move out
move s
move go door
move out
move s
move w
move w
move nw
move s
move go open
counter set 1
goto Init

FromParlour:
put stand
put get my rune staff
waitfor You remove
put stance def
move s
move go door
move s
move out
move s
move w
move w
move nw
move s
move go open
counter set 1
goto Init

Init:
put look
goto R%c

Init1:
put send 2 Kelindas
match Rest You don't have that many points to transfer!
match Init Channeling to yourself?
matchwait

R1:
nextroom
put w
goto Check

R2:
nextroom
put w
goto Check

R3:
nextroom
put nw
goto Check

R4:
nextroom
put w
goto Check

R5:
nextroom
put w
goto Check

R6:
nextroom
put sw
goto Check

R7:
nextroom
put se
goto Check

R8:
nextroom
put e
goto Check

R9:
nextroom
put e
goto Check

R10:
nextroom
put ne
goto Check

R11:
nextroom
put e
goto Check

R12:
nextroom
put e
goto Check

R13:
nextroom
put e
goto Check

R14:
nextroom
put ne
goto Check

R15:
nextroom
put sw
goto Check

R16:
nextroom
put w
goto Check

R17:
put exp
put look
match Init1 Your mind is as clear as a bell
match Init1 Your mind is fresh and clear.
match Init1 Your mind is clear.
match Init1 Your mind is muddled.
match Init1 Your mind is becoming numbed.
match Init1 Your mind is numbed.
match Rest must rest!
counter set 1
matchwait

Move:
counter add 1
goto R%c

needStand:
pause .5
put stand
put swear
pause 1
counter subtract 1
put look
goto find

Check:
match checkRat a giant rat
match needStand You will have to stand up first
match Move Obvious exits:
match Move Obvious paths:
matchwait

checkRat:
match Move Also here:
match Move Also in the room:
match needStand You will have to stand up first
match manaCheck Obvious exits:
match manaCheck Obvious paths:
matchwait

manaCheck:
put send 2 Kelindas
match NoRat You don't have that many points to transfer!
match KillRat Channeling to yourself?
matchwait

KillRat:
put prep 702
match Pause Wait
match Cast You already have a spell readied!
match Cast Your spell is ready.
match Dead ghost
matchwait

Pause:
pause 1
goto KillRat

CastPause:
pause 2
goto manaCheck

Cast:
put cast at rat
match KillRat You don't have a spell prepared!
match NoRat Cast at what?
match NoRat Your spell misfires.
match deadRat and dies.
match CastPause Cast Roundtime 3 Seconds.
match deadRat But it is dead!
match Dead ghost
matchwait

NoRat:
put look
goto Move

deadRat:
put search rat
waitfor A giant rat decays
put look
goto Check

Dead:
put exit

Rest:
move go op
move n
move se
move e
move e
move n
move go inn
move go door
move n
put go table
match TableRest You head over to
match ParlourRest It seems as though all the tables here are occupied.
matchwait

TableRest:
put sit
put stance off
waitfor You are now in an offensive stance.
put put my rune staff in my pack
goto RestWait

ParlourRest:
put sit
put stance off
waitfor You are now in an offensive stance.
put put my rune staff in my pack
goto RestWait

RestWait:
pause 90
goto MindCheck

MindCheck:
put exp
match Begin Your mind is as clear as a bell
match Begin Your mind is fresh and clear.
match begin Your mind is clear.
match Begin Your mind is muddled.
match RestWait Your mind is becoming numbed.
match RestWait Your mind is numbed.
match RestWait must rest!
matchwait

StrayRogue
03-12-2005, 11:29 AM
As far as I can tell, you're not setting the counter each time you move.

SiKWiDiT
03-12-2005, 12:44 PM
So I should add 'counter set 1', 'counter set 2', etc...?

StrayRogue
03-12-2005, 12:54 PM
In the appropriate places, yes. Basically it checks the room, then goes to Move, where move is R%C. After it goes from counter 1 it is told to move w, then checks, ISN'T told to change counter, then goes to move where move is R%C, etc.

[Edited on 12-3-05 by StrayRogue]

Omens
03-12-2005, 12:58 PM
I would take the paths: out of the match in the movement section. Not every room has paths or exits after obvious. and not all have the : either.

Maybe not in rats, I have never looked. But in other areas it will hang.

But yeah the janitor is right. your not moving the counter.

StrayRogue
03-12-2005, 01:04 PM
Janitor?

Anyway to further expand Omens point, its Obvious paths for anywhere outside, and Obvious exits for indoors. I just match to Obvious usually.

Omens
03-12-2005, 01:09 PM
[quote]Originally posted by StrayRogue
Janitor?


Heh, I havent visted for a while. If your not Falgrin, then my bad. :D

Falgrin = Park janitor.

Edited to say: Yeah I fucked up man. Parkbandit is falgrin.....

I'm gona go smoke another one.....

[Edited on 3-12-2005 by Omens]

SiKWiDiT
03-12-2005, 01:40 PM
Another thing; I'm trying to write this to Stormfront.

How would I go about setting it up for the Wizard FE?

Omens
03-12-2005, 01:43 PM
Dude, look in script folder for my vruul script. Cut and paste it and chang it the way you need to. It's wizard script.

SiKWiDiT
03-12-2005, 01:49 PM
It won't let me cut and paste for some reason.

SiKWiDiT
03-12-2005, 01:53 PM
Holy crap, I suck at this.

Someone link me up until I can get this thing working right.