PDA

View Full Version : Forging Script..help



jakexjeckle
04-25-2008, 10:07 PM
I'm using Gammit's forging script. I've been modding it to get it to work for me in vaalor, and I'm stuck. The problem is when I need another bar, but I don't have any silver, it will just keep going back and forth between the shop and the workshop. Apparently its skipping some stuff and going straight to glance. I think the problem is somewhere in getmorebars and gemtorebars2. Anyone know how to fix it? Here's the script as of now-

counter set 0

glance:
match trashblade dagger-blade in your left
match gethammer nothing in your right hand
match gethammer down at your empty hands
match getbar and nothing in your left hand.
match stare and a bronze bar in your left hand.
match stare and a flattened bronze bar in your left
match swap bronze bar in your right
match swap forging-hammer in your left
match 1sttongs scribed bronze bar in your left hand.
match 2ndtongs hammered bronze bar in your left hand.
match glance wait...
put glance
matchwait

getglyph:
put put my bar in my pack
move go door
move out
put order 1 of 14 material wax
put buy
move go workshop
move go door
put drop blade-glyph
put get bronze bar from my pack
goto glance

gethammer:
match nohammer Remove what?
match nohammer You aren't wearing that
match glance forging-hammer from your belt
put remove forging-hammer
matchwait
goto error

getbar:
match getbucket you see a cork plug.
match nogetbucket and some water.
match pullplug you see
put look in trough
matchwait

pullplug:
put pull plug
waitfor You pull the drain plug
put drop oil
goto getbucket

getbucket:
put put my bar in my pack
put get bucket
nogetbucket:
pause
match getmorebars Get what?
match glance You remove a
match nogetbucket ...wait
put get bronze bar from back
matchwait
goto error

swap:
put swap
match swap ...wait
match glance You swap a
matchwait
goto error

stare:
put artisan skills
wait
match trashbar Before the design is complete
match 1sttongs Your material is marked with
match getglyph What were you referring to?
match stare ...wait
put stare blade-glyph
matchwait
goto error

1sttongs:
wait
match 1sttongs ...wait
match getbucket The tempering trough is empty!
match 2ndtongs You finish this round
match stare You decide the safest thing to do now is to re-scribe
match rentexpire The tongs don't budge!
put get tongs
matchwait
goto error

2ndtongs:
wait
match 2ndtongs ...wait
match glance You sigh, then return the
match stare You decide the safest thing to do now is to re-scribe
match glance With a satisfying * HISS
match glance The steady ring of hammer on bronze ends abruptly
match rentexpire The tongs don't budge!
put get tongs
matchwait
goto error

error:
echo funky shit
end:
exit

getmorebars:
move go door
move out
getmorebarsstall:
put order 2
wait
put buy
match getmorebars2 Karleiss exclaims, "Sold for 174 silvers!"
match rentexpiregetbars But you do not have enough silver
move go workshop
move go door
goto glance
matchwait

getmorebars2:
match rentexpire But you do not have enough silver!
match barcutting Realizing you still have some time remaining,
match barcutting the clerk collects 300 silvers from you
put put my bar in my pack
wait
put go workshop
matchwait
goto end

nohammer:
echo Wear your forging-hammer before starting
goto end

rentexpire:
put put bar in my back
move go door
move out
rentexpireoutside:
move go walk
move north
move west
move north
move north
move north
move north
move north
move north
move east
move north
move east
move northeast
move east
move east
put go bank
put go arch
put deposit all
put withdraw 479
move out
move out
move west
move west
move southwest
move west
move south
move west
move south
move south
move south
move south
move south
move south
move east
move south
move go walk
move go workshop
insideworkshop:
move go door
goto glance
goto error

trashblade:
move go door
put put dagger-blade in bin
move go door
goto glance

trashbar:
move go door
put put bar in bin
move go door
goto glance

rentexpiregetbars:
put put bar in my back
move go walk
move north
move west
move north
move north
move north
move north
move north
move north
move east
move north
move east
move northeast
move east
move east
put go bank
put go arch
put deposit all
put withdraw 479
move out
move out
move west
move west
move southwest
move west
move south
move west
move south
move south
move south
move south
move south
move south
move east
move south
move go walk
goto getmorebarsstall

barcutting:
counter set 15
put wear forging-hammer
wait

put get bar from my pack
pokecutter:
put swap
wait
#match pullcutterlast 3lb. piece and a 3lb. piece
match pullcutterlast 3lb. piece and a 4lb. piece
match pullcutterlast 3lb. piece and a 5lb. piece
match pullcutter 3lb. piece and a
match pushcutter lb. piece and a
match error 2lb. piece
match slabweight%c You've just reset the slab-cutter
put poke slab-cutter
matchwait

pullcutter:
put pull slab-cutter
wait
put put my second bar in my backpack
counter subtract 3
goto pokecutter

slabweight6:
pullcutterlast:
put pull slab-cutter
wait
put put my bar in my backpack
put put my bar in my backpack
goto insideworkshop

slabweight15:
slabweight14:
slabweight13:
slabweight12:
slabweight11:
slabweight10:
slabweight9:
slabweight8:
slabweight7:
pushcutter:
match pullcutterlast 3lb. piece and a 3lb. piece
match pullcutterlast 3lb. piece and a 4lb. piece
match pullcutterlast 3lb. piece and a 5lb. piece
match pullcutter 3lb. piece and a
match pushcutter lb. piece and a
match error 2lb. piece
put push slab-cutter
matchwait

slabweight5:
slabweight4:
slabweight3:
slabweight2:
slabweight1:
echo fm: Error cutting bar
exit
################################################## #######

jakexjeckle
04-26-2008, 04:42 PM
Worked all of the kinks out of it, Works flawlessly for me. Just start it at the material shop and it will get a bar for you and cut it into 4 pieces. 2 Variables- %merchent% is the npc you buy your materials from, and %storage% is the container you use for your materials. Just change the path from the bank and back for your town. I set it up for Vaalor. Again- Gammits scripted, I just debugged it.

counter set 0

glance:
match trashblade dagger-blade in your left
match gethammer nothing in your right hand
match gethammer down at your empty hands
match getbar and nothing in your left hand.
match stare and a bronze bar in your left hand.
match stare and a flattened bronze bar in your left
match swap bronze bar in your right
match swap forging-hammer in your left
match 1sttongs scribed bronze bar in your left hand.
match 2ndtongs hammered bronze bar in your left hand.
match glance wait...
put glance
matchwait

getglyph:
put put my bar in my %storage%
move go door
move out
put order 1 of 14 material wax
put buy
put put my blade-glyph in my %storage%
move go workshop
move go door
put get bronze bar from my %storage%
goto glance

gethammer:
match nohammer Remove what?
match nohammer You aren't wearing that
match glance forging-hammer from your belt
put remove forging-hammer
matchwait
goto error

getbar:
match getbucket you see a cork plug.
match nogetbucket and some water.
match pullplug you see
match getmorebarsstall I could not find what you were referring to
put look in trough
matchwait

pullplug:
put pull plug
waitfor You pull the drain plug
put drop oil
goto getbucket

getbucket:
put put my bar in my %storage%
put get bucket
nogetbucket:
pause
match getmorebars Get what?
match glance You remove a
match nogetbucket ...wait
put get bronze bar from %storage%
matchwait
goto error

swap:
put swap
match swap ...wait
match glance You swap a
matchwait
goto error

stare:
put artisan skills
wait
match trashbar Before the design is complete
match 1sttongs Your material is marked with
match getglyph What were you referring to?
match stare ...wait
put stare blade-glyph
matchwait
goto error

1sttongs:
wait
match 1sttongs ...wait
match getbucket The tempering trough is empty!
match 2ndtongs You finish this round
match stare You decide the safest thing to do now is to re-scribe
match rentexpire The tongs don't budge!
put get tongs
matchwait
goto error

2ndtongs:
wait
match 2ndtongs ...wait
match glance You sigh, then return the
match stare You decide the safest thing to do now is to re-scribe
match glance With a satisfying * HISS
match glance The steady ring of hammer on bronze ends abruptly
match rentexpire The tongs don't budge!
put get tongs
matchwait
goto error

error:
echo funky shit
end:
exit

getmorebars:
move go door
move out
getmorebarsstall:
match getmorebars2 %merchent% exclaims, "Sold
match rentexpiregetbars you do not have enough silver
put order 2
wait
put buy
matchwait

getmorebars2:
match rentexpire you do not have enough silver
match barcutting Realizing you still have some time remaining,
match barcutting the clerk collects 300 silvers from you
put put my bar in my %storage%
wait
put go workshop
matchwait
goto end

nohammer:
echo Wear your forging-hammer before starting
goto end

rentexpire:
put put bar in my %storage%
move go door
move out
rentexpireoutside:
move go walk
move north
move west
move north
move north
move north
move north
move north
move north
move east
move north
move east
move northeast
move east
move east
put go bank
put go arch
put deposit all
put withdraw 479
move out
move out
move west
move west
move southwest
move west
move south
move west
move south
move south
move south
move south
move south
move south
move east
move south
move go walk
move go workshop
insideworkshop:
move go door
goto glance
goto error

trashblade:
move go door
put put dagger-blade in bin
move go door
goto glance

trashbar:
move go door
put put bar in bin
move go door
goto glance

rentexpiregetbars:
put put bar in my %storage%
move go walk
move north
move west
move north
move north
move north
move north
move north
move north
move east
move north
move east
move northeast
move east
move east
put go bank
put go arch
put deposit all
put withdraw 479
move out
move out
move west
move west
move southwest
move west
move south
move west
move south
move south
move south
move south
move south
move south
move east
move south
move go walk
goto getmorebarsstall

barcutting:
counter set 15
put wear forging-hammer
wait

put get bar from my %storage%
pokecutter:
put swap
wait
#match pullcutterlast 3lb. piece and a 3lb. piece
match pullcutterlast 3lb. piece and a 4lb. piece
match pullcutterlast 3lb. piece and a 5lb. piece
match pullcutter 3lb. piece and a
match pushcutter lb. piece and a
match error 2lb. piece
match slabweight%c You've just reset the slab-cutter
put poke slab-cutter
matchwait

pullcutter:
put pull slab-cutter
wait
put put my second bar in my %storage%
counter subtract 3
goto pokecutter

slabweight6:
pullcutterlast:
put pull slab-cutter
wait
put put my bar in my %storage%
put put my bar in my %storage%
goto insideworkshop

slabweight15:
slabweight14:
slabweight13:
slabweight12:
slabweight11:
slabweight10:
slabweight9:
slabweight8:
slabweight7:
pushcutter:
match pullcutterlast 3lb. piece and a 3lb. piece
match pullcutterlast 3lb. piece and a 4lb. piece
match pullcutterlast 3lb. piece and a 5lb. piece
match pullcutter 3lb. piece and a
match pushcutter lb. piece and a
match error 2lb. piece
put push slab-cutter
matchwait

slabweight5:
slabweight4:
slabweight3:
slabweight2:
slabweight1:
echo fm: Error cutting bar
exit
################################################## #######

vileside
07-16-2008, 10:25 AM
I was wondering where you got the original forging script?

Martaigne
07-16-2008, 11:29 AM
http://forum.gsplayers.com/showthread.php?t=25096&highlight=gammit