コード例 #1
0
 protected override void OnTarget(Mobile from, object o)
 {
     if (o is LockableContainer)
     {
         m_Owner.Target((LockableContainer)o);
     }
 }
コード例 #2
0
            protected override void OnTarget(Mobile from, object o)
            {
                if (o is LockableContainer)
                {
                    m_Owner.Target((LockableContainer)o);
                }
                else
                {
                    Point3D loc = new Point3D();

                    if (o is Item)
                    {
                        loc = ((Item)o).GetWorldLocation();
                    }

                    if (o is Mobile)
                    {
                        loc = ((Mobile)o).Location;
                    }

                    Effects.SendLocationParticles(EffectItem.Create(loc, from.Map, EffectItem.DefaultDuration), 0x376A, 9, 32, 5024);

                    Effects.PlaySound(loc, from.Map, 0x1FF);

                    // That did not need to be unlocked.
                    from.LocalOverheadMessage(MessageType.Regular, 0x3B2, 503101);
                }
            }
コード例 #3
0
 protected override void OnTarget(Mobile from, object o)
 {
     if (o is LockableContainer)
     {
         m_Owner.Target((LockableContainer)o);
     }
     else
     {
         from.SendLocalizedMessage(501666); // You can't unlock that!
     }
 }
コード例 #4
0
ファイル: Unlock.cs プロジェクト: proxeeus/UORebirth
 protected override void OnTarget(Mobile from, object o)
 {
     if (o is LockableContainer)
     {
         m_Owner.Target((LockableContainer)o);
     }
     else
     {
         from.SendLocalizedMessage(501666);                       // You can't unlock that!
     }
     // TODO: Really we can cast on anything, even mobiles, but it will effect and say 'That did not need to be unlocked'
 }