How do you change an items Custom ID in scripts? like heres my script, but I want it to be a spellbook with customizable options such as Manaregain and stuff. The item ID will put it into a spellbook, and the original might be a dagger or something. Plz help!
Code:
using System;
using Server;
namespace Server.Items
{
public class SpellbookOfKnowledge : Dagger
{
public override WeaponAbility PrimaryAbility{ get{ return WeaponAbility.Disarm; } }
public override WeaponAbility SecondaryAbility{ get{ return WeaponAbility.Paralyze; } }
[Constructable]
public SpellbookOfKnowledge()
{
Hue = 1157;
Name = "Spellbook Of Knowledge";
Attributes.LowerManaCost = 15;
Attributes.SpellChanneling = 1;
Attributes.BonusInt = 5;
Attributes.RegenMana = 5;
Attributes.SpellDamage = 5;
Attributes.CastSpeed = 1;
}
public SpellbookOfKnowledge( 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();
}
}
}