Target() публичный Метод

public Target ( TrapableContainer item ) : void
item Server.Items.TrapableContainer
Результат void
Пример #1
0
 protected override void OnTarget(Mobile from, object o)
 {
     if (o is TrapableContainer)
     {
         m_Owner.Target((TrapableContainer)o);
     }
     else
     {
         from.SendMessage("You can't trap that");
     }
 }
Пример #2
0
 protected override void OnTarget(Mobile from, object o)
 {
     if (o is TrapableContainer)
     {
         m_Owner.Target((TrapableContainer)o);
     }
     else
     {
         from.PrivateOverheadMessage(MessageType.Regular, 0x88, 501767, from.NetState);
     }
 }
Пример #3
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 TrapableContainer)
                {
                    m_Owner.Target((TrapableContainer)o);
                }
                else
                {
                    from.SendMessage("You can't trap that");
                }
            }