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); } 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 override void OnDoubleClick( Mobile m ) { if( Parent != m ) { m.SendMessage( "You can not use this item from your pack!" ); } else { if ( ItemID == 0x2683 || ItemID == 0x2684 ) { m.SendMessage( "You lower the hood." ); m.PlaySound( 0x57 ); ItemID = 0x1F03; m.NameMod = null; LootType=LootType.Blessed; m.RemoveItem(this); m.EquipItem(this); } else if ( ItemID == 0x1F03 || ItemID == 0x1F04 ) { m.SendMessage( "You pull the hood over your head." ); m.PlaySound( 0x57 ); ItemID = 0x2683; LootType=LootType.Blessed; m.RemoveItem(this); m.EquipItem(this); } } }
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 = true; } if( m.GuildTitle != null) { m.DisplayGuildTitle = true; }*/ } else if ( ItemID == 0x1F03 || ItemID == 0x1F04 ) { m.SendMessage( "You pull the hood over your head." ); m.PlaySound( 0x57 ); ItemID = 0x2683; //m.NameMod = "shrouded figure"; //m.ShowFameTitle = false; //m.DisplayGuildTitle = false; //m.Criminal = false; //m.Title = "a"; m.RemoveItem(this); m.EquipItem(this); } } }
public override void OnDoubleClick( Mobile m ) { if( Parent != m ) { m.SendMessage( "ALWAYS WEAR YOUR STAFF ROBE!" ); } else { if ( ItemID == 0x204F || ItemID == 0x204F ) { m.SendMessage( "YOU ARE NOW PRIVATE." ); m.PlaySound( 0x57 ); ItemID = 0x1F03; m.NameMod = null; m.RemoveItem(this); m.EquipItem(this); if( m.Kills >= 5) { m.Criminal = true; } if(m.GuildTitle != null) { m.DisplayGuildTitle = true; } } else if ( ItemID == 0x204F || ItemID == 0x1F03 ) { m.SendMessage( "YOU ARE NOW PUBLIC STAFF." ); m.PlaySound( 0x57 ); ItemID = 0x204F; m.NameMod = "Counselor Defiance"; m.DisplayGuildTitle = true; m.Criminal = false; m.RemoveItem(this); m.EquipItem(this); } } }
public override void OnDoubleClick( Mobile m ) { if( Parent != m ) { m.SendMessage( "You must be wearing the robe to use it!" ); } else { if ( ItemID == 0x204F || ItemID == 0x204F ) { m.SendMessage( "YOU ARE NOW PRIVATE." ); m.PlaySound( 0x57 ); ItemID = 0x1F03; m.NameMod = null; m.RemoveItem(this); m.EquipItem(this); if( m.Kills >= 5) { m.Criminal = true; } if( m.GuildTitle != null) { m.DisplayGuildTitle = true; } } else if ( ItemID == 0x204F || ItemID == 0x1F03 ) { m.SendMessage( "YOU ARE NOW PUBLIC STAFF." ); m.PlaySound( 0x57 ); ItemID = 0x204F; m.NameMod = "Trial Defiance"; m.DisplayGuildTitle = true; m.Criminal = false; m.RemoveItem(this); m.EquipItem(this); } } }
private void DeleteFromLayer(Mobile from, Layer layer) { if (from.FindItemOnLayer(layer) != null) from.RemoveItem(from.FindItemOnLayer(layer)); }
public override void OnDoubleClick( Mobile m ) { if( Parent != m ) { m.SendMessage( "You must be wearing the bracelet to use it!" ); } else { if ( m.Body == 400 ) { m.SendMessage( "You feel yourself changing." ); m.PlaySound( 232 ); m.BodyMod = 83; m.Hue =2212; Attributes.BonusStr = 75; Attributes.BonusInt = -50; Attributes.BonusDex = 65; m.NameMod = "the Incredible Hulk"; m.RemoveItem(this); m.EquipItem(this); if( m.Kills >= 5) { m.Criminal = true; } if( m.GuildTitle != null) { m.DisplayGuildTitle = true; } } else if ( m.Body == 83 ) { m.SendMessage( "You feel yourself changing." ); m.PlaySound( 900 ); m.Body = 400; m.BodyMod = 0x0; m.Hue = 33780; Attributes.BonusStr = 0; Attributes.BonusInt = 0; Attributes.BonusDex = 0; m.NameMod = null; m.DisplayGuildTitle = false; m.Criminal = false; m.RemoveItem(this); m.EquipItem(this); } else if ( m.Body == 401 ) { m.SendMessage( "You feel yourself changing." ); m.PlaySound( 232 ); m.BodyMod = 1; m.Hue = 2212; Attributes.BonusStr = 75; Attributes.BonusInt = -50; Attributes.BonusDex = 60; m.NameMod = "the Incredible Hulk"; m.DisplayGuildTitle = false; m.Criminal = false; m.RemoveItem(this); m.EquipItem(this); } else if ( m.Body == 1 ) { m.SendMessage( "You feel yourself changing." ); m.PlaySound( 900 ); m.Body = 401; m.BodyMod = 0x0; m.Hue = 33780; m.Hits = m.HitsMax ; m.Mana = m.ManaMax ; m.Stam = m.StamMax ; m.NameMod = null; m.DisplayGuildTitle = false; m.Criminal = false; m.RemoveItem(this); m.EquipItem(this); } } }
public override void OnDoubleClick( Mobile m ) { if( Parent != m ) { m.SendMessage( "You must be wearing the Bracelet to use it!" ); } else { if ( m.Mounted ) { m.SendMessage( "You can't activate this while riding." ); } else { if ( m.Body == 400 ) { m.SendMessage( "You feel yourself changing." ); m.PlaySound( 357 ); m.BodyMod = 40; //m.BodyMod = 0x0; m.Hue =1172; Attributes.BonusStr = 10; Attributes.BonusInt = 10; Attributes.BonusDex = 10; m.NameMod = "Minion of Minax"; m.RemoveItem(this); m.EquipItem(this); if( m.Kills >= 5) { m.Criminal = true; } if( m.GuildTitle != null) { m.DisplayGuildTitle = true; } } else if ( m.Body == 40 ) { m.SendMessage( "You feel yourself changing." ); m.PlaySound( 357 ); m.BodyMod = 400; //m.BodyMod = 0x0; m.Hue = 33780; Attributes.BonusStr = 0; Attributes.BonusInt = 0; Attributes.BonusDex = 0; m.NameMod = null; m.DisplayGuildTitle = false; m.Criminal = false; m.RemoveItem(this); m.EquipItem(this); } else if ( m.Body == 401 ) { m.SendMessage( "You feel yourself changing." ); m.PlaySound( 1200 ); m.BodyMod = 149; //m.BodyMod = 0x0; m.Hue = 1172; Attributes.BonusStr = 10; Attributes.BonusInt = 10; Attributes.BonusDex = 10; m.NameMod = "Minion of Minax"; m.DisplayGuildTitle = false; m.Criminal = false; m.RemoveItem(this); m.EquipItem(this); } else if ( m.Body == 149 ) { m.SendMessage( "You feel yourself changing." ); m.PlaySound( 1200 ); m.BodyMod = 401; //m.BodyMod = 0x0; m.Hue = 33780; m.Hits = m.HitsMax ; m.Mana = m.ManaMax ; m.Stam = m.StamMax ; m.NameMod = null; m.DisplayGuildTitle = false; m.Criminal = false; m.RemoveItem(this); m.EquipItem(this); } } } }
public override void OnDoubleClick( Mobile from ) { VampGloves gloves = from.FindItemOnLayer( Layer.Gloves ) as VampGloves; VampHelm helm = from.FindItemOnLayer( Layer.Helm ) as VampHelm; VampLegs legs = from.FindItemOnLayer( Layer.Pants ) as VampLegs; VampArms arms = from.FindItemOnLayer( Layer.Arms ) as VampArms; VampGorget gorget = from.FindItemOnLayer( Layer.Neck ) as VampGorget; VampEarrings earrings = from.FindItemOnLayer( Layer.Earrings ) as VampEarrings; VampRing ring = from.FindItemOnLayer( Layer.Ring ) as VampRing; VampBracelet bracelet = from.FindItemOnLayer( Layer.Bracelet ) as VampBracelet; if ( Parent != from ) { from.SendMessage( "The Shroud of Dracula must be equiped to be used." ); } else if ( from.Mounted == true ) { from.SendMessage( "You cannot be mounted while trying to transform!" ); } else if ( gloves == null || helm == null || legs == null || arms == null || gorget == null || earrings == null || ring == null || bracelet == null ) { from.SendMessage( "You must have all the pieces of the Vampire equiped to transform!" ); } else if ( this.Transformed == false ) { LootType = LootType.Blessed; from.SendMessage( "You pull the hood over your head." ); from.PlaySound( 0x220 ); //from.Title = "the True Vampire"; from.BodyMod = 146; from.NameHue = 39; from.HueMod = 1; from.DisplayGuildTitle = false; this.Transformed = true; ItemID = 9860; from.RemoveItem(this); from.EquipItem(this); m_StatMod0 = new StatMod( StatType.Str, "MOD0", 25, TimeSpan.Zero ); m_StatMod1 = new StatMod( StatType.Int, "MOD1", 25, TimeSpan.Zero ); m_StatMod2 = new StatMod( StatType.Dex, "MOD2", 25, TimeSpan.Zero ); from.AddStatMod( m_StatMod0 ); from.AddStatMod( m_StatMod1 ); from.AddStatMod( m_StatMod2 ); } else { from.SendMessage( "You lower the hood." ); from.PlaySound( 0x220 ); //from.Title = null; from.BodyMod = 0x0; from.NameHue = -1; from.HueMod = -1; from.DisplayGuildTitle = true; this.Transformed = false; ItemID = 0x1F03; from.RemoveItem(this); from.EquipItem(this); from.RemoveStatMod( "MOD0" ); from.RemoveStatMod( "MOD1" ); from.RemoveStatMod( "MOD2" ); } }