Пример #1
0
 public NewPlank(NewBaseBoat boat, Point3D initOffset, PlankSide side, uint keyValue)
     : base(boat, 0x3EB1 + (int)side, initOffset)
 {
     m_Side = side;
     m_KeyValue = keyValue;
     m_Locked = true;
 }
Пример #2
0
            public DecayTimer(NewBaseBoat boat)
                : base(TimeSpan.FromSeconds(1.0), TimeSpan.FromSeconds(5.0))
            {
                _boat = boat;

                Priority = TimerPriority.TwoFiftyMS;
            }
Пример #3
0
        public void OnPlacement(Mobile from, Point3D p)
        {
            if (Deleted)
            {
                return;
            }
            else if (!IsChildOf(from.Backpack))
            {
                from.SendLocalizedMessage(1042001);                 // That must be in your pack for you to use it.
            }
            else
            {
                Map map = from.Map;

                if (map == null)
                {
                    return;
                }

                NewBaseBoat boat = Boat;

                if (boat == null)
                {
                    return;
                }

                p = new Point3D(p.X - Offset.X, p.Y - Offset.Y, p.Z - Offset.Z);

                if (boat.CanFit(p, map, boat.ItemID) && map != Map.Ilshenar && map != Map.Malas)
                {
                    Delete();

                    boat.Owner    = from;
                    boat.Anchored = false;
                    boat.ShipName = ShipName;

                    uint keyValue = boat.CreateKeys(from);

                    if (boat.PPlank != null)
                    {
                        boat.PPlank.KeyValue = keyValue;
                    }
                    if (boat.SPlank != null)
                    {
                        boat.SPlank.KeyValue = keyValue;
                    }

                    boat.MoveToWorld(p, map);

                    boat.SetFacing(_chosenDirection);
                }
                else
                {
                    boat.Delete();
                    from.SendLocalizedMessage(1043284);                     // A ship can not be created here.
                }
            }
        }
Пример #4
0
 public BaseDockedNewBoat(int id, Point3D offset, NewBaseBoat boat) : base(0x14F4)
 {
     Weight           = 1.0;
     LootType         = LootType.Blessed;
     _multiID_North   = id;
     _multiID_South   = id + 2;
     _multiID_East    = id + 1;
     _multiID_West    = id + 3;
     _chosenDirection = Direction.North;
     MultiID          = id;
     Offset           = offset;
     ShipName         = boat.ShipName;
 }
        public NewBoatConfirmDryDockGump(Mobile from, NewBaseBoat boat)
            : base(150, 200)
        {
            _from = from;
            _boat = boat;

            _from.CloseGump(typeof(ConfirmDryDockGump));

            AddPage(0);

            AddBackground(0, 0, 220, 170, 5054);
            AddBackground(10, 10, 200, 150, 3000);

            AddHtmlLocalized(20, 20, 180, 80, 1018319, true, false);   // Do you wish to dry dock this boat?

            AddHtmlLocalized(55, 100, 140, 25, 1011011, false, false); // CONTINUE
            AddButton(20, 100, 4005, 4007, 2, GumpButtonType.Reply, 0);

            AddHtmlLocalized(55, 125, 140, 25, 1011012, false, false); // CANCEL
            AddButton(20, 125, 4005, 4007, 1, GumpButtonType.Reply, 0);
        }
Пример #6
0
 public NewHold(NewBaseBoat boat, Point3D initOffset)
     : base(boat, 0x3EAE, initOffset)
 {
 }
Пример #7
0
 public NewTillerMan(NewBaseBoat boat, Point3D initOffset)
     : base(boat, 0x3E4E, initOffset)
 {
 }
Пример #8
0
 public DockedNewSmallBoat(NewBaseBoat boat) : base(0x0, Point3D.Zero, boat)
 {
 }
Пример #9
0
 public DockedNewLargeDragonBoat(NewBaseBoat boat) : base(0x14, Point3D.Zero, boat)
 {
 }
Пример #10
0
 public DockedNewLargeBoat(NewBaseBoat boat) : base(0x10, Point3D.Zero, boat)
 {
 }
Пример #11
0
 public DockedNewMediumDragonBoat(NewBaseBoat boat) : base(0xC, Point3D.Zero, boat)
 {
 }
Пример #12
0
 public DockedNewMediumBoat(NewBaseBoat boat) : base(0x8, Point3D.Zero, boat)
 {
 }
Пример #13
0
 public DockedNewSmallDragonBoat(NewBaseBoat boat) : base(0x4, Point3D.Zero, boat)
 {
 }
Пример #14
0
 public CourseMoveTimer(NewBaseBoat boat, TimeSpan interval, SpeedCode speed, bool single)
     : base(interval, interval, single ? 1 : 0)
 {
     _boat    = boat;
     Priority = TimerPriority.TwentyFiveMS;
 }