Anasayfa
UO Sunucular
Forumlar
Profilim
UO-Developer.COM
/////////////////////////////
////// LostSinner /////////
/////////////////////////////

using System;
using Server;

namespace Server.Items
{
public class InsanityShourd : HoodedShroudOfShadows, IDyable
{


[Constructable]
public InsanityShourd() : base( 0x2684 )
{

Weight = 8.0;
Name = "Turkey PvP Reward Robe";
Hue = 1153;

Attributes.AttackChance = 15;
Attributes.LowerRegCost = 100;
Attributes.DefendChance = 15;
Attributes.CastSpeed = 2;
Attributes.CastRecovery = 4;
Attributes.RegenMana = 5;
Attributes.RegenStam = 5;
Attributes.RegenHits = 5;
Attributes.NightSight = 1;
Resistances.Poison = 15;
Resistances.Energy = 15;
Resistances.Cold = 15;
Resistances.Fire = 15;
Resistances.Physical = 15;
}

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

public override void OnDoubleClick( Mobile m )
{
if( Parent != m )
{
m.SendMessage( "You must be wearing the robe to use it!" );
}
else
{
if ( ItemID == 0x2683 || ItemID == 0x2684 )
{
m.SendMessage( "You lower the hood." );
m.PlaySound( 0x57 );
ItemID = 0x1F03;
m.NameMod = null;
m.RemoveItem(this);
m.EquipItem(this);
/*if( m.Kills >= 5)
{
m.Criminal = false;
}
if( m.GuildTitle != null)
{
m.DisplayGuildTitle = false;
}*/
}
else if ( ItemID == 0x1F03 || ItemID == 0x1F04 )
{
m.SendMessage( "You pull the hood over your head." );
m.PlaySound( 0x57 );
ItemID = 0x2683;
m.RemoveItem(this);
m.EquipItem(this);

}

}
}
public virtual bool Dye( Mobile from, DyeTub sender )
{
if ( Deleted )
return false;
else if ( RootParent is Mobile && from != RootParent )
return false;

Hue = sender.DyedHue;

return true;
}

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();
}
}
}

UO-Dev SPONSOR

Paylaş

XFacebook

Faydalı mı?

Bu içerik size yardımcı oldu mu?

UO-Dev SPONSOR

Henüz yorum yapılmamış. Yorum yazabilmek için giriş yapmanız gerekir.

Üyelerin oylama ortalaması (10 dışında) :

Henüz Oylanmamış

Oylar: 0

Paylaş

XFacebook

Faydalı mı?

Bu içerik size yardımcı oldu mu?