public static void HandleRunSpeedCheat(ref PacketReader packet, ref WorldManager manager)
        {
            Player c = manager.Character;

            if (c != null && !c.IsGM)
            {
                MiscHandler.HandleForceSpeedChange(ref c.Client, 7.0f, true);
            }
        }
        public static void HandleSwimSpeedCheat(ref PacketReader packet, ref WorldManager manager)
        {
            Player c = manager.Character;

            if (c != null && !c.IsGM)
            {
                MiscHandler.HandleForceSpeedChange(ref c.Client, 4.7222223f, false);
            }
        }
Example #3
0
        public static void HandlePlayerLogin(ref PacketReader packet, ref WorldManager manager)
        {
            ulong guid = packet.ReadUInt64();

            manager.Character          = Database.Players.TryGet(guid);
            manager.Character.Client   = manager;
            manager.Character.IsOnline = true;

            MiscHandler.HandleLoginSetTimespeed(ref manager);

            /*
             * SMSG_ACTION_BUTTONS
             */
            manager.Character.SendInitialSpells();
            manager.Character.SendMOTD();
            manager.Character.PreLoad();

            manager.Send(manager.Character.QueryDetails(), true);
            manager.Send(manager.Character.BuildUpdate(UpdateTypes.UPDATE_FULL, true));

            manager.Character.Login();
            manager.Character.UpdateSurroundingPlayers();
        }