public MenuEntry(Mobile from, Item item)
				: base(159) // uses 3000159
			{
				m_Item = item as DragonKnightsGhostClock;
				m_Mobile = from;
			}
		public void Placement_OnTarget( Mobile from, object targeted, object state )
		{
			IPoint3D p = targeted as IPoint3D;
			Map map = from.Map;

			if ( p == null )
				return;

			Point3D loc = new Point3D( p );

			BaseHouse house = BaseHouse.FindHouseAt( loc, from.Map, 16 );

			if ( house != null && house.IsOwner( from ) )
			{
				DragonKnightsGhostClock dkgc = new DragonKnightsGhostClock( );
				dkgc.MoveToWorld( new Point3D( p ), map );
				house.AddSecure(from, (Item)dkgc);
				Delete();
				from.PlaySound(0x482);
				from.Say("In the neighbor hood.");
				Effects.SendLocationEffect( Location,Map, 0x3709, 13, 0x3B2, 0 );
				Effects.SendLocationEffect( from,Map, 0x3709, 13, 0x3B2, 0 );


			}
			else
			{
				from.SendLocalizedMessage( 1042036 ); // That location is not in your house.
			}
		}
예제 #3
0
 public MenuEntry(Mobile from, Item item)
     : base(159)                 // uses 3000159
 {
     m_Item   = item as DragonKnightsGhostClock;
     m_Mobile = from;
 }