vamosj
09-07-2011, 10:59 PM
Creating a script just to forge hammers and can't tell why it hangs up sometimes and sometimes it doesn't....
The two main places it does is after a grind or when the piece is too small....
ECHO **********THIS SCRIPT IS USED TO CRAFT FORGING HAMMERS***********
echo ****ENSURE YOU HAVE SILVERS ON YOU TO PURCHASE TIME AND MATS*****
echo ******************START OUTSIDE THE WORKSHOP******************
echo ********MAKE SURE YOUR STOW BAG HAS ROOM TO PUT ITEMS IN********
echo *******YOUR HANDS MUST BE EMPTY FOR THIS TO START CORRECTLY!******
echo ****************NOD TO CONTINUE, HIT ESC TO EXIT*****************
match START You nod.
matchwait
START:
echo ****START:
put get bar
match MATSHANDLE Get what?
match begin bronze bar
match GETSOME You already have that.
matchwait
begin:
echo ****begin:
put swap
put go work
goto handleglyph
MATSHANDLE:
echo ****MATSHANDLE:
put put bar in bin
put out
put order 2
put buy
put swap
put go workshop
goto handleglyph:
handleglyph:
echo ****handleglyph
put stare handle-glyph
waitfor you
goto handlegrinder
handlegrinder:
echo ****handlegrinder:
put turn grinder
match timeup rent
match handleglyph Resignedly, you get to your feet.
match handlepolish You finish your work and stand up
match handlegrinder ...wait
match handlegrinder is using the grinder right now.
match toosmall1 The material you intend to shape has not been scribed with a pattern to work from.
match toothpick1 You mutter a few choice words as you get to your feet.
matchwait
handlepolish:
echo ****handlepolish
put drop bar
put lean polisher
match timeup rent
match P1 You set your right foot
matchwait
P1:
echo ****P1:
waitfor You straighten up from working at the polishing wheel and run your fingers over the smooth surface of your
put drop hammer-handle
waitfor you
put get bar
match MATSHEAD Get what?
match prephead You pick up
matchwait
toothpick1:
echo ****toothpick1:
put swear
waitfor you
put put toothpick in bin
waitfor you
Goto MATSHANDLE
toosmall1:
echo ****toosmall1:
pause 6
put lick my bar
goto MATSHANDLE
MATSHEAD:
echo ****MATSHEAD:
put out
put order 2
put buy
put swap
put go workshop
goto headglyph:
prephead:
echo ****prephead:
put swap
goto headglyph
headglyph:
echo ****headglyph
put stare head-glyph
waitfor you
goto headgrinder
headgrinder:
echo ****headgrinder:
put turn grinder
match timeup rent
match headglyph Resignedly, you get to your feet.
match headpolish You finish your work and stand up
match headgrinder ...wait
match headgrinder is using the grinder right now.
match toothpick2 You mutter a few choice words as you get to your feet.
matchwait
headpolish:
echo ****headpolish:
put drop bar
put lean polisher
match timeup rent
match P2 You set your right foot
matchwait
P2:
echo ****P2:
waitfor You straighten up from working at the polishing wheel and run your fingers over the smooth surface of your
pause 3
goto prepvise
toothpick2:
echo ****toothpick2:
put swear
waitfor you
put put toothpick in bin
waitfor you
Goto MATSHEAD
toosmall2:
echo ****toosmall2:
pause 6
put bark at bin
goto MATSHEAD
prepvise:
echo ****prepvise
put get hammer-handle
waitfor you
goto vise
vise:
echo ****vise
put turn vise
visecont:
match vise You decide the safest thing to do now is to re-set the
match madehammer You finish your work and step back, turning the
match visecont ...wait
matchwait
madehammer:
echo ****madehammer:
pause 4
put put forg in bin
goto START
timeup:
echo ****timeup
put drop bar
put drop ham
waitfor You
put out
goto START
GETSOME:
echo ***************************************
echo ***************************************
echo ***************************************
echo *******Your Hands are Full! Read Much?******
echo ***************************************
echo ***************************************
echo ***************************************
exit
The two main places it does is after a grind or when the piece is too small....
ECHO **********THIS SCRIPT IS USED TO CRAFT FORGING HAMMERS***********
echo ****ENSURE YOU HAVE SILVERS ON YOU TO PURCHASE TIME AND MATS*****
echo ******************START OUTSIDE THE WORKSHOP******************
echo ********MAKE SURE YOUR STOW BAG HAS ROOM TO PUT ITEMS IN********
echo *******YOUR HANDS MUST BE EMPTY FOR THIS TO START CORRECTLY!******
echo ****************NOD TO CONTINUE, HIT ESC TO EXIT*****************
match START You nod.
matchwait
START:
echo ****START:
put get bar
match MATSHANDLE Get what?
match begin bronze bar
match GETSOME You already have that.
matchwait
begin:
echo ****begin:
put swap
put go work
goto handleglyph
MATSHANDLE:
echo ****MATSHANDLE:
put put bar in bin
put out
put order 2
put buy
put swap
put go workshop
goto handleglyph:
handleglyph:
echo ****handleglyph
put stare handle-glyph
waitfor you
goto handlegrinder
handlegrinder:
echo ****handlegrinder:
put turn grinder
match timeup rent
match handleglyph Resignedly, you get to your feet.
match handlepolish You finish your work and stand up
match handlegrinder ...wait
match handlegrinder is using the grinder right now.
match toosmall1 The material you intend to shape has not been scribed with a pattern to work from.
match toothpick1 You mutter a few choice words as you get to your feet.
matchwait
handlepolish:
echo ****handlepolish
put drop bar
put lean polisher
match timeup rent
match P1 You set your right foot
matchwait
P1:
echo ****P1:
waitfor You straighten up from working at the polishing wheel and run your fingers over the smooth surface of your
put drop hammer-handle
waitfor you
put get bar
match MATSHEAD Get what?
match prephead You pick up
matchwait
toothpick1:
echo ****toothpick1:
put swear
waitfor you
put put toothpick in bin
waitfor you
Goto MATSHANDLE
toosmall1:
echo ****toosmall1:
pause 6
put lick my bar
goto MATSHANDLE
MATSHEAD:
echo ****MATSHEAD:
put out
put order 2
put buy
put swap
put go workshop
goto headglyph:
prephead:
echo ****prephead:
put swap
goto headglyph
headglyph:
echo ****headglyph
put stare head-glyph
waitfor you
goto headgrinder
headgrinder:
echo ****headgrinder:
put turn grinder
match timeup rent
match headglyph Resignedly, you get to your feet.
match headpolish You finish your work and stand up
match headgrinder ...wait
match headgrinder is using the grinder right now.
match toothpick2 You mutter a few choice words as you get to your feet.
matchwait
headpolish:
echo ****headpolish:
put drop bar
put lean polisher
match timeup rent
match P2 You set your right foot
matchwait
P2:
echo ****P2:
waitfor You straighten up from working at the polishing wheel and run your fingers over the smooth surface of your
pause 3
goto prepvise
toothpick2:
echo ****toothpick2:
put swear
waitfor you
put put toothpick in bin
waitfor you
Goto MATSHEAD
toosmall2:
echo ****toosmall2:
pause 6
put bark at bin
goto MATSHEAD
prepvise:
echo ****prepvise
put get hammer-handle
waitfor you
goto vise
vise:
echo ****vise
put turn vise
visecont:
match vise You decide the safest thing to do now is to re-set the
match madehammer You finish your work and step back, turning the
match visecont ...wait
matchwait
madehammer:
echo ****madehammer:
pause 4
put put forg in bin
goto START
timeup:
echo ****timeup
put drop bar
put drop ham
waitfor You
put out
goto START
GETSOME:
echo ***************************************
echo ***************************************
echo ***************************************
echo *******Your Hands are Full! Read Much?******
echo ***************************************
echo ***************************************
echo ***************************************
exit