|
||
|
|||||||
| Custom Script Releases This forum is where you can release your custom scripts for other users to use. Please note: By releasing your scripts here you are submitting them to the public and as such agree to make them public domain. The RunUO Team has made its software GPL for you to use and enjoy you should do the same for anything based off of RunUO. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Forum Expert
Join Date: Dec 2006
Posts: 478
|
SAP DART SYSTEM Okay, as most of you know - my scripting abilities aren't great...but as you will see by this system they are improving a lot... ![]() I did this whole system alone, with no help at all (which I'm pretty proud of) ![]() anyway, I'm sure I am boring you, so lets get started. Updates: I have updated the system, I fixed the context menus, so they not display the correct information (Load,unload). Redownload if you wish ![]() Description: FOR RUNUO 2.0 RC1!! This is a system which was initially designed for ninjas (a profession on my shard) so, the throwing of sap darts works off the skill: Ninjitsu. This can be easily changed to a skill of your choice or no skill at all (allowing all professions to use it) in the SapDartHoldingBoots.cs around lines: 126 to 131. Sap darts and Sap Dart Holding Boots are craftable (Sap darts in the weapons section of the Bowcraft & Fletching menu, and Sap Dart Holding Boots in the Footwear section of the tailoring menu.) Usage: For a player to use Sap Darts, they must have their Sap Dart Holding Boots equipped and sap darts in their backpack. They can load their boots with sap darts by single clicking the boots, and selecting “Reload” . After selecting “Reload” target the sap darts. Poison may be applied to sap darts. When the sap dart hits an enemy player or creature. That player / creature will be temporarily paralyzed (stamina set to 0), they will be taken out of warmode, and they will be poisoned depending on whether you poisoned your sap darts or not. They will also receive a small amount of damage between 15 and 30 per hit. Installation: Drop the “Sap Darts” folder which is in the zip file into your customs folder. Then some very minor distro changes (These changes will add the sap darts, and sap dart holding boots to the crafting menus): DefBowFletching.cs FIND: Code:
if( Core.SE )
{
index = AddCraft( typeof( Yumi ), 1044566, 1030224, 90.0, 130.0, typeof( Log ), 1044041, 10, 1044351 );
SetNeededExpansion( index, Expansion.SE );
}
LIKE THIS: Code:
if( Core.SE )
{
index = AddCraft( typeof( Yumi ), 1044566, 1030224, 90.0, 130.0, typeof( Log ), 1044041, 10, 1044351 );
SetNeededExpansion( index, Expansion.SE );
index = AddCraft( typeof( SapDart ), 1044566,"Sap Dart", 70.0, 100.0, typeof( Log ), 1044041, 5, 1044351 );
SetNeededExpansion( index, Expansion.SE ); //<--- Definition for Sap Dart.
}
DefTailoring.cs FIND: Code:
if( Core.SE )
{
index = AddCraft( typeof( NinjaTabi ), 1015288, 1030210, 70.0, 95.0, typeof( Cloth ), 1044286, 10, 1044287 );
SetNeededExpansion( index, Expansion.SE );
index = AddCraft( typeof( SamuraiTabi ), 1015288, 1030209, 20.0, 45.0, typeof( Cloth ), 1044286, 6, 1044287 );
SetNeededExpansion( index, Expansion.SE );
}
LIKE THIS: Code:
if( Core.SE )
{
index = AddCraft( typeof( NinjaTabi ), 1015288, 1030210, 70.0, 95.0, typeof( Cloth ), 1044286, 10, 1044287 );
SetNeededExpansion( index, Expansion.SE );
index = AddCraft( typeof( SamuraiTabi ), 1015288, 1030209, 20.0, 45.0, typeof( Cloth ), 1044286, 6, 1044287 );
SetNeededExpansion( index, Expansion.SE );
index = AddCraft( typeof( SapDartHoldingBoots ), 1015288, "Sap Dart Holding Boots", 70.0, 95.0, typeof( Cloth ), 1044286, 10, 1044287 );
SetNeededExpansion( index, Expansion.SE ); // <--- definition for Sap Dart Holding Boots.
}
DefBowFletching.cs Path: …Server/Scripts/Engines/Craft DefTailoring.cs Path: …Server/Scripts/Engines/Craft Redistribute and edit as you wish. I will be supporting it, if you run into any problems, post ![]() regards Typhoonbot.
__________________
legendsofkaine.page.tl
Last edited by typhoonbot; 08-17-2008 at 10:57 AM. Reason: Updated Version |
|
|
|
|
|
#4 (permalink) |
|
Forum Novice
Join Date: Aug 2007
Posts: 123
|
I'm getting this error and this is the only error though:
RunUO - [www.runuo.com] Version 2.0, Build 2357.32527 Core: Running on .NET Framework Version 2.0.50727 Scripts: Compiling C# scripts...failed (2 errors, 0 warnings) Errors: + Custom/DefTailoring.cs: CS0101: Line 6: The namespace 'Server.Engines.Craft' already contains a defi nition for 'DefTailoring' + Custom/DefBowFletching-2.cs: CS0101: Line 6: The namespace 'Server.Engines.Craft' already contains a defi nition for 'DefBowFletching' Scripts: One or more scripts failed to compile or no script files were found. - Press return to exit, or R to try again.
__________________
|
|
|
|
|
|
#5 (permalink) |
|
Forum Expert
Join Date: Dec 2006
Posts: 478
|
Yes you need to replace your current DefBowFletching.cs and DefTailoring.cs scripts with the ones I posted. you cannot have two of the same files. the ones you need to delete are located in Server/Scripts/Engines/Craft/
regards
__________________
legendsofkaine.page.tl
|
|
|
|
|
|
#8 (permalink) | |
|
Forum Expert
Join Date: Jun 2006
Age: 29
Posts: 613
|
Quote:
I like this a lot. I will probably make some adjustments to it for my shard but it's still a great set of scripts. |
|
|
|
|
![]() |
| Bookmarks |
| Tags |
| 2.0, dart, rc1, sap |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|