Beispiel #1
0
        public WvsShop(WvsCenter parent) : base("WvsShop", Constants.ShopPort, parent)
        {
            BestItems = new BestItemManager();

            PacketHandler.Add((short)RecvOps.CP_MigrateIn, Handle_MigrateIn, false);
            PacketHandler.Add((short)RecvOps.CP_UserTransferFieldRequest, Handle_UserTransferFieldRequest);
            //PacketHandler.Add((short)RecvOps.CP_CashShopChargeParamRequest, Handle_CP_CashShopChargeParamRequest);
            PacketHandler.Add((short)RecvOps.CP_CashShopQueryCashRequest, Handle_CashShopQueryCashRequest);
            PacketHandler.Add((short)RecvOps.CP_CashShopCashItemRequest, Handle_CashShopCashItemRequest);
            PacketHandler.Add((short)RecvOps.CP_CashShopCheckCouponRequest, Handle_CashShopCheckCouponRequest);
            //PacketHandler.Add((short)RecvOps.CP_CashShopGiftMateInfoRequest, Handle_CashShopGiftMateInfoRequest);
            PacketHandler.Add((short)RecvOps.CP_CheckTransferWorldPossible, Handle_CheckTransferWorldPossible);
            PacketHandler.Add((short)RecvOps.CP_CheckNameChangePossible, Handle_CheckNameChangePossible);
            PacketHandler.Add((short)RecvOps.CP_CashItemGachaponRequest, Handle_CashItemGachaponRequest);

            /**
             * LP_CashShopChargeParamResult = 0x17E, // v--- CCashShop::OnPacket
             * LP_CashShopQueryCashResult = 0x17F,
             * LP_CashShopCashItemResult = 0x180,
             * LP_CashShopPurchaseExpChanged = 0x181,
             * LP_CashShopGiftMateInfoResult = 0x182,
             * LP_CashShopCheckDuplicatedIDResult = 0x183,
             * LP_CashShopCheckNameChangePossibleResult = 0x184,
             * LP_CashShopRegisterNewCharacterResult = 0x185,
             * LP_CashShopCheckTransferWorldPossibleResult = 0x186,
             * LP_CashShopGachaponStampItemResult = 0x187,
             * LP_CashShopCashItemGachaponResult = 0x188,
             * LP_CashShopCashGachaponOpenResult = 0x189,
             * LP_ChangeMaplePointResult = 0x18A,
             * LP_CashShopOneADay = 0x18B,
             * LP_CashShopNoticeFreeCashItem = 0x18C,
             * LP_CashShopMemberShopResult = 0x18D,*/
        }
Beispiel #2
0
        protected WvsServerBase(string name, int port, WvsCenter parent) : base(name, port)
        {
            Center = parent;

            PacketHandler = new PacketHandler <TClient>();
            PacketHandler.Add((short)RecvOps.CP_AliveAck, Handle_AliveAck, false);
            //PacketHandler.Add((short)RecvOps.CP_CustomSecurityInit, (c, p) => c.Security.HandleInit(p), false);
            //PacketHandler.Add((short)RecvOps.CP_CustomSecurityAlive, (c, p) => c.Security.HandleAlive(p), false);
        }
Beispiel #3
0
        //-----------------------------------------------------------------------------

        public WvsLogin(WvsCenter parent) : base("WvsLogin", Constants.LoginPort, parent)
        {
            //PacketHandler.Add((short)RecvOps.CP_ApplyHotFix, (c, p) => c.Security.HandleHotFix(p), false);

            PacketHandler.Add((short)RecvOps.CP_CheckPassword, Handle_CheckPassword, false);
            //PacketHandler.Add((short)RecvOps.CP_GuestIDLogin, Handle_GuestIDLogin);
            //PacketHandler.Add((short)RecvOps.CP_AccountInfoRequest, Handle_AccountInfoRequest);
            PacketHandler.Add((short)RecvOps.CP_WorldInfoRequest, Handle_WorldRequest);
            PacketHandler.Add((short)RecvOps.CP_SelectWorld, Handle_SelectWorld);
            PacketHandler.Add((short)RecvOps.CP_CheckUserLimit, Handle_CheckUserLimit);
            //PacketHandler.Add((short)RecvOps.CP_ConfirmEULA, Handle_ConfirmEULA);
            //PacketHandler.Add((short)RecvOps.CP_SetGender, Handle_SetGender);
            //PacketHandler.Add((short)RecvOps.CP_CheckPinCode, Handle_CheckPinCode);
            //PacketHandler.Add((short)RecvOps.CP_UpdatePinCode, Handle_UpdatePinCode);
            PacketHandler.Add((short)RecvOps.CP_WorldRequest, Handle_WorldRequest);
            //PacketHandler.Add((short)RecvOps.CP_LogoutWorld, Handle_LogoutWorld);
            PacketHandler.Add((short)RecvOps.CP_ViewAllChar, Handle_ViewAllChar);
            //PacketHandler.Add((short)RecvOps.CP_SelectCharacterByVAC, Handle_SelectCharacterByVAC);
            //PacketHandler.Add((short)RecvOps.CP_VACFlagSet, Handle_VACFlagSet);
            //PacketHandler.Add((short)RecvOps.CP_CheckNameChangePossible, Handle_CheckNameChangePossible);
            //PacketHandler.Add((short)RecvOps.CP_RegisterNewCharacter, Handle_RegisterNewCharacter);
            //PacketHandler.Add((short)RecvOps.CP_CheckTransferWorldPossible, Handle_CheckTransferWorldPossible);
            PacketHandler.Add((short)RecvOps.CP_SelectCharacter, Handle_SelectCharacter);
            PacketHandler.Add((short)RecvOps.CP_CheckDuplicatedID, Handle_CheckDuplicatedID);
            PacketHandler.Add((short)RecvOps.CP_CreateNewCharacter, Handle_CreateNewCharacter);
            //PacketHandler.Add((short)RecvOps.CP_CreateNewCharacterInCS, Handle_CreateNewCharacterInCS);
            PacketHandler.Add((short)RecvOps.CP_DeleteCharacter, Handle_DeleteCharacter);
            //PacketHandler.Add((short)RecvOps.CP_ExceptionLog, Handle_ExceptionLog);
            //PacketHandler.Add((short)RecvOps.CP_SecurityPacket, Handle_SecurityPacket);
            //PacketHandler.Add((short)RecvOps.CP_EnableSPWRequest, Handle_EnableSPWRequest);
            //PacketHandler.Add((short)RecvOps.CP_CheckSPWRequest, Handle_CheckSPWRequest);
            //PacketHandler.Add((short)RecvOps.CP_EnableSPWRequestByACV, Handle_EnableSPWRequestByACV);
            //PacketHandler.Add((short)RecvOps.CP_CheckSPWRequestByACV, Handle_CheckSPWRequestByACV);
            //PacketHandler.Add((short)RecvOps.CP_CheckOTPRequest, Handle_CheckOTPRequest);
            //PacketHandler.Add((short)RecvOps.CP_CheckDeleteCharacterOTP, Handle_CheckDeleteCharacterOTP);
            PacketHandler.Add((short)RecvOps.CP_CreateSecurityHandle, Handle_CreateSecurityHandle, false);
            //PacketHandler.Add((short)RecvOps.CP_SSOErrorLog, Handle_SSOErrorLog);
            PacketHandler.Add((short)RecvOps.CP_ClientDumpLog, Handle_ClientDumpLog, false);
            //PacketHandler.Add((short)RecvOps.CP_CheckExtraCharInfo, Handle_CheckExtraCharInfo);
            //PacketHandler.Add((short)RecvOps.CP_CreateNewCharacter_Ex, Handle_CreateNewCharacter_Ex);
        }