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 05-04-2007, 02:51 PM   #1 (permalink)
Forum Newbie
 
Join Date: Sep 2006
Age: 21
Posts: 24
Default Quiver with unlimited arrows

Hello this is my first script Im not sure if im the first person to do a quiver exactly like this.. but here it is.. its a quiver.. its not a container but it can be worn on the MiddleTorso layer so you could wear a cloak and a robe and even the quiver.. anyway what it does is when you double click it it gives 100 arrows to your pack..so um.. yea Enjoy
Attached Files
File Type: cs Quiver.cs (923 Bytes, 323 views)
DemonII is offline   Reply With Quote
Old 05-04-2007, 04:34 PM   #2 (permalink)
Forum Novice
 
Join Date: Jul 2006
Location: Oklahoma
Age: 29
Posts: 476
Default

Thanks a lot. Been looking for something like this.
oiii88 is offline   Reply With Quote
Old 05-04-2007, 04:38 PM   #3 (permalink)
Forum Newbie
 
Join Date: Sep 2006
Age: 21
Posts: 24
Default No Problem

Im pretty new at this stuff so just glad it can be useful
DemonII is offline   Reply With Quote
Old 06-09-2008, 03:55 PM   #4 (permalink)
Forum Novice
 
GhostRiderGrey's Avatar
 
Join Date: Nov 2007
Posts: 154
Default

Thank you for the script. We are using it with some success on our shard, but have found that sometimes when you just move the quiver, it drops arrows. We find this odd, as the script clearly delineates a double click method for making the arrows drop.
Code:
using System;
using Server.Items;

namespace Server.Items
{
	public class QuiverOfInfinity : BaseCloak
	{
		
		[Constructable]
		public QuiverOfInfinity() : base( 11011 )
		{
                         	 Layer = Layer.MiddleTorso;
		Weight = 0;
                          	Name = "Quiver Of Infinity";
                          	Attributes.BonusDex = 10;
			 
		 LootType = LootType.Blessed; 
		}

		public QuiverOfInfinity( Serial serial ) : base( serial )
		{
		}
		
		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );
			writer.Write( (int) 0 );
		}
		
		public override void Deserialize(GenericReader reader)
		{
			base.Deserialize( reader );
			int version = reader.ReadInt();

			if ( Weight == 1.0 )
				Weight = 2.0;
		}
		
		public override void OnDoubleClick( Mobile from )
		{
			from.Backpack.DropItem( new Arrow(100) );
		}
	
	}
}
Could someone explain this behavior to me?

Thanks,
-GhostRiderGrey
__________________
A big THANK YOU!! to all who have helped me. I appreciate it very much.
Visit the Whispering Pines shard website at wp.dyndns.org
GhostRiderGrey is offline   Reply With Quote
Old 06-10-2008, 03:52 AM   #5 (permalink)
Newbie
 
Ele7Ven's Avatar
 
Join Date: Jun 2008
Age: 18
Posts: 46
Default

cool, everyone on my shard loves it so far =]
__________________
Helping is my specialty, I do it whenever I can. =]
Entistic Uo = Coming Orly? YA RLY!
Ele7Ven is offline   Reply With Quote
Reply

Bookmarks


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