Files
Unstable Kitsune b918192e4e Overwrite
Complete Overwrite of the Folder with the free shard. ServUO 57.3 has been added.
2023-11-28 23:20:26 -05:00

57 lines
1.1 KiB
C#

//////////////////////////
//Created by Keglanek//
////////////////////////
using System;
using Server.Items;
using Server.Mobiles;
namespace Server.Items
{
public class HoodedRobe : Robe
{
[Constructable]
public HoodedRobe()
{
ItemID = 9860;
Weight = 10.0;
Name = "Psyren's Hooded Robe";
Hue = 1153;
LootType = LootType.Blessed;
}
public HoodedRobe(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();
}
public override void OnDoubleClick( Mobile from )
{
Item y = from.Backpack.FindItemByType(typeof(HoodedRobe));
if ( y !=null )
{
if (this.ItemID == 9860) this.ItemID = 7939;
else if (this.ItemID == 7939) this.ItemID = 9860;
}
else
{
from.SendMessage( "You must have the item in your pack to take down the hood it." );
}
}
}
}