public Target ( |
||
rune | ||
Результат | void |
protected override void OnTarget(Mobile from, object o) { if (o is RecallRune) { m_Owner.Target((RecallRune)o); } else { from.Send(new MessageLocalized(from.Serial, from.Body, MessageType.Regular, 0x3B2, 3, 501797, from.Name, "")); // I cannot mark that object. } }
protected override void OnTarget(Mobile from, object o) { if (o is RecallRune) { m_Owner.Target((RecallRune)o); } else { from.LocalOverheadMessage(MessageType.Regular, 906, 501797); // I cannot mark that object. } }
protected override void OnTarget(Mobile from, object o) { if (o is RecallRune) { m_Owner.Target((RecallRune)o); } else { from.Send(new AsciiMessage(from.Serial, from.Body, MessageType.Regular, 0x3B2, 3, "", "I cannot mark that object.")); // I cannot mark that object. } }
protected override void OnTarget(Mobile from, object o) { RecallRune rune = o as RecallRune; if (rune != null && !rune.IsLockedDown) { m_Owner.Target(rune); } else { from.Send(new MessageLocalized(from.Serial, from.Body, MessageType.Regular, 0x3B2, 3, 501797, from.Name, "")); // I cannot mark that object. } }
protected override void OnTarget(Mobile from, object o) { var entity = o as IEntity; if (XmlScript.HasTrigger(entity, TriggerName.onTargeted) && UberScriptTriggers.Trigger(entity, from, TriggerName.onTargeted, null, null, m_Owner)) { return; } if (o is RecallRune) { m_Owner.Target((RecallRune)o); } else { from.Send(new MessageLocalized(from.Serial, from.Body, MessageType.Regular, 0x3B2, 3, 501797, from.Name, "")); // I cannot mark that object. } }