UO-Dev Arama


Yazar: Bilinmiyor
Tarih: 18-08-2009 13:11


Paylaş : Paylaş

Kod:
using System;
using Server;
using Server.Items;

namespace Server.Items
{
public class AngelRobe : Item
{
public int m_Body;

[Constructable]
public AngelRobe() : base( 0x2684 )
{
Weight = 5.0;
Name = "Robe Of The Angels";
Layer = Layer.OuterTorso;
Hue = 1150;
}

public override void OnDoubleClick( Mobile m )
{
if( Parent != m )
{
m.SendMessage( "You must be wearing the Shroud to use it!" );
}
else
{
if ( m.Body == 400 )
{
m.SendMessage( "You feel your bones change." );
m.Body = 755;
m.RemoveItem(this);
m.EquipItem(this);
if( m.Kills >= 5)
{
m.Criminal = true;
}
if( m.GuildTitle != null)
{
m.DisplayGuildTitle = true;
}
}
else if ( m.Body == 755 )
{
m.SendMessage( "You feel your bones change." );
m.Body = 400;
m.NameMod = null;
m.DisplayGuildTitle = false;
m.Criminal = false;
m.RemoveItem(this);
m.EquipItem(this);
}
else if ( m.Body == 401 )
{
m.SendMessage( "You feel your bones change." );
m.Body = 755;
m.DisplayGuildTitle = false;
m.Criminal = false;
m.RemoveItem(this);
m.EquipItem(this);
}
else if ( m.Body == 755 )
{
m.SendMessage( "You feel your bones change." );
m.Body = 401;
m.NameMod = null;
m.DisplayGuildTitle = false;
m.Criminal = false;
m.RemoveItem(this);
m.EquipItem(this);
}

}
}


public override void OnRemoved( Object o )
{
if( o is Mobile )
{
((Mobile)o).NameMod = null;
}
if( o is Mobile && ((Mobile)o).Kills >= 5)
{
((Mobile)o).Criminal = true;
}
if( o is Mobile && ((Mobile)o).GuildTitle != null )
{
((Mobile)o).DisplayGuildTitle = true;
}
base.OnRemoved( o );
}

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

}
}



Yorumlar

Henüz yorum yapılmamıştır.

Oylamalar

Oylama :
Üyelerin oylama ortalaması (10 dışında) : Henüz Oylanmamış   
Oylar: 0

Benzer Sayfalar

SayfalarYorumlarGönderenTarih
Staff Robe0Roes13-10-2011
Renk Değiştiren Robe0Lucky27-02-2010
Gm Hiding Fire Robe0ubeyid23-08-2009
Robe of Energy0Amesron18-08-2009
Arcane Robe0Amesron05-08-2009


Keywords:

ultima online, RunUO, ultima online download, sphere scripting, role play, uo grafik, second age ultima, uo loop, macroman, pvp server, server kurulumu, sphere, multool, ml mulls, 56b 55r 55i, htmlgumps, client 4x, client edit, sphere release, osi, rp server, sunucular, ghost mouse, inside uo, kingdom reborn, stygian abyss, uo nasıl oynanır, mondain's legacy, age of shadows, world build, grandmaster, ultima online pvp, player dosyaları, ultima online indir, frp game, RunUO 1.0.0, razor, uo rice, hue editör, skill tools, ultima online patch, axis, world build, verdata, verdata patcher, map editör, gump editör, mul patcher, aos mulls, scriptler, anim edit, anim publish, hues mul, hosting vps, event dialog, account sistemi, skill gain, static yapımı,