Mersaydes
08-10-2004, 04:29 PM
Well, I have been working on this Urgh script for quite some time now. I fixed all the errors and created a loop that checks exp. Yay for me. Now, I have been constantly running into a new problem... and I really don't know how to fix it.
You see.. When I search the urgh sometimes it does it too soon (even though I have it wait) and i get a "...wait 1 sec. thingy". This causes my script to stop. And whilst I am always at the computer when it happens, I usually have gemstone running in the background. So, instead of having to constantly check.. I want to filter out ...wait or create some sort of loop that sends the script back to the search function.. "dead/death".
Anyone know how to do it?
# * Hunts Urghs in Solhaven *
counter set 1
start:
pause 1
put look
match filter an urgh
match lost Noman's Land
match continuehunt Table]
match logoff [Scripting Violation Limbo]
match logoff [Consoltation Lounge]
match logoff [The Cell]
match lost Obvious paths:
match lost obvious exits:
matchwait
testexp:
put exp
match continuehunt clear
match continuehunt muddled
match clearmind becoming numb
match clearmind numb
match clearmind must rest
matchwait
clearmind:
pause 60
goto testexp
lost:
pause .5
put look
match R1 A crude wooden sign stands sentry
match R2 There's little vegetation here
match R3 The walls are more extended
match R4 The mud and slop of the pens
match R5 Obvious paths: south, east, west
match R6 Obvious paths: east, west, northwest, southwest
match R7 The rock walls of the pens narrow here
match R8 The bloated corpse of some kind of ox
match R9 The bank of the creek is a crumbling wall of mud.
matchwait
checkexp:
put exp
match gorest You must rest
match R1 Your mind is
matchwait
hunt:
pause 1
goto R1
R1:
pause .5
put s
counter set 2
goto checkroom
R2:
pause .5
put sw
counter set 3
goto checkroom
R3:
pause .5
put se
counter set 4
goto checkroom
R4:
pause .5
put n
counter set 5
goto checkroom
R5:
pause .5
put e
counter set 6
goto checkroom
R6:
pause .5
put e
counter set 7
goto checkroom
R7:
pause .5
put se
counter set 8
goto checkroom
R8:
pause .5
put n
counter set 9
goto checkroom
R9:
pause .5
put sw
counter set 10
goto checkroom
R10:
pause .5
put w
counter set 11
goto checkroom
R11:
pause .5
put nw
counter set 12
goto checkroom
R12:
pause .5
put n
counter set 13
goto checkroom
R13:
goto checkexp
checkroom:
match start Sorry, you may only type ahead
match R%c You can't go there
match R%c I could not find what
match logoff V'reen
match logoff morph
match filter an urgh
match R%c Obvious paths:
match R%c obvious exits:
matchwait
filter:
put look
match start You can't go there.
match R%c Also here:
match attack Obvious paths:
matchwait
attack:
pause .5
put att urgh
match dead dies
match dead dead
match dead motionless
match dead A little bit
match attack only type ahead
match attack Please wait
match attack An urgh charges in
match attack Roundtime:
match attack Wait
match R%c I could not find
match R%c What were you referring to?
matchwait
dead:
pause 1
put search urgh
waitfor You search
put look
goto checkroom
moverest:
move go trail
move e
move ne
move e
move e
move e
move e
move e
move e
move e
move e
move ne
move e
move e
move e
move e
move e
move ne
move e
move ne
move e
move e
move go door
move go breach
move s
move s
move s
move s
move go brush
move down
move climb path
move se
move e
move e
move se
move s
move e
move go bridge
move up
move se
move se
move se
move se
move e
move s
move e
move e
move go inn
move go arch
move go table
put sit
waitfor You pull out
goto clearmind
continuehunt:
put stand
waitfor You scoot your chair
move out
move go arc
move out
move w
move w
move w
move n
move nw
move up
move nw
move nw
move nw
move nw
move w
move n
move nw
move w
move w
move nw
move climb path
move u
move go brush
move n
move n
move n
move n
move go breach
move go door
move w
move w
move sw
move w
move sw
move w
move w
move w
move w
move w
move sw
move w
move w
move w
move w
move w
move w
move w
move w
move sw
move w
move go trail
goto R1
gorest:
put look in my cloak
match moverest In the black cloak you see
matchwait
logoff:
put exit
[Edited on 8-10-2004 by Mersaydes]
You see.. When I search the urgh sometimes it does it too soon (even though I have it wait) and i get a "...wait 1 sec. thingy". This causes my script to stop. And whilst I am always at the computer when it happens, I usually have gemstone running in the background. So, instead of having to constantly check.. I want to filter out ...wait or create some sort of loop that sends the script back to the search function.. "dead/death".
Anyone know how to do it?
# * Hunts Urghs in Solhaven *
counter set 1
start:
pause 1
put look
match filter an urgh
match lost Noman's Land
match continuehunt Table]
match logoff [Scripting Violation Limbo]
match logoff [Consoltation Lounge]
match logoff [The Cell]
match lost Obvious paths:
match lost obvious exits:
matchwait
testexp:
put exp
match continuehunt clear
match continuehunt muddled
match clearmind becoming numb
match clearmind numb
match clearmind must rest
matchwait
clearmind:
pause 60
goto testexp
lost:
pause .5
put look
match R1 A crude wooden sign stands sentry
match R2 There's little vegetation here
match R3 The walls are more extended
match R4 The mud and slop of the pens
match R5 Obvious paths: south, east, west
match R6 Obvious paths: east, west, northwest, southwest
match R7 The rock walls of the pens narrow here
match R8 The bloated corpse of some kind of ox
match R9 The bank of the creek is a crumbling wall of mud.
matchwait
checkexp:
put exp
match gorest You must rest
match R1 Your mind is
matchwait
hunt:
pause 1
goto R1
R1:
pause .5
put s
counter set 2
goto checkroom
R2:
pause .5
put sw
counter set 3
goto checkroom
R3:
pause .5
put se
counter set 4
goto checkroom
R4:
pause .5
put n
counter set 5
goto checkroom
R5:
pause .5
put e
counter set 6
goto checkroom
R6:
pause .5
put e
counter set 7
goto checkroom
R7:
pause .5
put se
counter set 8
goto checkroom
R8:
pause .5
put n
counter set 9
goto checkroom
R9:
pause .5
put sw
counter set 10
goto checkroom
R10:
pause .5
put w
counter set 11
goto checkroom
R11:
pause .5
put nw
counter set 12
goto checkroom
R12:
pause .5
put n
counter set 13
goto checkroom
R13:
goto checkexp
checkroom:
match start Sorry, you may only type ahead
match R%c You can't go there
match R%c I could not find what
match logoff V'reen
match logoff morph
match filter an urgh
match R%c Obvious paths:
match R%c obvious exits:
matchwait
filter:
put look
match start You can't go there.
match R%c Also here:
match attack Obvious paths:
matchwait
attack:
pause .5
put att urgh
match dead dies
match dead dead
match dead motionless
match dead A little bit
match attack only type ahead
match attack Please wait
match attack An urgh charges in
match attack Roundtime:
match attack Wait
match R%c I could not find
match R%c What were you referring to?
matchwait
dead:
pause 1
put search urgh
waitfor You search
put look
goto checkroom
moverest:
move go trail
move e
move ne
move e
move e
move e
move e
move e
move e
move e
move e
move ne
move e
move e
move e
move e
move e
move ne
move e
move ne
move e
move e
move go door
move go breach
move s
move s
move s
move s
move go brush
move down
move climb path
move se
move e
move e
move se
move s
move e
move go bridge
move up
move se
move se
move se
move se
move e
move s
move e
move e
move go inn
move go arch
move go table
put sit
waitfor You pull out
goto clearmind
continuehunt:
put stand
waitfor You scoot your chair
move out
move go arc
move out
move w
move w
move w
move n
move nw
move up
move nw
move nw
move nw
move nw
move w
move n
move nw
move w
move w
move nw
move climb path
move u
move go brush
move n
move n
move n
move n
move go breach
move go door
move w
move w
move sw
move w
move sw
move w
move w
move w
move w
move w
move sw
move w
move w
move w
move w
move w
move w
move w
move w
move sw
move w
move go trail
goto R1
gorest:
put look in my cloak
match moverest In the black cloak you see
matchwait
logoff:
put exit
[Edited on 8-10-2004 by Mersaydes]