|
||
|
|||||||
| 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 Newbie
Join Date: Sep 2006
Age: 21
Posts: 24
|
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
![]() |
|
|
|
|
|
#4 (permalink) |
|
Forum Novice
Join Date: Nov 2007
Posts: 154
|
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) );
}
}
}
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 |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|