PDA

View Full Version : URGH! HELP!



Mersaydes
08-03-2004, 02:28 AM
I have this Urgh scripts I've been working on, and everything seems to go just great except for when the mind must rest.

Instead of returning to the resting spot (solhaven inn), it simply exits the program. I can't figure out why it does that for the like of me... so if anyone can help me correct the errors.. I'll be forever grateful.


# * 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 .6
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


logoff:
put exit

Brimz
08-03-2004, 09:54 AM
logoff:
put exit


only need exit...

if you put [put] exit it will make it so you type exit in game...

so all you need is exit by itself

Latrinsorm
08-03-2004, 10:53 AM
Originally posted by Brimz
logoff:
put exit


only need exit...

if you put [put] exit it will make it so you type exit in game...

so all you need is exit by itself It's supposed to be like that, so if one is put in the Cell or a GM shows up while one is otherwise occupied the character will log out to avoid AFK scripting penalties. I didn't know Vreen morphs showed up in Solhaven, but that's neither here nor there.

I couldn't see a problem, but if I were you I'd get rid of the logout function entirely (and obviously everything that leads to it) and see what happens.

Trinitis
08-03-2004, 12:35 PM
gorest:
put look in my cloak
match moverest In the black cloak you see


logoff:
put exit


Your problem is right there. There is no match wait, so it puts "In the black cloak you see" into the match strings, then moves on to logoff. You need to put a MATCHWAIT after the match string :)

Mersaydes
08-03-2004, 07:17 PM
Thanks guys. eyewubjoo!

Celexei
08-09-2004, 06:55 AM
alrighty well i tried this script for my ranger tonight....not so great of results, it gets out there and all, but after it skins the urghs it attempts to pick em up, OHE shield that doesn't work...ohkay so changed that, but still it moves about two rooms and attacks when there is no urgh in site, why is this?

Latrinsorm
08-09-2004, 01:48 PM
The posted script has no skinning function. Therefore, I would hazard a guess that the skinning function you added to the script is gumming up the works.

imported_Kranar
08-10-2004, 06:12 PM
<< I didn't know Vreen morphs showed up in Solhaven, but that's neither here nor there. >>

I suppose I forgot to take that part out when I originally posted the script.

I added it in there because at the time that I was scripting, those morphs were showing up all over Elanthia, and there is nothing more painful than dying in Solhaven.