111
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
#include "pch.h"
|
||||
#include "sock.h"
|
||||
|
||||
extern std::map<std::string, std::string>Json_STL;
|
||||
|
||||
//질분
|
||||
#if defined DRAGONBOX_SWITCH
|
||||
void sock::Pack_녜쉽(int idx, int code, void* p3, void* p4)
|
||||
|
||||
void sock::Pack_Control(int idx, int code, void* p3, void* p4)
|
||||
{
|
||||
DWORD Size;
|
||||
Net_Get_Dword(Size);
|
||||
@@ -12,26 +12,35 @@ void sock::Pack_
|
||||
Net_Get_Buffer(Buffer, Size);
|
||||
Buffer[Size] = '\0';
|
||||
|
||||
STL::DrawDargonBox_STL(Buffer);
|
||||
/*
|
||||
char* a = (char*)"{\"uid\":2,\"cid\":36,\"op\":1}";
|
||||
_SendpacksType(*_SendClass, 0, 130);
|
||||
_SendPacksChar(*_SendClass, 0, a,strlen(a));
|
||||
_SendPacks();
|
||||
*/
|
||||
std::cout << u8"130뵀澗관냥묘" << std::endl;
|
||||
rapidjson::Document Dom;
|
||||
Dom.Parse(Buffer);//속潼 俚륜눔
|
||||
int Op = Dom["op"].GetInt();//털뙤잚謹
|
||||
|
||||
}
|
||||
//질분
|
||||
#if defined DRAGONBOX_SWITCH
|
||||
if (Op >= 0 && Op < 10)Json_STL["DragonBox"] = Buffer;
|
||||
#endif
|
||||
|
||||
//各썹Boss
|
||||
#if defined WORLDBOSS_SWITCH
|
||||
if (Op >= 10 && Op < 20)Json_STL["WorldBoss"] = Buffer;
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
#if defined LOCALHOSTS_SWITCH
|
||||
std::cout << "130뵀澗관냥묘" << std::endl;
|
||||
std::cout << "관코휭" << Buffer << std::endl;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
||||
void sock::R_Register_Pack()
|
||||
{
|
||||
auto Registerfunc = reinterpret_cast<register_pack_handler_t>(0x7186D0);
|
||||
|
||||
//질분
|
||||
#if defined DRAGONBOX_SWITCH
|
||||
Registerfunc(130, Pack_녜쉽, 0);
|
||||
#endif
|
||||
Registerfunc(130, Pack_Control, 0);
|
||||
}
|
||||
|
||||
bool sock::Net_Get_Byte(BYTE& v)
|
||||
|
||||
Reference in New Issue
Block a user