custom craftables package
Hi all,
Edit 02/01/2005:
Fixed a bug that caused crash in the tool house, ThanX XxSP1DERxX for helping me fix this
Edit 25/12/2004:
Fixed 2 bugs:
1. With keyring I had a type there that needed silver to be on the server.
2. The tool and runic house was accepting more then the limit, not anymore
Edit 23/12/2004:
Sorry for missing the scripts, I accidently tried to attach a rar file and didn't noticed the error message, here's the zip file.
Thanx Haazen for letting me know.
BTW I'll be releasing a custom wood and ore system for the distro shards that want to add it and have hard time doing so (like I did). I'll add inside it a custom craftable package that can hold all the resources (I know how hard it is to "fix" this resource things to hold customs *sigh*).
Original:
I'm not very advance in scripting but I made this package partialy from files I got here and I moded a bit and partialy rewriting from scratch.
here goes the details:
Description:
All items are used from backpack, carryable and NOT blessed (you can make them blessed if you want but players can insure them, if you want them blessed just look for //loottype.blessed and remove the //.
Mobile Forge: Just mobile forge players can carry around.
Tool House: A container to contain charges of tool acording to category and extract 1 tool with the amount of charges.
for example you can get normal axe, double axe, hatchet and add them all to the tool under lumberjacking category, when you extract it you'll get hatchet with the sum amount of charges of the lumberjacking category.
I rewrote the toolhouse from scratch once I encountered too many problems with the version I based it on it kept crashing and wasn't able to create some tools with more then a set amount of charges.
P.S.
Special thanx for sep102 from the forum script support section, he's the main reason this script came to light, without his help I would've abandoned it .
Runic House: same as the tool house but for runics.
Bank Hive: just double click it to open your bank box.
Resource Keys: The resource keys open a magical door to a warehouse that can store resources.
This part of the script based mostly on the resource book that Ashlar and Morrigan wrote so most of the credit should go to this couple.
I rewrote some of the resource keys to add resources and rearange gumps mostly.
KeyRing: just rare item needed to craft the items, this item best handed to players as event rewards or sold for tokens (or something similar) to keep the items in this package in high value and not some cheap item to use once and throw away.
All the following items with the exception of the keyring can be crafted in the tinkering menu.
They all need high crafting skills (the skills differ between items).
Let's just say that if you have 120 in all the skills needed you have 40% chance to craft any of them.
Keep in mind this package was modified originaly to fit a shard with magical ores and wood so the gumps is a little bigger.
Those parts with magical items was /* out for the distro pack. just go over the script there should be 7 sections in each part.
Changelog:
16/12/2004 Added Runic House, same as toolhouse but for runics.
16/12/2004 Totaly rewrote ToolHouse from scratch, added all tools known to me (contact me if you find missing).
13/12/2004 Added Bank Hive.
13/12/2004 Removed resource house and replaced it with resource keys (runuo wasn't handling such a large script right)
07/12/2004 Rewrited Resource House to fix a bug that didn't gave back the surplus from resources.
07/12/2004 Rewrited Resource House to make it able to take out items with less then 100.
26/08/2004: Added resource house.
26/08/2004: Added portable forge.
26/08/2004: Made the script custom craftables (I'm planning on adding more items).
26/08/2004: added option to make it craftable by tinkering.
22/08/2004: I remade the toolbox script to be tool house which is blessed and can be carried around with you.
Pakcage include 12 files:
Bank Hive.cs (double click to open bank box)
Costum Craftables.txt (this file)
DefTinkering.cs.mod (this is official deftinkering.cs that was modified to include this script, just renamed to deftinkering.cs and overwrite distro file)
Key Ring.cs (used as a resource to craft the keys)
Metal Workers Key.cs (store ingots)
MobileForge.cs (forge you can carry around)
RuncHouse.cs (store runic hammers\fletchers\sewingkits and give back 1 runic with combined charges)
Spell Casters Key.cs (store reagents and others)
Stone Workers Key.cs (store granites)
Tailors Key.cs (store leather etc)
ToolHouse.cs (store tools and give back 1 tool with combined charges)
WoodWorkersKey.cs (store boards and logs)
Installation:
1. Just place the files anywhere in **\runuo\scripts\**\.
2.a. To make it craftable either add this lines to DefTinkering.cs
2.b. If you never touched deftinkering.cs just overwrite it with deftinkering.cs.mod from this pack.
custom Craftable.txt file is included in this package, this is the readme file.
most of the stuff you read in this post is located in the readme so if you lost the post you still have the install instructions there.
Have fun
Hi all,
Edit 02/01/2005:
Fixed a bug that caused crash in the tool house, ThanX XxSP1DERxX for helping me fix this
Edit 25/12/2004:
Fixed 2 bugs:
1. With keyring I had a type there that needed silver to be on the server.
2. The tool and runic house was accepting more then the limit, not anymore
Edit 23/12/2004:
Sorry for missing the scripts, I accidently tried to attach a rar file and didn't noticed the error message, here's the zip file.
Thanx Haazen for letting me know.
BTW I'll be releasing a custom wood and ore system for the distro shards that want to add it and have hard time doing so (like I did). I'll add inside it a custom craftable package that can hold all the resources (I know how hard it is to "fix" this resource things to hold customs *sigh*).
Original:
I'm not very advance in scripting but I made this package partialy from files I got here and I moded a bit and partialy rewriting from scratch.
here goes the details:
Description:
All items are used from backpack, carryable and NOT blessed (you can make them blessed if you want but players can insure them, if you want them blessed just look for //loottype.blessed and remove the //.
Mobile Forge: Just mobile forge players can carry around.
Tool House: A container to contain charges of tool acording to category and extract 1 tool with the amount of charges.
for example you can get normal axe, double axe, hatchet and add them all to the tool under lumberjacking category, when you extract it you'll get hatchet with the sum amount of charges of the lumberjacking category.
I rewrote the toolhouse from scratch once I encountered too many problems with the version I based it on it kept crashing and wasn't able to create some tools with more then a set amount of charges.
P.S.
Special thanx for sep102 from the forum script support section, he's the main reason this script came to light, without his help I would've abandoned it .
Runic House: same as the tool house but for runics.
Bank Hive: just double click it to open your bank box.
Resource Keys: The resource keys open a magical door to a warehouse that can store resources.
This part of the script based mostly on the resource book that Ashlar and Morrigan wrote so most of the credit should go to this couple.
I rewrote some of the resource keys to add resources and rearange gumps mostly.
KeyRing: just rare item needed to craft the items, this item best handed to players as event rewards or sold for tokens (or something similar) to keep the items in this package in high value and not some cheap item to use once and throw away.
All the following items with the exception of the keyring can be crafted in the tinkering menu.
They all need high crafting skills (the skills differ between items).
Let's just say that if you have 120 in all the skills needed you have 40% chance to craft any of them.
Keep in mind this package was modified originaly to fit a shard with magical ores and wood so the gumps is a little bigger.
Those parts with magical items was /* out for the distro pack. just go over the script there should be 7 sections in each part.
Changelog:
16/12/2004 Added Runic House, same as toolhouse but for runics.
16/12/2004 Totaly rewrote ToolHouse from scratch, added all tools known to me (contact me if you find missing).
13/12/2004 Added Bank Hive.
13/12/2004 Removed resource house and replaced it with resource keys (runuo wasn't handling such a large script right)
07/12/2004 Rewrited Resource House to fix a bug that didn't gave back the surplus from resources.
07/12/2004 Rewrited Resource House to make it able to take out items with less then 100.
26/08/2004: Added resource house.
26/08/2004: Added portable forge.
26/08/2004: Made the script custom craftables (I'm planning on adding more items).
26/08/2004: added option to make it craftable by tinkering.
22/08/2004: I remade the toolbox script to be tool house which is blessed and can be carried around with you.
Pakcage include 12 files:
Bank Hive.cs (double click to open bank box)
Costum Craftables.txt (this file)
DefTinkering.cs.mod (this is official deftinkering.cs that was modified to include this script, just renamed to deftinkering.cs and overwrite distro file)
Key Ring.cs (used as a resource to craft the keys)
Metal Workers Key.cs (store ingots)
MobileForge.cs (forge you can carry around)
RuncHouse.cs (store runic hammers\fletchers\sewingkits and give back 1 runic with combined charges)
Spell Casters Key.cs (store reagents and others)
Stone Workers Key.cs (store granites)
Tailors Key.cs (store leather etc)
ToolHouse.cs (store tools and give back 1 tool with combined charges)
WoodWorkersKey.cs (store boards and logs)
Installation:
1. Just place the files anywhere in **\runuo\scripts\**\.
2.a. To make it craftable either add this lines to DefTinkering.cs
2.b. If you never touched deftinkering.cs just overwrite it with deftinkering.cs.mod from this pack.
Code:
//Customs
//bank hive
index = AddCraft( typeof( BankHive ), "Customs", "Bank hive", 100.0, 150.0, typeof( KeyRing ), "You need more Key Rings", 2, "KeyRing" );
AddSkill( index, SkillName.Carpentry, 100.0, 150.0 );
AddSkill( index, SkillName.Blacksmith, 100.0, 150.0 );
AddSkill( index, SkillName.Tailoring, 100.0, 150.0 );
//AddRes( index, typeof( Tokens ), "You need more Tokens", 60000, "Tokens" ); // this marked out in case you don't have tokens, feel free to remove the // from //AddRes to use 60k tokens as a resource as well
AddRes( index, typeof( Gold ), "You need more Gold", 6000, "Gold" );
//tool house
index = AddCraft( typeof( ToolHouse ), "Customs", "Tool House", 100.0, 150.0, typeof( KeyRing ), "You need more Key Rings", 2, "KeyRing" );
AddSkill( index, SkillName.Carpentry, 100.0, 150.0 );
AddSkill( index, SkillName.Blacksmith, 100.0, 150.0 );
AddSkill( index, SkillName.Tailoring, 100.0, 150.0 );
AddRes( index, typeof( IronIngot ), "You need more Ingots", 100, "Ingots" );
AddRes( index, typeof( SpinedLeather ), "You need more Spined Leather", 100, "Spined Leather" );
AddRes( index, typeof( Board ), "You need more Boards", 20, "Boards" );
//runic house
index = AddCraft( typeof( RunicHouse ), "Customs", "Runic House", 100.0, 150.0, typeof( KeyRing ), "You need more Key Rings", 2, "KeyRing" );
AddSkill( index, SkillName.Carpentry, 100.0, 150.0 );
AddSkill( index, SkillName.Blacksmith, 100.0, 150.0 );
AddSkill( index, SkillName.Tailoring, 100.0, 150.0 );
AddRes( index, typeof( IronIngot ), "You need more Ingots", 100, "Ingots" );
AddRes( index, typeof( SpinedLeather ), "You need more Spined Leather", 100, "Spined Leather" );
AddRes( index, typeof( Board ), "You need more Boards", 20, "Boards" );
//mobile forge
index = AddCraft( typeof( MobileForge ), "Customs", "Mobile Forge", 100.0, 150.0, typeof( KeyRing ), "You need more Key Rings", 2, "KeyRing" );
AddSkill( index, SkillName.Blacksmith, 100.0, 150.0 );
AddSkill( index, SkillName.Mining, 100.0, 150.0 );
AddRes( index, typeof( IronIngot ), "You need more Ingots", 150, "Ingots" );
AddRes( index, typeof( Granite ), "You need more Granite", 20, "Granite" );
AddRes( index, typeof( Board ), "You need more Boards", 50, "Boards" );
//spell casters key
index = AddCraft( typeof( SpellCastersKey ), "Customs", "Spell Casters Key", 100.0, 150.0, typeof( KeyRing ), "You need more Key Rings", 2, "KeyRing" );
AddSkill( index, SkillName.Magery, 100.0, 150.0 );
AddSkill( index, SkillName.Necromancy, 100.0, 150.0 );
//AddRes( index, typeof( SpringWater ), "You need more Spring Water", 10, "Spring Water" ); // this line use druidic reagent, if you have it then remove the // from //AddRes
AddRes( index, typeof( BlankScroll ), "You need more Blank Scrolls", 50, "Blank Scrolls" );
AddRes( index, typeof( Sand ), "You need more Sand", 15, "Sand" );
//tailors key
index = AddCraft( typeof( TailorsKey ), "Customs", "Tailors Key", 100.0, 150.0, typeof( KeyRing ), "You need more Key Rings", 2, "KeyRing" );
AddSkill( index, SkillName.Tailoring, 100.0, 150.0 );
AddRes( index, typeof( Cloth ), "You need more Cloth", 125, "Cloth" );
AddRes( index, typeof( BarbedLeather ), "You need more Barbed Leather", 150, "Barbed Leather" );
AddRes( index, typeof( OilCloth ), "You need more Oil Cloth", 20, "Oil Cloth" );
// wood workers key
index = AddCraft( typeof( WoodWorkersKey ), "Customs", "Wood Workers Key", 100.0, 150.0, typeof( KeyRing ), "You need more Key Rings", 2, "KeyRing" );
AddSkill( index, SkillName.Carpentry, 100.0, 150.0 );
AddSkill( index, SkillName.Lumberjacking, 100.0, 150.0 );
AddRes( index, typeof( Board ), "You need more Boards", 250, "Boards" );
AddRes( index, typeof( Shaft ), "You need more Shafts", 150, "Shafts" );
AddRes( index, typeof( FertileDirt ), "You need more Fertile Dirt", 50, "Fertile Dirt" );
//metal workers key
index = AddCraft( typeof( MetalWorkersKey ), "Customs", "Metal Workers Key", 100.0, 150.0, typeof( KeyRing ), "You need more Key Rings", 2, "KeyRing" );
AddSkill( index, SkillName.Blacksmith, 100.0, 150.0 );
AddSkill( index, SkillName.Mining, 100.0, 150.0 );
AddRes( index, typeof( IronIngot ), "You need more Ingots", 250, "Ingots" );
AddRes( index, typeof( Kindling ), "You need more Kindling", 20, "Kindling" );
AddRes( index, typeof( ValoriteIngot ), "You need more Valorite Ingots", 30, "Valorite Ingots" );
/stone workers key
index = AddCraft( typeof( StoneWorkersKey ), "Customs", "Stone Workers Key", 100.0, 150.0, typeof( KeyRing ), "You need more Key Rings", 2, "KeyRing" );
AddSkill( index, SkillName.Carpentry, 100.0, 150.0 );
AddSkill( index, SkillName.Mining, 100.0, 150.0 );
AddRes( index, typeof( IronIngot ), "You need more Ingots", 100, "Ingots" );
AddRes( index, typeof( Granite ), "You need more Granite", 25, "Granite" );
AddRes( index, typeof( Board ), "You need more Boards", 50, "Boards" );
custom Craftable.txt file is included in this package, this is the readme file.
most of the stuff you read in this post is located in the readme so if you lost the post you still have the install instructions there.
Have fun