protected override void OnTarget(Mobile from, object o) { if (o is LockableContainer) { m_Owner.Target((LockableContainer)o); } }
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); } }
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! } }
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' }