RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

[EXAMPLE] Magic Properties in a weapon

Ryan

RunUO Founder
Staff member
[EXAMPLE] Magic Properties in a weapon

[code:1]
using System;
using Server.Network;
using Server.Items;

namespace Server.Scripts.Items.Weapons.Swords
{
public class VanqVikingSword : BaseSword
{
[Constructable]
public VanqVikingSword() : base( 6, 34, 30, 0x237, 0x23A, 1, SkillName.Swords, WeaponType.Slashing, WeaponAnimation.Slash1H, 0x13B9, Layer.OneHanded )
{
Weight = 6.0;
this.DamageLevel = WeaponDamageLevel.Vanq; // make the weapon Vanq
}

public VanqVikingSword( Serial serial ) : base( serial )
{
}

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

writer.Write( (int) 0 ); // version
}

public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );

int version = reader.ReadInt();
}
}
}
[/code:1]
 
Top