Summary:
Have you wanted to let your players ply the trade of ship building?
Here's how.
This script implements DefShipwright, ShipwrightTools and several component parts for the crafting of ships. This version was designed to not require any files except this script file. No mul changes no graphics changes, it simply re-uses any existing graphics already in the base distribution.
This is my first script all comments are welcome, and I'd like to thank a few folks on the forums who helped with some misc. info.
Thanks to Ignacio Vazquez-Abrams, GM Robin, bleis, GoldDraco13 and jrocks, every little bit helps.
editted Apr 11 2004: -----------------------------
NOTE: works perfectly on Beta 36 and v1.0 RC0
-----------------------------------------------------
Hope you enjoy!
Description:
NOTE 1:
Specifically ignores the key, hold, tillerman and a few other items.
I considered using a key or a pair of keys, a crate for the hold, and
a service contract to bind a tillerman. I even remotely considered
needing an unmarked rune to justify being able to recall to your key
to get back to your boat. But dismissed it just so that I could limit
the crafting gump to one menu page in each category.
NOTE 2:
There is a bug in RUNUO Beta 36 CraftItem.cs for more details see:
http://www.runuo.com/forum/showthread.php?t=32078
This only affects new craft menus like my DefShipwright, that use the
final parameter for a string message when you do not have enough resources.
Instead of displaying the string for the message it displays the string
for the object name. The following fix can be applied to CraftItem.cs at
approximately line 523 and line 648 ( of a clean Beta 36 build) :
Change
Code:
message = res.NameString;
to
Code:
message = res.MessageString;
Future Version plans:
A) Implement replacement boat classes that allow makers mark, and perhaps
variable hold sizes.
B) Use a multi for the mast and assembled fixtures, or simply change
them to deeds. Please send me any comments on whether you like the
large mast, want a full multi version, or the simpler deed.
Installation:
Place in your personal custom scripts folder, and [add ShipwrightTools to play with it.
To add the tools to the tinkers craft menu, add the following to
Scripts/Engines/Craft/DefTinkering.cs:
Code:
AddCraft( typeof( ShipwrightTools ), 1044046, "shipwright tools",
20.0, 70.0, typeof( IronIngot ), "iron ingots", 3, 1044037 );
To add some of these components to the Shipwright Vendor you would edit
Scripts/Mobiles/Vendors/SBInfo/SBShipwright.cs
To add the tools to the Tinker Vendor you would add the following to
Scripts/Mobiles/Vendors/SBInfo/SBTinker.cs:
Code:
Add( new GenericBuyInfo( "shipwright tools", typeof( ShipwrightTools ), 30, 20, 0x1EBA, 0 ) );
--editted June 2 2004--
Added ShipKit.cs
Expansion for Shipwright.cs adds pre-packaged kits for playing with your ship building skills.
Drop in your custom script folder and
[add AdvancedShipKit
or
[add BasicShipKit
-----------------------------------------------------------------------------------------------------------------------------------
awdball ·
NON-beligerent Forum Member · · · ·
;^) · · · ·
RUNUO-FAQ · ·
[CODE] Post CODE inside tags
[/CODE]
The team for moderation on RUNUO Forums · · · ·
HelpSomeone · · CAPitalizaTION Counts m_BeCareful!
(old school c coder learning and luvin c#) · · · · · · ·
Great C# Tutorial · ·
Good forum searching tips