Blacksmith (script)

From Elanthipedia
Revision as of 16:22, 16 May 2016 by KASHNA (talk | contribs) (added category of 'Forging')
Jump to navigation Jump to search
Blacksmith (script)
Category crafting,Forging
Front-end StormFront,Wizard,Genie
Author Pfanston


Description

You can find the Forging guide here Forging guide. Make sure you read it to understand what is going on.

This script assumes that you will have an ingot on the anvil and the blacksmith book turned to the correct page before starting and any extra ingredients needed in your tool container. All Forging is about the ingots used so you need to make an ingot that is big enough to do the job at hand. The ingot will then go on the anvil and you can begin the script.

The script will then get the book and study it, then get the hammer and tongs out and begin the process.

Front End Changes

The script is currently set up and will run in stormfront and the wizard as is. It will also run in Genie but you need to make some changes for that to happen. To make this script run in the Genie front end you must make 6 changes. The script has 6 save items in it that must have the " " around the items being saved removed. These are as follows:

Pound1:
  save "Pound"
goto StowIngot
Tongs1:
  save "Tongs"
goto StowIngot
Bellows1:
  save "Bellows"
goto StowIngot
Shovel1:
  save "Shovel"
goto StowIngot


 save "Shovel"
 save "Bellows"


These six save "item" lines must be changed as follows to run in the genie front end:

Pound1:
  save Pound
goto StowIngot
Tongs1:
  save Tongs
goto StowIngot
Bellows1:
  save Bellows
goto StowIngot
Shovel1:
  save Shovel
goto StowIngot


 save Shovel
 save Bellows


Changing this area of the script allows it to run properly in Genie.

Recently a change was made to forging where when the ingot you had was larger than needed it dropped to the ground. Now it stows it automatically which can cause some strange things to happen with the script. You should set up a store (use store help), so the ingot gets put where you want it to be placed. Because of this the changes above now include the following changes to the goto items that were used:

Pound1:
  save Pound
goto Pound
Tongs1:
  save Tongs
goto Tongs
Bellows1:
  save Bellows
goto Bellows
Shovel1:
  save Shovel
goto Shovel



Other Forging Scripts

This script blacksmith.cmd is a subset of forging scripts. The others are as follows:

armorsmith.cmd
weaponsmith.cmd
ingot_making.cmd
repair1.cmd
temper.cmd

Instructions

Make sure your blacksmith book is turned to the right chapter and page and in the right container, an ingot is on the anvil, and your tools are in the right container.

type .blacksmith <tooloritem> <toolcontainer> <ingotcompleteitemcontainer>

The tooloritem is a tool or blacksmithing item like a cup, tongs, etc.
The toolcontainer is where you keep tools and ingredients
The ingotcompleteitemcontainer to where you keep ingots, books, finished items

Example: .blacksmith hammer bag pack
.blacksmith horseshoe bag pack
.blacksmith tongs bag pack
.blacksmith saw bag pack
.blacksmith rasp bag pack
.blacksmith rifflers bag pack
.blacksmith chisels bag pack
.blacksmith yardstick bag pack
.blacksmith needles bag pack
.blacksmith scraper bag pack
.blacksmith drawknife bag pack
.blacksmith shaper bag pack
.blacksmith hammer bag pack
.blacksmith scissors bag pack
.blacksmith pliers bag pack
.blacksmith shovel bag pack
.blacksmith ring bag pack
.blacksmith stick bag pack
.blacksmith pestle bag pack

If you want to mark items with a stamp then comment out the line "GOTO DONE", and it will instead use a stamp to stamp the item. Note tools and blacksmith items require a certain volume of metal. So make sure you have enough metal before you proceed making things.


Script

#Forging - Blacksmithing

if_1 goto top

ECHO *******************************
ECHO **
ECHO ** This script assumes that you will have an ingot on the anvil
ECHO ** and the weapon book turned to the correct page before starting
ECHO ** and your hands are empty and any extra ingredients needed are in
ECHO ** your tool container.
ECHO ** 
ECHO ** When starting the script, 
ECHO **   type .blacksmith <tooloritem> <toolcontainer> <ingotcompleteitemcontainer>
ECHO ** Example:
ECHO **    .blacksmith hammer bag pack
ECHO **
ECHO ** The toolcontainer is where you keep tools and ingredients
ECHO ** The ingotcompleteitemcontainer to where you keep ingots, books, finished items
ECHO **
ECHO ********************************
exit

Top:
  put glance
  match top1 You glance down at your empty hands
  match blacksend You glance down to see
matchwait

Top1:
  pause
  put get blacksmith book from my %3
  pause
  put study my book
  waitfor Roundtime
  pause 2
  put put my book in my %3
  waitfor You put
  put get my hammer from my %2
  pause
  put get my tongs from my %2

PoundIngot:
  pause
  put pound ingot on anvil with my hammer
  match Tongs1 could use some straighting along the horn
  match Tongs1 could use some straightening along the horn
  match Tongs1 would benefit from some soft reworking.
  match Bellows1 is unable to consume its fuel.
  match Bellows1 As you finish working the fire dims and produces
  match Shovel1 fire dies down and needs more fuel.
  match Shovel1 fire dies down and appears to need some more fuel.
  match Pound1 Roundtime
matchwait

Pound1:
  save "Pound"
goto Pound
Tongs1:
  save "Tongs"
goto Tongs
Bellows1:
  save "Bellows"
goto Bellows
Shovel1:
  save "Shovel"
goto Shovel

Pound:
  pause
  put pound %1 on anvil with my hammer
  match Pound ...wait
  match Pound Roundtime
  match Tongs could use some straighting along the horn
  match Tongs could use some straightening along the horn
  match Tongs would benefit from some soft reworking.
  match Tub now appears ready for cooling in the slack tub.
  match Bellows is unable to consume its fuel.
  match Bellows As you finish working the fire dims and produces
  match Shovel fire dies down and needs more fuel.
  match Shovel fire dies down and appears to need some more fuel.
matchwait

StowIngot:
  pause 1
  put put my hammer in my %2
  pause
  put get ingot
  pause
  put put my ingot in my %3
  match StowIngot ...wait
  match Stow2 What were you referring to?
  match Stow2 You put
matchwait

Stow2:
  pause
  put get my hammer from my %2
  waitfor You get
goto %s

Tongs:
  pause
  put turn %1 with my tongs
  match Pound Roundtime
  match Tub The metal now appears ready for cooling in the slack tub.
  match Tongs ...wait
matchwait

Tub:
  pause
  put push tub
  match Tub ...wait
  match Oil Roundtime
matchwait

Bellows:
  pause
  save "Bellows"
  pause 1
  put put my tongs in my %2
  pause
  put get my bellows from my %2
  waitfor You get
  put push bellows
  match Tub The metal now appears ready for cooling in the slack tub.
  match Stow Roundtime
matchwait

Shovel:
  pause
  save "Shovel"
  pause 1
  put put my tongs in %2
  put get my shovel from my %2
  waitfor You get
  put push fuel with my shovel
  match Tub The metal now appears ready for cooling in the slack tub.
  match Stow Roundtime
matchwait

Stow:
  pause 1
  put put my %s in my %2
  pause
  put get my tongs in my %2
  waitfor You get
goto Pound

Oil:
  pause 1
  put put my tongs in my %2
  pause
  put put my hammer in my %2
  waitfor You put
  put get %1
Oil2:
  pause
  put get my oil from my %2
  waitfor You get
  put pour my oil on my %1
  match Mark Roundtime
  match LongPole You need another finished long wooden pole
  match ShortPole You need another finished short wooden pole
  match ShortCord You need another finished short leather cord
  match LongCord You need another finished long leather cord
matchwait

LongPole:
  pause
  put put my oil in my %2
  pause
  put get long pole from my %2
  match LongPole1 You get
  match ingredmis What were you referring to?
matchwait
LongPole1:
  pause
  put assemble my %1 with my pole
goto Oil2

LongCord:
  pause
  put put my oil in my %2
  pause
  put get long cord from my %2
  match LongCord1 You get
  match ingredmis What were you referring to?
matchwait
LongCord1:
  pause
  put assemble my %1 with my cord
goto Oil2

ShortPole:
  pause
  put put my oil in my %2
  pause 
  put get short pole from my %2
  match ShortPole1 You get
  match ingredmis What were you referring to?
matchwait
ShortPole1:
  pause
  put assemble my %1 with my pole
goto Oil2

ShortCord:
  pause
  put put my oil in my %2 
  pause
  put get short cord from my %2
  match ShortCord1 You get
  match ingredmis What were you referring to?
matchwait
ShortCord1:
  pause
  put assemble my %1 with my cord
goto Oil2

Mark: 
  pause 1
  put put my oil in my %2
ECHO *********************************************************
ECHO ** If you want to mark, delete the next line, "GOTO DONE"
ECHO *********************************************************
  goto done
  put get my stamp from my %2
  waitfor You get
  put mark my %1 with my stamp
  pause 2
  put put my stamp in my %2

Done:
  pause 2
  echo ********************************************************************
  echo * YOUR HAVE COMPLETED YOUR %1                                      *
  echo ********************************************************************
exit

INGREDMIS:
  pause 2
  echo ********************************************************************
  echo * YOUR MISSING AN INGREDIENT TO COMPLETE THE ITEM.                 *
  echo ********************************************************************
exit

BLACKSEND:
  pause 2
  echo ********************************************************************
  echo * YOU HAVE SOMETHING IN HAND!  PUT IT AWAY AND RESTART THE SCRIPT! *
  echo ********************************************************************
exit