diff --git a/test/hook.cpp b/test/hook.cpp index 6cf6efc..03c00c6 100644 --- a/test/hook.cpp +++ b/test/hook.cpp @@ -112,6 +112,7 @@ void _fastcall hook::H_Register_DrawCode(DWORD thisc, int Seat, int a3, int a4, #endif #ifndef SELL + /* //副屏绘制文字 if (a3 == 15 && a4 == 503) { @@ -124,6 +125,7 @@ void _fastcall hook::H_Register_DrawCode(DWORD thisc, int Seat, int a3, int a4, DrawCodeT3_STL.clear(); return; } + */ //Ver.1180.2.1r if (GameStr.find("Ver. 1.180.2.1r") != std::string::npos) @@ -648,8 +650,6 @@ int _fastcall New_inventory_M_Pos(DWORD thisc, DWORD Seat) int hook::RegisterHook() { - - MH_Initialize(); //HOOK背包鼠标位置 diff --git a/test/pch.h b/test/pch.h index fac747b..dd6c23b 100644 --- a/test/pch.h +++ b/test/pch.h @@ -50,6 +50,8 @@ #define RecoverySystem "鍥炴敹绯荤粺 寮鍚" #define Inventory_M_Pos "鑳屽寘榧犳爣浣嶇疆HOOK 寮鍚"//(寮鍚洖鏀剁郴缁熼渶瑕侀紶鏍囦綅缃敮鎸) +#define COPY_MESSAGE "娑堟伅妗嗛粡璐碒OOK 寮鍚" + #define CHRATRBT_SWITCH "浜虹墿鎴栬澶囧睘鎬 鏌ョ湅 淇敼 寮鍚" diff --git a/test/sock.cpp b/test/sock.cpp index cd556a8..81de433 100644 --- a/test/sock.cpp +++ b/test/sock.cpp @@ -25,6 +25,7 @@ void sock::Pack_Control(int idx, int code, void* p3, void* p4) #if defined CUSTOM_PACK_SOCK + /* if (Op == 610) { uint32_t v = GetSqVm(); @@ -36,6 +37,7 @@ void sock::Pack_Control(int idx, int code, void* p3, void* p4) SQ_Call(v, 2, 0, 1); SQPop(v, 2); } + */ if (Op >= 30 && Op <= 40) { uint32_t v = GetSqVm(); diff --git a/test/squirrel.cpp b/test/squirrel.cpp index 5a14ec2..a5a08df 100644 --- a/test/squirrel.cpp +++ b/test/squirrel.cpp @@ -1943,6 +1943,10 @@ void squirrel::InitGameScript() { uint32_t v = GetSqVm(); + //消息框黏贴 +#ifdef COPY_MESSAGE + * (WORD*)0x011C53B0 = 0x01B0; +#endif // COPY_MESSAGE #ifdef SELL