protected void OnTarget(Mobile from, object targeted) { if (from.Backpack == null || !IsChildOf(from.Backpack)) { from.SendLocalizedMessage(1080063); // This must be in your backpack to use it. return; } if (targeted is MagicVines) { MagicVines vines = targeted as MagicVines; if (from.InRange(vines, 1)) { vines.OnAcidSac(from); Consume(); } else { from.SendLocalizedMessage(1076766); // That is too far away. } } else { from.SendLocalizedMessage(1046439); // That is not a valid target. } }
public VinesLockedSecretDoor(int closedId, int mediumId) : base(closedId, mediumId) { Movable = false; m_Vines = new MagicVines(this); }
public override void Deserialize(GenericReader reader) { base.Deserialize(reader); /*int version =*/ reader.ReadInt(); m_Vines = reader.ReadItem() as MagicVines; }
public override void Deserialize( GenericReader reader ) { base.Deserialize( reader ); /*int version =*/ reader.ReadInt(); m_Vines = reader.ReadItem() as MagicVines; }
public VinesLockedSecretDoor( int closedId, int mediumId ) : base(closedId, mediumId) { Movable = false; m_Vines = new MagicVines( this ); }