Go Back   RunUO - Ultima Online Emulation > RunUO > RunUO Post Archive

RunUO Post Archive The Archvie

Reply
 
Thread Tools Display Modes
Old 07-19-2004, 08:48 PM   #1 (permalink)
Forum Novice
 
Join Date: Mar 2004
Posts: 232
Default OSI's New Dryad Bow :)

Here it Is OSI's Dryad Bow
Only thing it is missing is the +5 chivalry and thats because the script kept giving me errors with it added. Hope ya enjoy Folks


Installation
Add to Customs folder and type [add dryadbow

Attached Files
File Type: cs DryadBow.cs (1.2 KB, 175 views)
milkman_dan is offline   Reply With Quote
Old 07-19-2004, 09:17 PM   #2 (permalink)
Forum Expert
 
Join Date: Aug 2003
Posts: 737
Send a message via ICQ to georox Send a message via AIM to georox
Default

actualy the osi one gives a random skill bonus
__________________
georox is offline   Reply With Quote
Old 07-19-2004, 09:33 PM   #3 (permalink)
Account Terminated
 
Join Date: Apr 2004
Location: Titusville PA
Age: 26
Posts: 975
Default hmmm

someone posted a dryad bow and you need to have the skill bonus script to use it cuz the bow gives random skill bonuses you should look into it more and find out about the bonuses.
evil lord kirby is offline   Reply With Quote
Old 07-19-2004, 11:53 PM   #4 (permalink)
 
Join Date: Sep 2002
Posts: 145
Default

Code:
using System;
using Server;

namespace Server.Items
{
	public class DryadBow : Bow  
	{
		public override int LabelNumber{ get{ return 1061090; } } // Dryad Bow
		public override int ArtifactRarity{ get{ return 11; } } 

		public override int InitMinHits{ get{ return 255; } } 
		public override int InitMaxHits{ get{ return 255; } }
		
		private AosSkillBonuses m_AosSkillBonuses;
		[CommandProperty( AccessLevel.GameMaster )]
		public AosSkillBonuses SkillBonuses
		{
			get{ return m_AosSkillBonuses; }
			set{}
		}
		
		[Constructable]
		public DryadBow() 
		{
			Weight = 1.0; 
            Hue = 0x559;    
			WeaponAttributes.ResistPoisonBonus = 15;
			WeaponAttributes.SelfRepair = 5;
			Attributes.WeaponDamage = 35;
			Attributes.WeaponSpeed = 50;
			m_AosSkillBonuses = new AosSkillBonuses( this );
			m_AosSkillBonuses.SetValues( 0, m_PossibleBonusSkills[Utility.Random( m_PossibleBonusSkills.Length )], (double)Utility.RandomMinMax( 1, 10 ) );

			Consecrated = true; // is this right?
			StrRequirement = 30;

		}

		private SkillName[] m_PossibleBonusSkills = new SkillName[]
		{
			SkillName.Swords,
			SkillName.Fencing,
			SkillName.Macing,
			SkillName.Archery,
			SkillName.Wrestling,
			SkillName.Parry,
			SkillName.Tactics,
			SkillName.Anatomy,
			SkillName.Healing,
			SkillName.Magery,
			SkillName.Meditation,
			SkillName.EvalInt,
			SkillName.MagicResist,
			SkillName.AnimalTaming,
			SkillName.AnimalLore,
			SkillName.Veterinary,
			SkillName.Musicianship,
			SkillName.Provocation,
			SkillName.Discordance,
			SkillName.Peacemaking,
			SkillName.Chivalry,
			SkillName.Focus,
			SkillName.Necromancy,
			SkillName.Stealing,
			SkillName.Stealth,
			SkillName.SpiritSpeak 
		};
		
		public DryadBow( Serial serial ) : base( serial ) 
		{
		}

		public override void GetProperties( ObjectPropertyList list )
		{
			base.GetProperties( list );
			m_AosSkillBonuses.GetProperties( list );
		}

		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );

			writer.Write( (int) 0 );
			m_AosSkillBonuses.Serialize( writer );
		}
		
		public override void Deserialize(GenericReader reader)
		{
			base.Deserialize( reader );

			int version = reader.ReadInt();
			m_AosSkillBonuses = new AosSkillBonuses( this, reader );

			if ( Core.AOS && Parent is Mobile )
				m_AosSkillBonuses.AddTo( (Mobile)Parent );
		}
	}
}
This work perfect for me.
qdjx is offline   Reply With Quote
Old 07-20-2004, 03:54 AM   #5 (permalink)
 
hudel's Avatar
 
Join Date: Oct 2003
Location: Germany
Age: 38
Posts: 508
Send a message via ICQ to hudel
Default

Nice script. Thanks for sharing it.
hudel is offline   Reply With Quote
Old 07-20-2004, 04:21 PM   #6 (permalink)
Forum Expert
 
Join Date: Oct 2002
Age: 26
Posts: 1,797
Default

I did submit this a while ago, but the only response I got was a "bad karma" thingy, so I deleted it.
__________________
New shard coming soon!
Voran is offline   Reply With Quote
Old 07-22-2004, 06:55 PM   #7 (permalink)
 
Join Date: Jul 2004
Location: Denmark
Age: 19
Posts: 90
Send a message via MSN to Broze The Newb
Default

Yeah nice scripts.. thanks
Broze The Newb 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