Fengus
12-20-2004, 07:51 PM
This is my crafting script, its pretty solid but if you run into any problems just post an output of what was happening before and during the problem. I have embedded echos to help debugging so its easy to tell whats going on during any failure.
This script is currently designed for one purpose, that is gaining ranks in crafting, by building hammers and then discarding them. If you want a script to help you make a good quality mithril hammer or something else do not use this (unless you want to modifiy a few lines) since it throws every completed hammer away.
To use the script download the file, open up the script editor by creating a new script, name it, then copy paste this entire file from (notepad or whatever) into the script editor's screen, then save it.
After that you must run it with some parameters to set it up for your use, here is the info:
# %headMaterial stores the head material
# %handleMaterial stores the handle material
# %storage is for storing the best creations
# %trash is the trash container
You can create and assign these variables by running the script with the variables in order, for instance:
.craft "bronze bar" "maoral block" backpack bin
(Note the quotes for the multiword variables.)
Thereafter you won't need to set them unless they change, and most times it will be easier to change them in the interface supplied with SF.
Also as I alluded to earlier nothing is stored yet so the storage variable is not used in this version.
Eventually this script will coincide with my forging script so you could automate the entire process and save good contructions but I won't bother coding that until I need it, and since special metals aren't widely available I have no need to.
The forging script works in a similar manner. But is much less debugged since I restarted my character and have no yet restarted learning to forge.
Here are the variables from the forging script:
# %headMaterial stores the head material
# %handleMaterial stores the handle material
# %headGlyph stores the head material
# %handleGlyph stores the handle material
# %storage is for storing the best creations
# %trash is the trash container
[Edited on 12-21-2004 by Fengus]
There are new variables in the crafting script for version 1.04 they are:
# %headMaterial stores the head material
# %handleMaterial stores the handle material
# %headMaterialFull stores the head material
# %handleMaterialFull stores the handle material
# %storage is for storing the best creations
# %trash is the trash container
The new ones are to address an issue with some metals that have their full names used in some cases. (For instance "heavy mithril slab" is a full name, and is used to matches with glance I believe and some other cases.) This is most likely a bug or poor design and may, or may already have been fixed, but in that event the Full variables would match the others and the script will work as before.
The forging script has been updated and mostly debugged. But as with the crafting script best creations would be recognized but no special action is taken, the code is commented out but should work if you wish to enable it.
Once I've completed the scripts I will enable those sections by default but they are untested so I leave them out for now.
And with that I will leave you with this final thought:
>artisan
You feel that you are a master at the art of forging two-handed weapons.
You feel that you are a master at the art of forging one-handed edged weapons.
You feel that you are a master at the art of crafting.
[Edited on 6-18-2005 by Fengus]
This script is currently designed for one purpose, that is gaining ranks in crafting, by building hammers and then discarding them. If you want a script to help you make a good quality mithril hammer or something else do not use this (unless you want to modifiy a few lines) since it throws every completed hammer away.
To use the script download the file, open up the script editor by creating a new script, name it, then copy paste this entire file from (notepad or whatever) into the script editor's screen, then save it.
After that you must run it with some parameters to set it up for your use, here is the info:
# %headMaterial stores the head material
# %handleMaterial stores the handle material
# %storage is for storing the best creations
# %trash is the trash container
You can create and assign these variables by running the script with the variables in order, for instance:
.craft "bronze bar" "maoral block" backpack bin
(Note the quotes for the multiword variables.)
Thereafter you won't need to set them unless they change, and most times it will be easier to change them in the interface supplied with SF.
Also as I alluded to earlier nothing is stored yet so the storage variable is not used in this version.
Eventually this script will coincide with my forging script so you could automate the entire process and save good contructions but I won't bother coding that until I need it, and since special metals aren't widely available I have no need to.
The forging script works in a similar manner. But is much less debugged since I restarted my character and have no yet restarted learning to forge.
Here are the variables from the forging script:
# %headMaterial stores the head material
# %handleMaterial stores the handle material
# %headGlyph stores the head material
# %handleGlyph stores the handle material
# %storage is for storing the best creations
# %trash is the trash container
[Edited on 12-21-2004 by Fengus]
There are new variables in the crafting script for version 1.04 they are:
# %headMaterial stores the head material
# %handleMaterial stores the handle material
# %headMaterialFull stores the head material
# %handleMaterialFull stores the handle material
# %storage is for storing the best creations
# %trash is the trash container
The new ones are to address an issue with some metals that have their full names used in some cases. (For instance "heavy mithril slab" is a full name, and is used to matches with glance I believe and some other cases.) This is most likely a bug or poor design and may, or may already have been fixed, but in that event the Full variables would match the others and the script will work as before.
The forging script has been updated and mostly debugged. But as with the crafting script best creations would be recognized but no special action is taken, the code is commented out but should work if you wish to enable it.
Once I've completed the scripts I will enable those sections by default but they are untested so I leave them out for now.
And with that I will leave you with this final thought:
>artisan
You feel that you are a master at the art of forging two-handed weapons.
You feel that you are a master at the art of forging one-handed edged weapons.
You feel that you are a master at the art of crafting.
[Edited on 6-18-2005 by Fengus]