PDA

View Full Version : Icemule wraith script for SF that hangs...help?



Phyrn
09-05-2014, 01:22 PM
So, my script will move me about but wont attack and now hangs...any help?

start:
put look
match resting [Icemule
match hunting [Abbey
match logoff [Scripting
match logoff [Consoltation
match logoff [The Cell]
matchwait

logoff:
put quit

hunting:
put look
match checkit wight
match checkroom Obvious paths
match checkroom Obvious exits
match logoff [Scripting
match logoff [Consoltation
match logoff [The Cell]
matchwait

checkit:
put look
match wight
match preatt Obvious paths
match preatt Obvious exits
match checkroom Also here
matchwait

preatt:
put stand
put stance off
pause 1
goto attackit

attackit:
put kill
match preatt ...wait
match hunting referring
match attackit Roundtime
match hunting could not find
match hunting turns to dust.
match dead is already dead.
match dead falls to the ground motionless.
match dead screams evilly one last time and goes still.
matchwait

dead:
put stance def
pause 2
put loot
match hunting turns to dust.
match hunting decays into
match hunting What were you referring to?
match dead ...wait
matchwait

checkroom:
put look
match moveS1 The staircase narrows to a claustrophobic tunnel of
match moveE2 Odd scraping sounds echo ominously within this
match moveSE3 A grate of sturdy iron guards an alcove carved into the pitted stone wall
match moveW4 A huge column of marble dominates this room
match moveS5 Polished golden rungs have been affixed at regular vertical intervals from floor to ceiling
match moveE6 A low moaning reverberates off the hard stone surfaces of the ossuary
match moveSW7 Large ceremonial urns of glazed ceramic have been placed in every corner
match moveW8 The still, ancient air deep in this tomb is sour and dry
match moveW9 The wavering shadows that fill this intersection flow with a pattern that
match moveNW10 Several large niches have been carved into the stone
match moveE11 A mound of polished skulls has been stacked with intricate precision
match moveN12 A heavy scraping sound echoes in the distance
match moveW13 The floor tiling stops at a sunken rectangular pit completely filled with bones
match moveNE14 Two urns of solid ivory, one tall and one squat, guard the entrance to this room, both deeply etched with the symbol of Oleani
match moveE15 Small golden studs have been pounded into the wall with symmetrical precision, perhaps
matchwait

moveS1:
pause .5
move south
put look
match checkit wight
match checkroom Obvious paths
match checkroom Obvious exits
match standup stand up first
matchwait

moveE2:
pause .5
move east
put look
match checkit wight
match checkroom Obvious paths
match checkroom Obvious exits
match standup stand up first
matchwait

moveSE3:
pause .5
move se
put look
match checkit wight
match checkroom Obvious paths
match checkroom Obvious exits
match standup stand up first
matchwait

moveW4:
pause .5
move w
put look
match checkit wight

match checkroom Obvious paths
match checkroom Obvious exits
match standup stand up first
matchwait

moveS5:
pause .5
move south
put look
match checkit wight

match checkroom Obvious paths
match checkroom Obvious exits
match standup stand up first
matchwait

moveE6:
pause .5
move e
put look
match checkit wight

match checkroom Obvious paths
match checkroom Obvious exits
match standup stand up first
matchwait

moveSW7:
pause .5
move sw
put look
match checkit wight

match checkroom Obvious paths
match checkroom Obvious exits
match standup stand up first
matchwait

moveW8:
pause .5
move w
put look
match checkit wight

match checkroom Obvious paths
match checkroom Obvious exits
match standup stand up first
matchwait

moveW9:
pause .5
move w
put look
match checkit wight

match checkroom Obvious paths
match checkroom Obvious exits
match standup stand up first
matchwait

moveNW10:
pause .5
move nw
put look
match checkit wight

match checkroom Obvious paths
match checkroom Obvious exits
match standup stand up first
matchwait

moveE11:
pause .5
move e
put look
match checkit wight

match checkroom Obvious paths
match checkroom Obvious exits
match standup stand up first
matchwait

moveN12:
pause .5
move n
put look
match checkit wight

match checkroom Obvious paths
match checkroom Obvious exits
match standup stand up first
matchwait

moveW13:
pause .5
move w
put look
match checkit wight

match checkroom Obvious paths
match checkroom Obvious exits
match standup stand up first
matchwait

moveNE14:
pause .5
move ne
put look
match checkit wight

match checkroom Obvious paths
match checkroom Obvious exits
match standup stand up first
matchwait

moveE15:
pause .5
move e
put look
match checkit wight

match checkroom Obvious paths
match checkroom Obvious exits
match standup stand up first
matchwait

checkexp:
put exp
match keepgoing Your mind is
match gohome Your mind can't
matchwait

keepgoing:
pause .5
put look
match checkit wight

match checkroom Obvious paths
match checkroom Obvious exits
match standup stand up first
matchwait

gohome:
put wear my shield
put rem ring
put wear ring
put stop singing
put turn my ring
goto resting

gohunt:
put rem my shield
put get my long from my har
put e
put prep 1017
pause 5
put cast
put stance def
put e
pause 1
put e
pause 1
put e
pause 2
put e
pause 2
put e
put e
put go gate

pause 2
put e
put e
pause 2
put ne
pause 1
put climb trail
pause 1
put u
put u
pause 2

put e
put se
pause 2
put e
put e
pause 2
put e
put climb landslide
put u
pause 1
put ne
put nw
pause 1

put u
put nw
pause 2
put ne
put w
pause 2
put nw
put u
pause 2
put go arch
put out
pause 1
put ne
put u
pause 2
put go door
put s
pause 2
put se
put go panel
put go stair
goto hunting

resting:
put wear my shield
put put my long in my har
put stop singing
put exp
match gohunt Your mind is clear
match gohunt Your mind is fresh
match gohunt Your mind is as
match inabit Your mind is muddled
match inabit Your mind can't
match inabit Your mind is numbed
match inabit Your mind is becoming
matchwait

inabit:
pause 300
goto resting

standup:
put stand
pause 1
goto hunting

DaCapn
09-05-2014, 09:58 PM
Under "checkit:" look at "match wight" which might cause the hangup (if I understand your description of your error properly). Labels make debugging this kind of stuff kind of ugly.

To be honest, the best fix to this problem is to just use lich. You could use an established script like bigshot or re-write this one and probably reduce the number of lines by a factor of 10.