protected override void OnTarget(Mobile from, object targ) { if (targ is BaseAnimal) { BaseAnimal ba = (BaseAnimal)targ; if ((ba.ControlMaster == from && ba.Owner == null) || ba.Owner == from) { ba.Owner = t_bi.ranchstone.Owner; ba.Brand = t_bi.ranchstone.Ranch; from.PlaySound(0x3B5); ba.PlaySound(ba.GetHurtSound()); from.SendMessage("Animal branded!"); ba.InvalidateProperties(); t_bi.Hot = Utility.RandomBool(); //false; if (!t_bi.Hot) { from.SendMessage("The branding iron cools."); } } else { from.SendMessage("You don't own that animal."); } } else { from.SendMessage("You can't brand that."); } }
public override void OnDoubleClick(Mobile from) { if (from.InRange(GetWorldLocation(), 2)) { if (m_Owner != null) { BaseAnimal ba = (BaseAnimal)m_Owner; ba.PlaySound(ba.GetAngerSound()); ba.Awake(); } else { from.SendMessage("That animal won't wake up...oops!!"); Delete(); } } else { from.SendMessage("You can't reach that!"); } }