Target() public method

public Target ( RecallRune rune ) : void
rune Server.Items.RecallRune
return void
Exemplo n.º 1
0
 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.
     }
 }
Exemplo n.º 2
0
 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.
     }
 }
Exemplo n.º 3
0
 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.
     }
 }
Exemplo n.º 4
0
            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.
                }
            }
Exemplo n.º 5
0
            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.
                }
            }