Go Back   RunUO - Ultima Online Emulation > RunUO > Custom Script Releases

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.

Reply
 
Thread Tools Display Modes
Old 07-04-2008, 05:43 PM   #1 (permalink)
Forum Expert
 
typhoonbot's Avatar
 
Join Date: Dec 2006
Posts: 478
Default Sap Darts - RUNUO 2.0 RC1

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 );
				
}
And underneath, add another definition for the Sap Dart:

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 );
				
}
AND ADD ANOTHER DEFINITION FOR THE SAP DART HOLDING BOOTS UNDERNEATH

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.
}
I have included both the standard DefBowFletching.cs and DefTailoring.cs files with the required modification in a separate download file. If you have not made any previous changes to your distro DefBowFletching.cs and DefTailoring.cs you can replace your current ones with the ones I have attached in the download section.

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.
Attached Files
File Type: rar Sap Dart System.rar (3.1 KB, 13 views)
File Type: rar Modified Distro Files.rar (4.5 KB, 11 views)
__________________
legendsofkaine.page.tl

Last edited by typhoonbot; 08-17-2008 at 10:57 AM. Reason: Updated Version
typhoonbot is offline   Reply With Quote
Old 07-05-2008, 01:33 AM   #2 (permalink)
Forum Novice
 
SolusII's Avatar
 
Join Date: Aug 2007
Posts: 123
Default

I can't use rar files but these look really cool and not overkill things, so could you post it as a cs file too?
__________________

SolusII is offline   Reply With Quote
Old 07-05-2008, 08:00 AM   #3 (permalink)
Forum Expert
 
typhoonbot's Avatar
 
Join Date: Dec 2006
Posts: 478
Default

Sure thing

(See attachments below)


enjoy

regards
Attached Files
File Type: cs DefBowFletching.cs (4.3 KB, 7 views)
File Type: cs DefTailoring.cs (16.7 KB, 5 views)
File Type: cs SapDart.cs (2.2 KB, 5 views)
File Type: cs SapDartHoldingBoots.cs (8.0 KB, 5 views)
__________________
legendsofkaine.page.tl
typhoonbot is offline   Reply With Quote
Old 07-05-2008, 01:44 PM   #4 (permalink)
Forum Novice
 
SolusII's Avatar
 
Join Date: Aug 2007
Posts: 123
Default

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.
__________________

SolusII is offline   Reply With Quote
Old 07-05-2008, 01:49 PM   #5 (permalink)
Forum Expert
 
typhoonbot's Avatar
 
Join Date: Dec 2006
Posts: 478
Default

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
typhoonbot is offline   Reply With Quote
Old 07-05-2008, 02:35 PM   #6 (permalink)
Forum Novice
 
SolusII's Avatar
 
Join Date: Aug 2007
Posts: 123
Default

Oh ok ty sir XD
__________________

SolusII is offline   Reply With Quote
Old 08-17-2008, 10:58 AM   #7 (permalink)
Forum Expert
 
typhoonbot's Avatar
 
Join Date: Dec 2006
Posts: 478
Default

Okay, I updated the system to use the correct context menus

Enjoy
__________________
legendsofkaine.page.tl
typhoonbot is offline   Reply With Quote
Old 08-17-2008, 02:02 PM   #8 (permalink)
Forum Expert
 
Midnightdragon's Avatar
 
Join Date: Jun 2006
Age: 29
Posts: 613
Default

Quote:
Originally Posted by SolusII View Post
I can't use rar files but these look really cool and not overkill things, so could you post it as a cs file too?
Why not get winrar to open .rar files it's free.

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.
Midnightdragon is offline   Reply With Quote
Old 09-14-2008, 03:04 PM   #9 (permalink)
Forum Expert
 
typhoonbot's Avatar
 
Join Date: Dec 2006
Posts: 478
Default

Thanks

It is great when other people appreciate the work you have done :>

Regards
__________________
legendsofkaine.page.tl
typhoonbot is offline   Reply With Quote
Reply

Bookmarks

Tags
2.0, dart, rc1, sap


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5