PDA

View Full Version : Crafting Script



LightningMage
11-11-2003, 10:58 PM
My warrior is close to mastering. Does anyone have a script that will make the pieces of the handle and use the vice to make the hammer? I can't figure out how do to get it to also make a hammer.

LightningMage
11-13-2003, 01:58 AM
Ok no reply maybe someone can help me fix my script to allow for making the forge hammer then this is my script as is so far.....

start:
pause
put stance off
put time
Match go1 1 by the elven time standard.
Match go2 2 by the elven time standard.
Match go1 3 by the elven time standard.
Match go2 4 by the elven time standard.
Match go2 5 by the elven time standard.
Match go1 6 by the elven time standard.
Match go1 7 by the elven time standard.
Match go2 8 by the elven time standard.
Match go1 9 by the elven time standard.
Match go2 0 by the elven time standard.
matchwait

go1:
pause
put look at hour
match begin minutes of rental time remaining.
match run The hourglass has run out, there is no rental time remaining for this workshop.
match run The hourglass suggests that the rental time has expired.
matchwait

begin:
pause
put glance
match begin2 You glance down at your empty hands.
match block block in your left
match oops block in your right hand
match toothpick toothpick in your left
match hammer-handle You glance down to see a rough maoral hammer
match hammer-handle You glance down to see a leftover maoral block in your right hand and
match run The grinding wheel doesn't budge! Most likely the rent on this workshop has expired.
match start You mutter a few choice words as you get to your feet.
matchwait

block:
save block
goto forge

oops:
put swap
goto start

toothpick:
pause
put put toothpick in bin
goto begin2

begin2:
paus
put get block
match run I could not find what you were referring to.
match swap You remove
matchwait

hammer-handle:
goto polish

forge:
pause
put stare handle
pause
pause
put turn grinder
match The The material you intend to shape has not been scribed with a pattern to work from. You need to use a glyph from the workbench to mark your material first.
match grind1 You set your right foot against the already moving rocker pedal and begin pumping to set the wheel spinning more quickly.
matchwait

grind1:
pause
put put block in my back
goto start


The:
put put block in bin
pause
goto begin2

polish:
pause
put put block in my back
pause
put lean polish
waitfor You straighten
put put hammer in my back
pause
put take second hammer-handle from my back
put take second hammer-head from my back
pause
put put hammer in bin
put put hammer in bin
goto start

go2:
put look at hour
match begin3 minutes of rental time remaining.
match run The hourglass has run out
match run The hourglass suggests that the rental time has expired.
matchwait

begin3:
pause
put glance
match begin4 You glance down at your empty hands.
match block2 block in your left
match oops block in your right hand
match toothpick2 toothpick in your left
match hammer-head2 You glance down to see a rough maoral hammer
match hammer-head2 You glance down to see a leftover maoral block in your right hand and
matchwait

block2:
save block
goto forge2

toothpick2:
pause
put put toothpick in bin
goto begin3

begin4:
pause
put get block
match run I could not find what you were referring to.
match swap You remove
matchwait

hammer-head2:
goto polish

forge2:
pause
put stare head
pause
put turn grinder
match The2 The material you intend to shape has not been scribed with a pattern to work from. You need to use a glyph from the workbench to mark your material first.
match grind2 You set your right foot against the already moving rocker pedal and begin pumping to set the wheel spinning more quickly.
matchwait

grind2:
pause
put put block in my back
goto start


The2:
put put block in bin
goto begin

polish2:
pause
put put block in my back
pause
put lean polish
pause
waitfor You straighten
put put hammer in my back
pause
put take second hammer-head from my back
put take second hammer-hand from my back
pause
put put hammer in bin
put put hammer in bin
goto start

swap:
put swap
goto start

vise:
pause
put get hammer-head
pause
put get hammer-handle
put glance
match start I could
match next finished maoral hammer-head in your right hand
matchwait

next:
match vise2 finished maoral hammer-handle in your left hand.
matchwait

vise2:
pause
put turn vise
match ready Aha, you learned something that time.
match ready You decide the safest thing to do now is to re-set the hammer-head in the vise, tighten it snuggly, and take another try at it.
match pause You'll have to wait until he has finished.
match done You finish
match finish To assemble an

pause:
pause
goto vise2

done:
put put forg in my back
put take my second forg from my back
pause
put forg in barrel
goto run

finish:
put glance
match done forging-hammer in your right hand
matchwait


run:
put out
move south
move south
move south
put out
move south
move west
move south
move west
move west
move west
move west
move go bank
put go arch
put withdraw 500
pause
put go arch
put out
move east
pause
move east
pause
move east
move east
pause
move north
move east
move north
put go gate
move north
move north
move north
pause
put order 5
pause
put buy
pause
put put block in my back
pause
put order 5
pause
put buy
pause
put put block in my back
pause
put order 5
pause
put buy
pause
put put block in my back
move go workshop
goto start

Right now all the vise gotos and such aren't used could anyone help me? Also if you have any ideas on how I could make it better that would be great too. Thanks

Izalude
11-13-2003, 02:44 AM
My girlfriend wrote a script that creates hammer handles and heads, as well as counts your ranks. The thing is though, it's just for creating the handles and heads. No polishing or vising it. They're just tossed in the bin instead.

LightningMage
11-13-2003, 03:16 AM
Could you post it? maybe a combination of both might work. Do you need to polish to be able to make hammers I thought you did. Lastly did you see a problem with my script? For some reason it works for the most part but after like a few hours or so it will get caught I don't know how.

Izalude
11-13-2003, 12:53 PM
I can't see anything wrong with it, but I'd have to run it myself to see where the problem is and where it hangs up. When you run this script, make sure the status prompt is on.

#hammerhaft.Cmd

if_1 goto countset
echo ************************************************** **********************
echo * Syntax: .hammerhaft <current skill rank> *
echo * The script starts IN a Wehnimer's Landing workshop. *
echo ************************************************** **********************
exit

countset:
counter set %1
goto start

start:
put glance
match empty your empty hands.
match toothpick toothpick in your left hand
match gaze block in your left hand.
match trash hammer-handle in your left hand
matchwait

trash:
put put hamm in bin
waitfor As you place
put swap
wait
goto start

toothpick:
put put too in bin
waitfor As you place
goto empty

empty:
put take block from my back
match out I could not find
match swap You remove
matchwait

out:
put out
move south
move south
move south
put out
move south
move west
move south
move west
move west
move west
move west
move go bank
put go arch
put withdraw 500
pause
put go arch
put out
move east
pause
move east
pause
move east
move east
pause
move north
move east
move north
put go gate
move north
move north
move north
pause
put order 5
pause
put buy
pause
put put block in my back
pause
put order 5
pause
put buy
pause
put put block in my back
pause
put order 5
pause
put buy
pause
put put block in my back
move go workshop
goto start

swap:
put swap
waitfor Ok.
goto gaze

gaze:
echo *****************************
echo * CURRENT SKILL: %c ranks.
echo *****************************
put current skill: %c
put gaze handle
match grinder Glancing around you see the grinder
match notenough an edge of the block
matchwait

notenough:
put put bloc in bin
waitfor As you place
goto empty

grinder:
put turn grinder
match out the rent on this workshop has expired
match counter Aha, you learned something that time.
match start [Script]R>
matchwait

counter:
counter add
goto start

exit:
exit