Exemplo n.º 1
0
        public void Start_Handler()
        {
            HRecv.RegisterHandler(0, Check_Connection.GetType());
            HRecv.RegisterHandler(0, Check_Connection.GetType().GetMethod("HearBeat"));

            HRecv.RegisterHandler(2, Login.GetType());
            HRecv.RegisterHandler(2, Login.GetType().GetMethod("Login"));

            HRecv.RegisterHandler(21, Load.GetType());
            HRecv.RegisterHandler(21, Load.GetType().GetMethod("Loading"));

            HRecv.RegisterHandler(15, Req.GetType());
            HRecv.RegisterHandler(15, Req.GetType().GetMethod("HandlerGuideBook"));

            HRecv.RegisterHandler(23, Req.GetType());
            HRecv.RegisterHandler(23, Req.GetType().GetMethod("HandlerConfigPing"));

            HRecv.RegisterHandler(25, Req.GetType());
            HRecv.RegisterHandler(25, Req.GetType().GetMethod("HandlerSHAFileList"));
        }
Exemplo n.º 2
0
        public void Start_Handler()
        {
            try
            {
                HRecv.RegisterHandler(0, Check_Connection.GetType());
                HRecv.RegisterHandler(0, Check_Connection.GetType().GetMethod("HearBeat"));

                HRecv.RegisterHandler(37, Chat.GetType());
                HRecv.RegisterHandler(37, Chat.GetType().GetMethod("OnChat"));

                HRecv.RegisterHandler(33, Login.GetType());
                HRecv.RegisterHandler(33, Login.GetType().GetMethod("Login"));

                HRecv.RegisterHandler(46, PChannel.GetType());
                HRecv.RegisterHandler(46, PChannel.GetType().GetMethod("ChannelList"));

                HRecv.RegisterHandler(44, PChannel.GetType());
                HRecv.RegisterHandler(44, PChannel.GetType().GetMethod("EnterChannel"));

                HRecv.RegisterHandler(48, PChannel.GetType());
                HRecv.RegisterHandler(48, PChannel.GetType().GetMethod("ListRooms"));

                HRecv.RegisterHandler(50, PChannel.GetType());
                HRecv.RegisterHandler(50, PChannel.GetType().GetMethod("UsersList"));

                HRecv.RegisterHandler(52, PChannel.GetType());
                HRecv.RegisterHandler(52, PChannel.GetType().GetMethod("EnterRoom"));

                HRecv.RegisterHandler(56, PChannel.GetType());
                HRecv.RegisterHandler(56, PChannel.GetType().GetMethod("CreateRoom"));

                HRecv.RegisterHandler(58, PChannel.GetType());
                HRecv.RegisterHandler(58, PChannel.GetType().GetMethod("LeaveChannel"));

                HRecv.RegisterHandler(60, PRoom.GetType());
                HRecv.RegisterHandler(60, PRoom.GetType().GetMethod("KChangeRoomInfo"));

                HRecv.RegisterHandler(65, PChannel.GetType());
                HRecv.RegisterHandler(65, PChannel.GetType().GetMethod("LeaveRoom"));

                HRecv.RegisterHandler(68, PRoom.GetType());
                HRecv.RegisterHandler(68, PRoom.GetType().GetMethod("StartGame"));

                HRecv.RegisterHandler(71, PRoom.GetType());
                HRecv.RegisterHandler(71, PRoom.GetType().GetMethod("LoadComplete"));

                HRecv.RegisterHandler(72, PRoom.GetType());
                HRecv.RegisterHandler(72, PRoom.GetType().GetMethod("KChangeRoomUserInfo"));

                HRecv.RegisterHandler(76, PRoom.GetType());
                HRecv.RegisterHandler(76, PRoom.GetType().GetMethod("LeaveGame"));

                HRecv.RegisterHandler(78, PRoom.GetType());
                HRecv.RegisterHandler(78, PRoom.GetType().GetMethod("EndGame"));

                HRecv.RegisterHandler(84, Shop.GetType());
                HRecv.RegisterHandler(84, Shop.GetType().GetMethod("BuyGP"));

                HRecv.RegisterHandler(94, PCharacters.GetType());
                HRecv.RegisterHandler(94, PCharacters.GetType().GetMethod("EquipItem"));

                HRecv.RegisterHandler(135, Nick.GetType());
                HRecv.RegisterHandler(135, Nick.GetType().GetMethod("Register"));

                HRecv.RegisterHandler(160, Req.GetType());
                HRecv.RegisterHandler(160, Req.GetType().GetMethod("MigrateServer"));

                HRecv.RegisterHandler(173, userQuests.GetType());
                HRecv.RegisterHandler(173, userQuests.GetType().GetMethod("RegisterMission"));

                HRecv.RegisterHandler(176, userQuests.GetType());
                HRecv.RegisterHandler(176, userQuests.GetType().GetMethod("CompleteMission"));

                HRecv.RegisterHandler(177, userQuests.GetType());
                HRecv.RegisterHandler(177, userQuests.GetType().GetMethod("RemoveMission"));

                HRecv.RegisterHandler(155, ServersList.GetType());
                HRecv.RegisterHandler(155, ServersList.GetType().GetMethod("SendList"));

                HRecv.RegisterHandler(211, PCharacters.GetType());
                HRecv.RegisterHandler(211, PCharacters.GetType().GetMethod("SetCurrentCharacter"));

                HRecv.RegisterHandler(213, PCharacters.GetType());
                HRecv.RegisterHandler(213, PCharacters.GetType().GetMethod("CreatePet"));

                HRecv.RegisterHandler(395, Shop.GetType());
                HRecv.RegisterHandler(395, Shop.GetType().GetMethod("BuyVC"));

                HRecv.RegisterHandler(433, STInfo.GetType());
                HRecv.RegisterHandler(433, STInfo.GetType().GetMethod("GetFullSpInfo"));

                HRecv.RegisterHandler(435, STInfo.GetType());
                HRecv.RegisterHandler(435, STInfo.GetType().GetMethod("SkillTraining"));

                HRecv.RegisterHandler(437, STInfo.GetType());
                HRecv.RegisterHandler(437, STInfo.GetType().GetMethod("SetSkill"));

                HRecv.RegisterHandler(453, SystemREC.GetType());
                HRecv.RegisterHandler(453, SystemREC.GetType().GetMethod("GachaRewardList"));

                HRecv.RegisterHandler(455, SystemREC.GetType());
                HRecv.RegisterHandler(455, SystemREC.GetType().GetMethod("GachaSetReward"));

                HRecv.RegisterHandler(463, SystemREC.GetType());
                HRecv.RegisterHandler(463, SystemREC.GetType().GetMethod("GachaSelectReward"));

                HRecv.RegisterHandler(676, Shop.GetType());
                HRecv.RegisterHandler(676, Shop.GetType().GetMethod("CheckItem"));

                HRecv.RegisterHandler(846, Req.GetType());
                HRecv.RegisterHandler(846, Req.GetType().GetMethod("IDLEState"));

                HRecv.RegisterHandler(853, PRoom.GetType());
                HRecv.RegisterHandler(853, PRoom.GetType().GetMethod("LoadState"));

                HRecv.RegisterHandler(860, PCharacters.GetType());
                HRecv.RegisterHandler(860, PCharacters.GetType().GetMethod("LookEquip"));

                HRecv.RegisterHandler(865, PInventory.GetType());
                HRecv.RegisterHandler(865, PInventory.GetType().GetMethod("BundleSellItens"));

                HRecv.RegisterHandler(886, HeroDugeons.GetType());
                HRecv.RegisterHandler(886, HeroDugeons.GetType().GetMethod("Catalog"));

                HRecv.RegisterHandler(888, HeroDugeons.GetType());
                HRecv.RegisterHandler(888, HeroDugeons.GetType().GetMethod("Material"));

                HRecv.RegisterHandler(913, PRoom.GetType());
                HRecv.RegisterHandler(913, PRoom.GetType().GetMethod("SpecialReward"));

                HRecv.RegisterHandler(920, Req.GetType());
                HRecv.RegisterHandler(920, Req.GetType().GetMethod("ReceiveExp"));

                HRecv.RegisterHandler(927, PRoom.GetType());
                HRecv.RegisterHandler(927, PRoom.GetType().GetMethod("LoadStage"));

                HRecv.RegisterHandler(1012, Req.GetType());
                HRecv.RegisterHandler(1012, Req.GetType().GetMethod("Choicebox"));

                HRecv.RegisterHandler(1042, Shop.GetType());
                HRecv.RegisterHandler(1042, Shop.GetType().GetMethod("packageInfo"));

                HRecv.RegisterHandler(1084, HeroDugeons.GetType());
                HRecv.RegisterHandler(1084, HeroDugeons.GetType().GetMethod("MaterialInfo"));

                HRecv.RegisterHandler(1105, Req.GetType());
                HRecv.RegisterHandler(1105, Req.GetType().GetMethod("AgitMapCatalogue"));

                HRecv.RegisterHandler(1113, Req.GetType());
                HRecv.RegisterHandler(1113, Req.GetType().GetMethod("AgitStoreCatalog"));

                HRecv.RegisterHandler(1183, Req.GetType());
                HRecv.RegisterHandler(1183, Req.GetType().GetMethod("FaityTreeLvTable"));

                HRecv.RegisterHandler(1225, Req.GetType());
                HRecv.RegisterHandler(1225, Req.GetType().GetMethod("InvenBuffItemList"));

                HRecv.RegisterHandler(111, Req.GetType());
                HRecv.RegisterHandler(111, Req.GetType().GetMethod("Kairos"));

                HRecv.RegisterHandler(1280, PLetter.GetType());
                HRecv.RegisterHandler(1280, PLetter.GetType().GetMethod("GetPostLetterList"));

                HRecv.RegisterHandler(1287, PLetter.GetType());
                HRecv.RegisterHandler(1287, PLetter.GetType().GetMethod("ReadLetter"));

                HRecv.RegisterHandler(1290, PLetter.GetType());
                HRecv.RegisterHandler(1290, PLetter.GetType().GetMethod("GetItemfromLetter"));

                HRecv.RegisterHandler(1337, Req.GetType());
                HRecv.RegisterHandler(1337, Req.GetType().GetMethod("ExpPotionList"));

                HRecv.RegisterHandler(1339, Req.GetType());
                HRecv.RegisterHandler(1339, Req.GetType().GetMethod("DepotInfoReq"));

                HRecv.RegisterHandler(1341, SystemREC.GetType());
                HRecv.RegisterHandler(1341, SystemREC.GetType().GetMethod("DepotInfo"));

                HRecv.RegisterHandler(1409, PCharacters.GetType());
                HRecv.RegisterHandler(1409, PCharacters.GetType().GetMethod("CreateCharacter"));

                HRecv.RegisterHandler(1556, Shop.GetType());
                HRecv.RegisterHandler(1556, Shop.GetType().GetMethod("CashRatio"));

                HRecv.RegisterHandler(1599, Shop.GetType());
                HRecv.RegisterHandler(1599, Shop.GetType().GetMethod("packageInfoDetail"));

                HRecv.RegisterHandler(1502, HeroDugeons.GetType());
                HRecv.RegisterHandler(1502, HeroDugeons.GetType().GetMethod("UpgradeInfo"));

                HRecv.RegisterHandler(1616, Shop.GetType());
                HRecv.RegisterHandler(1616, Shop.GetType().GetMethod("AddSlotChar"));

                HRecv.RegisterHandler(1620, PChannel.GetType());
                HRecv.RegisterHandler(1620, PChannel.GetType().GetMethod("ChangeCharInChannel"));

                HRecv.RegisterHandler(1647, PChannel.GetType());
                HRecv.RegisterHandler(1647, PChannel.GetType().GetMethod("RoomMyInfoDivide"));

                HRecv.RegisterHandler(1721, PCharacters.GetType());
                HRecv.RegisterHandler(1721, PCharacters.GetType().GetMethod("ChangeCharacterInRoom"));

                HRecv.RegisterHandler(1723, PCharacters.GetType());
                HRecv.RegisterHandler(1723, PCharacters.GetType().GetMethod("ChangeIndoor"));

                HRecv.RegisterHandler(1743, Req.GetType());
                HRecv.RegisterHandler(1743, Req.GetType().GetMethod("HeathPoint"));
            }
            catch (Exception ex)
            {
                Log.Write("\n===========:Error:===========\n{0}\n{1}\n=============================n", ex.Message, ex.StackTrace);
            }
        }