Overwrite
Complete Overwrite of the Folder with the free shard. ServUO 57.3 has been added.
This commit is contained in:
57
Scripts/Scripts-master/Items/Clothing/Robes/HoodedRobe.cs
Normal file
57
Scripts/Scripts-master/Items/Clothing/Robes/HoodedRobe.cs
Normal file
@@ -0,0 +1,57 @@
|
||||
|
||||
//////////////////////////
|
||||
//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." );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user