Compare commits

..

2 Commits

Author SHA1 Message Date
lenheart 8a81351b95 更新内存write函数 2025-12-10 14:49:01 +08:00
lenheart e9705a6656 前置函数调用失败报错 2025-12-09 01:40:48 +08:00
7 changed files with 27 additions and 25 deletions

3
Front_main.nut Normal file
View File

@ -0,0 +1,3 @@
function Front_main(){
print("五国之前");
}

View File

@ -270,7 +270,5 @@ Gm_InputFunc_Handle["test"] <- function(SUser, CmdString) {
Timer.SetTimeOut(function ()
{
print("111");
}, 1);

View File

@ -85,11 +85,11 @@ class NativePointer extends Base_C_Object {
function write(value, type) {
local Buf = blob(0);
Buf.writen(value, type);
local arr = array(Buf.len());
for (local i = 0; i< Buf.len(); i++) {
arr[i] = Buf[i];
}
writeByteArray(arr);
// local arr = array(Buf.len());
// for (local i = 0; i< Buf.len(); i++) {
// arr[i] = Buf[i];
// }
writeByteArray(Buf);
}
function writeS8(value) {

View File

@ -20,7 +20,6 @@ try {
dofile("/dp_s/Front_main.nut");
Front_main();
} catch (exception){
}
function sqr_main() {

View File

@ -548,10 +548,7 @@ _Hook_Register_Currency_Func_("0x0854755A", ["pointer", "pointer", "pointer", "p
Cb_WongWork_CItemUpgrade_Separate_Enter_Func <- {};
Cb_WongWork_CItemUpgrade_Separate_Leave_Func <- {};
_Hook_Register_Currency_Func_("0x0811E468", ["pointer", "pointer", "pointer", "pointer", "int"], Cb_WongWork_CItemUpgrade_Separate_Enter_Func, Cb_WongWork_CItemUpgrade_Separate_Leave_Func);
// 随机值
Cb_CMTRand_randInt_Enter_Func <- {};
Cb_CMTRand_randInt_Leave_Func <- {};
_Hook_Register_Currency_Func_("0x080CBABE", ["pointer", "pointer", "int"], Cb_CMTRand_randInt_Enter_Func, Cb_CMTRand_randInt_Leave_Func);
// 发送绝望之塔APC
Cb_TowerOfDespairMgr_SendAPCInfo_Enter_Func <- {};
@ -660,11 +657,15 @@ _Hook_Register_Currency_Func_("0x0832CCC0", "int", ["pointer", "pointer", "int",
Cb_CCompound_ExtreamDun_Item_makeCompoundItem_Enter_Func, Cb_CCompound_ExtreamDun_Item_makeCompoundItem_Leave_Func);
function _Hook_Register_Currency_DelayHook_() {
//五国时的热点函数
//获取Item Rarity
Cb_CItem_get_rarity_Enter_Func <- {};
Cb_CItem_get_rarity_Leave_Func <- {};
_Hook_Register_Currency_Func_("0x080F12D6", ["pointer", "int"], Cb_CItem_get_rarity_Enter_Func, Cb_CItem_get_rarity_Leave_Func);
// 随机值
Cb_CMTRand_randInt_Enter_Func <- {};
Cb_CMTRand_randInt_Leave_Func <- {};
_Hook_Register_Currency_Func_("0x080CBABE", ["pointer", "pointer", "int"], Cb_CMTRand_randInt_Enter_Func, Cb_CMTRand_randInt_Leave_Func);
}

View File

@ -3,6 +3,7 @@ getroottable().DebugModelFlag <- false;
function InitPluginInfo() {
Sq_CreatCConnectPool(2, 4, "127.0.0.1", 3306, "game", "uu5!^%jg");
Sq_CreatSocketConnect("127.0.0.1", "65109");
// Sq_CreatSocketConnect("49.234.27.222", "65109");
}

Binary file not shown.