Armorsmith (script): Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
No edit summary
No edit summary
Line 15: Line 15:
===Front End Changes===
===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 41 changes. The script has 4 save items in it that must have the " " around the items being saved removed. These are as follows: <br>
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 4 changes. The script has 4 save items in it that must have the " " around the items being saved removed. These are as follows: <br>
<br>
<br>
Pound1:
Pound1:

Revision as of 23:05, 6 September 2015

Armorsmith (script)
Category crafting
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 armorsmith 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 4 changes. The script has 4 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


These four 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


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 armorsmith.cmd is a subset of forging scripts. The others are as follows:

blacksmith.cmd
weaponsmith.cmd
ingot_making.cmd
repair1.cmd
temper.cmd

Instructions

Make sure your armorsmith 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.

When starting the script, type .armorsmith <item> <Toolcontainer> <OtherContainer>

The Item is the armor item being made. Note if here are 10 types of helms (mail helm, ring helm, etc. you just use helm), gloves, greaves, shirt, etc.
The ToolContainer is where you keep tools and ingredients
The Othercontainer to where you keep ingots, books, finished items

Example : .armorsmith gloves bag pack
.armorsmith balaclava 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 armor items take a lot of volume of metal. So make sure you have enough metal before you proceed making things.


Script

#Armorsmith

if_1 goto top

ECHO *******************************
ECHO **
ECHO ** This script assumes that you will have an ingot on the anvil
ECHO ** and the armorsmith book turned to the correct page before starting
ECHO ** and any extra ingredients needed in your tool container.
ECHO ** 
ECHO ** When starting the script, type .armorsmith <item> <Toolcontainer> <OtherContainer>
ECHO ** Example : .armorsmith gloves bag pack
ECHO **
ECHO ** The ToolContainer is where you keep tools and ingredients
ECHO ** The Othercontainer to where you keep ingots, books, finished items
ECHO **
ECHO ********************************
exit

top:
  put glance
  match top1 You glance down at your empty hands
  match armorsend You glance down to see
matchwait

top1:
  pause
  put get armorsmith 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
  waitfor You get

PoundIngot:
  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 Tongs1 The metal must be transfered to
  match Tongs1 placed in mold sets using tongs
  match Tongs1 ready to be turned into wire using a mandrel or mold set
  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

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

Pound:
  pause 1
  put pound %1 on anvil with my hammer
  match Pound ...wait
  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 Tongs The metal must be transfered to
  match Tongs placed in mold sets using tongs
  match Tongs ready to be turned into wire using a mandrel or mold set
  match Tub ready for a quench hardening in the slack tub.
  match Bellows As you finish working the fire dims and produces
  match Bellows is unable to consume its fuel.
  match Shovel fire dies down and needs more fuel.
  match Shovel fire dies down and appears to need some more fuel.
  match Pound Roundtime
matchwait

Tongs:
  pause 1
  put turn %1 on anvil with my tongs
  match Pound Roundtime
  match Tub ready for a quench hardening in the slack tub.
  match Tongs ...wait
matchwait

Tub:
  pause 1
  put put my hammer in my %2
  pause
  put put my tongs in my %2
  waitfor You put
  put push tub
  match Tub ...wait
  match LookAnvil Roundtime
matchwait

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 ready for a quench hardening in the slack tub.
  match StowBellow Roundtime
matchwait

Shovel:
  pause 1
  put put my tongs in my %2
  pause
  put get my shovel from my %2
  waitfor You get
  put push fuel with my shovel
  match Tub ready for a quench hardening in the slack tub.
  match StowShovel Roundtime
matchwait

StowBellow:
  pause 1
  put put my bellows in my %2
  pause
  put get my tongs from my %2
  waitfor You get
goto Pound

StowShovel:
  pause 1
  put put my shovel in my %2
  pause
  put get my tongs from my %2
  waitfor You get
goto Pound

LookAnvil:
  put look on anvil
  match GREAVES greaves
  match VAMBRACES vambraces
  match HANDLES handle
  match AVENTAIL aventail
  match MASK mask
  match GAUNTLETS gauntlets
  match HELM helm
  match BASCINET bascinet
  match MORION morion
  match FAULD fauld
  match BACKPLATE backplate
  match BARBUTE barbute
  match SALLET sallet
  match BREASTPLATE breastplate
  match SLEEVES sleeves
  match ARMET armet
  match CUIRASS cuirass
  match HALFPLATE half plate
  match FIELDPLATE field plate
  match FULLPLATE full plate
  match VEST vest
  match SHIELD sipar
  match SHIELD targe
  match SHIELD buckler
  match LookAnvil2 unfinished
matchwait

LookAnvil2:
  put look on anvil
  match CAP cap
  match GLOVES gloves
  match TASSET tasset
  match BALACLAVA balaclava
  match LORICA lorica
  match MANTLE mantle
  match SHIRT shirt
  match ROBE robe
  match HAUBERK hauberk
  match SHIELD aegis
  match HANDLES boss
  match SHIELD shield
matchwait
#
# Hauberk
#
HAUBERK:
  put look on anvil
  match CHAUBERK ring hauberk
  match CHAUBERK chain hauberk
  match CHAUBERK mail hauberk
  match CHAUBERK scale hauberk
  match CHAUBERK brigandine hauberk
  match PHAUBERK lamellar hauberk
matchwait
#
# Shirt
SHIRT:
  put look on anvil
  match CLPSP ring shirt
  match CLPSP chain shirt
  match CLPSP mail shirt
  match CLP scale shirt
  match CLP brigandine shirt
  match CLP lamellar shirt
matchwait
#
# Robe
#
ROBE:
  put look on anvil
  match CLPSP ring robe
  match CLPSP chain robe
  match CLPSP mail robe
  match CLPSP scale robe
  match CLPSP brigandine robe
  match PLBSB lamellar robe
matchwait
#
# Mantle
#
MANTLE:
  put look on anvil
  match CLP ring mantle
  match CLP chain mantle
  match CLP mail mantle
  match CLP scale mantle
  match CLP brigandine mantle
  match PLB lamellar mantle
matchwait
#
# Lorica
#
LORICA:
  put look on anvil
  match CLP ring lorica
  match CLP chain lorica
  match CLP mail lorica
  match CLP scale lorica
  match CLP brigandine lorica
  match PLB lamellar lorica
matchwait
#
# Balaclava
#
BALACLAVA:
  put look on anvil
  match CSP ring balaclava
  match CSP chain balaclava
  match PSB mail balaclava
  match CSP scale balaclava
  match CSP brigandine balaclava
  match PSB lamellar balaclava
matchwait
#
# Tasset
#
TASSET:
  put look on anvil
  match CSP ring tasset
  match CSP chain tasset
  match CSP mail tasset
  match CSP scale tasset
  match CSP brigandine tasset
  match PSB lamellar tasset
matchwait
#
# Gloves
#
GLOVES:
  put look on anvil
  match CSP ring gloves
  match CSP chain gloves
  match CSP mail gloves
  match CSP scale gloves
  match CSP brigandine gloves
  match PSB lamellar gloves
matchwait
#
# Cap
#
CAP:
  put look on anvil
  match CSP ring cap
  match CSP chain cap
  match CSP mail cap
  match CSP scale cap
  match CSP brigandine cap
  match PSB lamellar cap
matchwait
#
# Vest
#
VEST:
  put look on anvil
  match CLP ring vest
  match CLP chain vest
  match CLP mail vest
  match CLP scale vest
  match CLP brigandine vest
  match PLB lamellar vest
matchwait
#
# Aventail
#
AVENTAIL:
  put look on anvil
  match CSP ring aventail
  match CSP chain aventail
  match CSP mail aventail
  match CSP scale aventail
  match CSP brigandine aventail
  match CSP light plate aventail
  match PSB lamellar aventail
  match PSB heavy plate aventail
  match PSB plate aventail
matchwait
#
# Mask
#
MASK:
  put look on anvil
  match CSP ring mask
  match CSP chain mask
  match CSP mail mask
  match CSP scale mask
  match CSP brigandine mask
  match CSP light plate mask
  match PSB lamellar mask
  match PSB heavy plate mask
  match PSB plate mask
matchwait
#
# Gauntlets
#
GAUNTLETS:
  put look on anvil
  match CSP light plate gauntlets
  match PSB heavy plate gauntlets
  match PSB plate gauntlets
matchwait
#
# Helm
#
HELM:
  put look on anvil
  match CSP ring helm
  match CSP chain helm
  match CSP mail helm
  match CSP scale helm
  match CSP brigandine helm
  match CSP dome helm
  match PSB lamellar helm
  match PSB visored helm
  match PSB closed helm
  match PSB great helm
matchwait
#
# Bascinet
#
BASCINET:
  put look on anvil
  match CSP bascinet
matchwait
#
# Morion
#
MORION:
  put look on anvil
  match PSB morion
matchwait
#
# Fauld
#
FAULD:
  put look on anvil
  match CSP light plate fauld
  match PSB heavy plate fauld
  match PSB plate fauld
matchwait
#
# Backplate
#
BACKPLATE:
  put look on anvil
  match CSP light backplate
  match PSB heavy backplate
  match PSB backplate
matchwait
#
# Barbute
#
BARBUTE:
  put look on anvil
  match PSB barbute
matchwait
#
# Sallet
#
SALLET:
  put look on anvil
  match CSP sallet
matchwait
#
# Breastplate
#
BREASTPLATE:
  put look on anvil
  match CSP light breastplate
  match PSB heavy breastplate
  match PSB breastplate
matchwait
#
# Sleeves
#
SLEEVES:
  put look on anvil
  match CSP ring sleeves
  match CSP chain sleeves
  match CSP mail sleeves
  match CSP scale sleeves
  match CSP brigandine sleeves
  match CSP light plate sleeves
  match PSB lamellar sleeves
  match PSB heavy plate sleeves
  match PSB plate sleeves
matchwait
#
# Armet
#
ARMET:
  put look on anvil
  match PSB armet
matchwait
#
# Cuirass
#
CUIRASS:
  put look on anvil
  match CLP light plate cuirass
  match PLB heavy plate cuirass
  match PLB plate cuirass
matchwait
#
# Halfplate
#
HALFPLATE:
  put look on anvil
  match CLPSP light half plate
  match PLBSB heavy half plate
  match PLBSB half plate
matchwait
#
# Fieldplate
#
FIELDPLATE:
  put look on anvil
  match CLPSP light field plate
  match PLBSB heavy field plate
  match PLBSB field plate
matchwait
#
# Fullplate
#
FULLPLATE:
  put look on anvil
  match CLPSP light full plate
  match PLBSB heavy full plate
  match PLBSB full plate
matchwait
#
# Greaves
#
GREAVES:
  put look on anvil
  match CSP light plate greaves
  match CSP ring greaves
  match CSP chain greaves
  match CSP mail greaves
  match CSP scale greaves
  match CSP brigandine greaves
  match PSB heavy plate greaves
  match PSB lamellar greaves
  match PSB plate greaves
matchwait
#
# Vambraces
#
VAMBRACES:
  put look on anvil
  match CSP ring vambraces
  match CSP chain vambraces
  match CSP mail vambraces
  match CSP scale vambraces
  match CSP brigandine vambraces
  match CSP light plate vambraces
  match PSB lamellar vambraces
  match PSB heavy plate vambraces
  match PSB plate vambraces
matchwait
#
# CHAUBERK, PHAUBERK
#
CHAUBERK:
  pause 1
  put get %1 from anvil
  waitfor You get
  put get my large padding from my %2
  match CHAUBASSEM1 You get
  match ERRORI1 What do you
matchwait

CHAUBASSEM1:
  pause 1
  put assemble my %1 with my large padding
  waitfor You place your
  put get my pliers from my %2
  waitfor You get
  put pull %1 with my pliers
  match CHAUBASSEM2 Roundtime:
matchwait

CHAUBASSEM2:
  pause 1
  put put my pliers in my %2
  pause 1
  put get my small padding from my %2
  pause 1
  put assemble %1 with my small padding
  pause 1
  put get my small padding from my %2
  pause 1
  put assemble %1 with my small padding
  pause 1
  put get my pliers from my %2
  match ERRORT1 What do you
  match CHAUBPULL You get
matchwait

CHAUBPULL:
  pause 1
  put pull my %1 with my pliers
  match CHAUBOIL The worked metal looks to be in need of some oil
  match CHAUBPULL Roundtime:
matchwait

CHAUBOIL:
  pause 1
  put put my pliers in my %2
  match oil You put
matchwait

PHAUBERK:
  pause 1
  put get %1 from anvil
  waitfor You get
  put get my large backing from my %2
  match PHAUBASSEM1 You get
  match ERRORI1 What do you
matchwait

PHAUBASSEM1:
  pause 1
  put assemble my %1 with my large backing
  waitfor You place your
  put get my pliers from my %2
  waitfor You get
  put pull my %1 with my pliers
  match PHAUBASSEM2 Roundtime:
matchwait

PHAUBASSEM2:
  pause 1
  put put my pliers in my %2
  pause 1
  put get my small backing from my %2
  pause 1
  put assemble %1 with my small backing
  pause 1
  put get my small backing from my %2
  pause 1
  put assemble %1 with my small backing
  pause 1
  put get my pliers from my %2
  match ERRORT1 What do you
  match PHAUBPULL You get
matchwait

PHAUBPULL:
  pause 1
  put pull my %1 with my pliers
  match PHAUBOIL The worked metal looks to be in need of some oil
  match PHAUBPULL Roundtime:
matchwait

PHAUBOIL:
  pause 1
  put put my pliers in my %2
  match oil You put
matchwait
#
# CLPSP
#
CLPSP:
  pause 1
  put get %1 from anvil
  waitfor You get
  put get my large padding from my %2
  match CLPSPASSEM1 You get
  match ERRORI1 What do you
matchwait

CLPSPASSEM1:
  pause 1
  put assemble my %1 with my large padding
  waitfor You place your
  put get my pliers from my %2
  waitfor You get
  put pull %1 with my pliers
  match CLPSPASSEM2 Roundtime:
matchwait

CLPSPASSEM2:
  pause 1
  put put my pliers in my %2
  pause 1
  put get my small padding from my %2
  pause 1
  put assemble %1 with my small padding
  pause 1
  put get my pliers from my %2
  match ERRORT1 What do you
  match CLPSPPULL You get
matchwait

CLPSPPULL:
  pause 1
  put pull my %1 with my pliers
  match CLPSPOIL The worked metal looks to be in need of some oil
  match CLPSPPULL Roundtime:
matchwait

CLPSPOIL:
  pause 1
  put put my pliers in my %2
  match oil You put
matchwait
#
# CLP
#
CLP:
  pause 1
  put get %1 from anvil
  waitfor You get
  put get my large padding from my %2
  match CLPASSEM1 You get
  match ERRORI1 What do you
matchwait

CLPASSEM1:
  pause 1
  put assemble my %1 with my large padding
  waitfor You place your
  put get my pliers from my %2
  match ERRORT1 What do you
  match CLPPULL You get
matchwait

CLPPULL:
  pause 1
  put pull my %1 with my pliers
  match CLPOIL The worked metal looks to be in need of some oil
  match CLPPULL Roundtime:
matchwait

CLPOIL:
  pause 1
  put put my pliers in my %2
  match oil You put
matchwait
#
# PLBSB
#
PLBSB:
  pause 1
  put get %1 from anvil
  waitfor You get
  put get my large backing from my %2
  match PLBSBASSEM1 You get
  match ERRORI1 What do you
matchwait

PLBSBASSEM1:
  pause 1
  put assemble my %1 with my large backing
  waitfor You place your
  put get my pliers from my %2
  waitfor You get
  put pull my %1 with my pliers
  match PLBSBASSEM2 Roundtime:
matchwait

PROBEASSEM2:
  pause 1
  put put my pliers in my %2
  pause 1
  put get my small backing from my %2
  pause 1
  put assemble my %1 with my small backing
  pause 1
  put get my pliers from my %2
  match ERRORT1 What do you
  match PLBSBPULL You get
matchwait

PLBSBPULL:
  pause 1
  put pull my %1 with my pliers
  match PLBSBOIL The worked metal looks to be in need of some oil
  match PLBSBPULL Roundtime:
matchwait

PLBSBOIL:
  pause 1
  put put my pliers in my %2
  match oil You put
matchwait
#
# PLB
#
PLB:
  pause 1
  put get %1 from anvil
  waitfor You get
  put get my large backing from my %2
  match PLBASSEM1 You get
  match ERRORI1 What do you
matchwait

PLBASSEM1:
  pause 1
  put assemble my %1 with my large backing
  waitfor You place your
  put get my pliers from my %2
  match ERRORT1 What do you
  match PLBPULL You get
matchwait

PLBPULL:
  pause 1
  put pull my %1 with my pliers
  match PLBOIL The worked metal looks to be in need of some oil
  match PLBPULL Roundtime:
matchwait

PLBOIL:
  pause 1
  put put my pliers in my %2
  match oil You put
matchwait
#
# CSP
#
CSP:
  pause 1
  put get %1 from anvil
  waitfor You get
  put get my small padding from my %2
  match CSPASSEM1 You get
  match ERRORI1 What do you
matchwait

CSPASSEM1:
  pause 1
  put assemble my %1 with my padding
  waitfor You place your
  put get my pliers from my %2
  match ERRORT1 What do you
  match CSPPULL You get
matchwait

CSPPULL:
  pause 1
  put pull my %1 with my pliers
  match CSPOIL The worked metal looks to be in need of some oil
  match CSPPULL Roundtime:
matchwait

CSPOIL:
  pause 1
  put put my pliers in my %2
  match oil You put
matchwait
#
# PSB
#
PSB:
  pause 1
  put get %1 from anvil
  waitfor You get
  put get my small backing from my %2
  match PSBASSEM1 You get
  match ERRORI1 What do you
matchwait

PSBASSEM1:
  pause 1
  put assemble my %1 with my backing
  waitfor You place your
  put get my pliers from my %2
  match ERRORT1 What do you
  match PSBPULL You get
matchwait

PSBPULL:
  pause 1
  put pull my %1 with my pliers
  match PSBOIL The worked metal looks to be in need of some oil
  match PSBPULL Roundtime:
matchwait

PSBOIL:
  pause 1
  put put my pliers in my %2
  match oil You put
matchwait
#
# Shield, sipar, targe, buckler, aegis
#
SHIELD:
  pause 1
  put get %1 from anvil
  waitfor You get
  put get my handle from my %2
  waitfor You get
  put assemble my %1 with my handle
  match SHIELDASSEM2 You place your
matchwait

SHIELDASSEM2:
  pause 1
  put put my %1 on anvil
  waitfor You put
  pause 1
  put get my hammer from my %2
  pause 1
  put get my tongs from my %2
  pause 1
  put pound %1 on anvil with my hammer
  match SHIELDASSEM3 Roundtime:
matchwait

SHIELDASSEM3:
  pause 1
  put put my hammer in my %2
  pause 1
  put put my tongs in my %2
  pause 1
  put get %1 from anvil
  pause 1
  put get my long cord from my %2
  pause 1
  put assemble my shield with my long cord
  pause 1 
GOTO Oil
#
# Handle, boss
#
HANDLES:
  pause 1
  put get %1 from anvil

Oil:
  pause 1
  put get oil from my %2
  pause
  put pour my oil on my %1
  waitfor Roundtime
  pause 1
  put put my oil in my %2
  ECHO *******************************************************************
  ECHO **If you want to mark items, delete the next line "GOTO DONE"
  ECHO *******************************************************************
goto Done
  pause
  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

ERRORI1:
  pause 2
  echo ********************************************************************
  echo * YOU ARE MISSING AN INGREDIENT FOR THIS ITEM                      *
  echo ********************************************************************
exit

ERRORT1:
  pause 2
  echo ********************************************************************
  echo * YOU ARE MISSING A TOOL REQUIRED TO BUILD THIS ITEM               *
  echo ********************************************************************
exit

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