Example #1
0
        public GalleonPlacementGump(Mobile from, BaseGalleonDeed deed, BaseDockedGalleon dockedGalleon)
            : base(150, 200)
        {
            _from          = from;
            _deed          = deed;
            _dockedGalleon = dockedGalleon;

            AddPage(0);

            AddBackground(0, 0, 270, 200, 5054);

            AddImageTiled(14, 14, 4, 4, 0x2486);
            AddImageTiled(18, 14, 240, 4, 0x2487);
            AddImageTiled(256, 14, 4, 4, 0x2488);
            AddImageTiled(14, 18, 4, 170, 0x2489);
            AddImageTiled(18, 18, 240, 170, 0x248A);
            AddImageTiled(256, 18, 4, 170, 0x248B);
            AddImageTiled(14, 184, 4, 4, 0x248C);
            AddImageTiled(18, 184, 240, 4, 0x248D);
            AddImageTiled(256, 184, 4, 4, 0x248E);

            AddLabel(40, 40, 0x480, "Select the ship direction");
            AddLabel(40, 60, 0x480, "for placement.");

            AddButton(20, 120, 0xFA5, 0xFA6, 1, GumpButtonType.Reply, 0);
            AddLabel(60, 120, 0x480, "WEST");
            AddButton(120, 120, 0xFA5, 0xFA6, 2, GumpButtonType.Reply, 0);
            AddLabel(160, 120, 0x480, "NORTH");
            AddButton(20, 160, 0xFA5, 0xFA6, 3, GumpButtonType.Reply, 0);
            AddLabel(60, 160, 0x480, "SOUTH");
            AddButton(120, 160, 0xFA5, 0xFA6, 4, GumpButtonType.Reply, 0);
            AddLabel(160, 160, 0x480, "EAST");
        }
Example #2
0
        public void EndDryDock(Mobile from)
        {
            if (Deleted || CheckDecay())
            {
                return;
            }

            DryDockResult result = CheckDryDock(from);

            if (result == DryDockResult.Dead)
            {
                from.SendLocalizedMessage(502493); // You appear to be dead.
            }
            else if (result == DryDockResult.NoKey)
            {
                from.SendLocalizedMessage(502494); // You must have a key to the ship to dock the boat.
            }
            else if (result == DryDockResult.NotAnchored)
            {
                from.SendLocalizedMessage(1010570); // You must lower the anchor to dock the boat.
            }
            else if (result == DryDockResult.Mobiles)
            {
                from.SendLocalizedMessage(502495); // You cannot dock the ship with beings on board!
            }
            else if (result == DryDockResult.Items)
            {
                from.SendLocalizedMessage(502496); // You cannot dock the ship with a cluttered deck.
            }
            else if (result == DryDockResult.Hold)
            {
                from.SendLocalizedMessage(502497); // Make sure your hold is empty, and try again!
            }
            if (result != DryDockResult.Valid)
            {
                return;
            }

            BaseDockedGalleon boat = DockedGalleon;

            if (boat == null)
            {
                return;
            }

            RemoveKeys(from);

            from.AddToBackpack(boat);

            if (TillerMan != null)
            {
                TillerMan.Delete();
            }

            Delete();
        }
Example #3
0
 public InternalTarget(BaseDockedGalleon model) : base(model.MultiID, model.Offset)
 {
     _model = model;
 }
			public InternalTarget( BaseDockedGalleon model ) : base( model.MultiID, model.Offset )
			{
				m_Model = model;
			}