Ejemplo n.º 1
0
 public override void OnDoubleClick(Mobile from)
 {
     if (!IsChildOf(from.Backpack))
     {
         from.SendLocalizedMessage(1042001);                   // That must be in your pack for you to use it.
     }
     else if (from.AccessLevel < AccessLevel.GameMaster && (from.Map == Map.Ilshenar || from.Map == Map.Malas))
     {
         from.SendLocalizedMessage(1010567, null, 0x25);                   // You may not place a boat from this location.
     }
     else if (IsGalleon() && BaseGalleon.HasGalleon(from) && from.AccessLevel == AccessLevel.Player)
     {
         from.SendLocalizedMessage(1116758); //You already have a ship deployed!
     }
     else if (!from.HasGump(typeof(BoatPlacementGump)))
     {
         if (Core.SE)
         {
             from.SendLocalizedMessage(502482); // Where do you wish to place the ship?
         }
         else
         {
             from.LocalOverheadMessage(MessageType.Regular, 0x3B2, 502482); // Where do you wish to place the ship?
         }
         from.SendGump(new BoatPlacementGump(this, from));
         //from.Target = new InternalTarget( this );
     }
 }
Ejemplo n.º 2
0
 public override void OnDoubleClick(Mobile from)
 {
     if (!IsChildOf(from.Backpack))
     {
         from.SendLocalizedMessage(1042001);                   // That must be in your pack for you to use it.
     }
     else if (IsGalleon() && BaseGalleon.HasGalleon(from) && from.AccessLevel == AccessLevel.Player)
     {
         from.SendLocalizedMessage(1116758); //You already have a ship deployed!
     }
     else if (!from.HasGump(typeof(BoatPlacementGump)))
     {
         from.SendLocalizedMessage(502482);                   // Where do you wish to place the ship?
         from.SendGump(new BoatPlacementGump(this, from));
     }
 }