Target() 공개 메소드

public Target ( RecallRune rune ) : void
rune Server.Items.RecallRune
리턴 void
예제 #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.
     }
 }
예제 #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.
     }
 }
예제 #3
0
파일: Mark.cs 프로젝트: phpjunkie420/RunUO
 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.
     }
 }
예제 #4
0
파일: Mark.cs 프로젝트: Pumpk1ns/outlands
            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.
                }
            }
예제 #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.
                }
            }