Page 1 of 1

The Wraith Doom Arty

Posted: Wed Jun 11, 2008 7:34 pm
by ninja2007

Code: Select all

using System;
using Server;

namespace Server.Items
{
	public class Thewraith : NoDachi
	{
		public override int ArtifactRarity{ get{ return 10; } }

		public override int InitMinHits{ get{ return 255; } }
		public override int InitMaxHits{ get{ return 255; } }

		[Constructable]
		public Thewraith()
		{
			ItemID = 0x27A2;
			Hue = 0x22;
			WeaponAttributes.HitFireball = 75;
			WeaponAttributes.ResistFireBonus = 20;
			Attributes.AttackChance = 15;
			Attributes.WeaponDamage = 50;
			Attributes.WeaponSpeed = 40;
		}

		public override void GetDamageTypes( Mobile wielder, out int phys, out int fire, out int cold, out int pois, out int nrgy )
		{
			pois = cold = nrgy = 0;
			phys = 25;
			fire = 75;
		}

		public Thewraith( 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 ( ItemID == 0x5119 )
				ItemID = 0x5118;
		}
	}
}
i cannot get it too display the right name

Archived topic from AOV, old topic ID:3068, old post ID:19592

The Wraith Doom Arty

Posted: Tue Sep 16, 2008 5:24 am
by Draco
public Thewraith()
{
ItemID = 0x27A2;
Name = "The Wraith";
Hue = 0x22;
WeaponAttributes.HitFireball = 75;
WeaponAttributes.ResistFireBonus = 20;
Attributes.AttackChance = 15;
Attributes.WeaponDamage = 50;
Attributes.WeaponSpeed = 40;
}

public override void GetDamageTypes( Mobile wielder, out int phys, out int fire, out int cold, out int pois, out int nrgy )
{
pois = cold = nrgy = 0;
phys = 25;
fire = 75;
}

Archived topic from AOV, old topic ID:3068, old post ID:23188