2025-12-01 22:50:52 +08:00
|
|
|
Gm_InputFunc_Handle["给"] <- function(SUser, CmdString) {
|
|
|
|
|
local count = -1;
|
|
|
|
|
local pos = 0;
|
|
|
|
|
local handler = [];
|
|
|
|
|
do {
|
|
|
|
|
local start = pos;
|
|
|
|
|
pos = CmdString.find(" ", pos + 1);
|
|
|
|
|
if (pos != null) {
|
|
|
|
|
handler.append(CmdString.slice(start + 1, pos));
|
|
|
|
|
} else
|
|
|
|
|
handler.append(CmdString.slice(start + 1));
|
|
|
|
|
count = count + 1
|
|
|
|
|
} while (pos != null)
|
|
|
|
|
|
|
|
|
|
//得到空格数量
|
|
|
|
|
if (count == 1) {
|
|
|
|
|
local Ret = SUser.GiveItem(handler[1].tointeger(), 1);
|
|
|
|
|
if (!Ret) SUser.SendNotiPacketMessage("发送失败背包是不是满了", 8);
|
|
|
|
|
} else if (count == 2) {
|
|
|
|
|
local Ret = SUser.GiveItem(handler[1].tointeger(), handler[2].tointeger());
|
|
|
|
|
if (!Ret) SUser.SendNotiPacketMessage("发送失败背包是不是满了", 8);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2025-12-03 15:46:02 +08:00
|
|
|
Gm_InputFunc_Handle["转职"] <- function(SUser, CmdString) {
|
|
|
|
|
local count = -1;
|
|
|
|
|
local pos = 0;
|
|
|
|
|
local handler = [];
|
|
|
|
|
do {
|
|
|
|
|
local start = pos;
|
|
|
|
|
pos = CmdString.find(" ", pos + 1);
|
|
|
|
|
if (pos != null) {
|
|
|
|
|
handler.append(CmdString.slice(start + 1, pos));
|
|
|
|
|
} else
|
|
|
|
|
handler.append(CmdString.slice(start + 1));
|
|
|
|
|
count = count + 1
|
|
|
|
|
} while (pos != null)
|
|
|
|
|
|
|
|
|
|
//得到空格数量
|
|
|
|
|
if (count == 1) {
|
|
|
|
|
SUser.ChangeGrowType(handler[1].tointeger(), 0);
|
|
|
|
|
SUser.SendNotiPacket(0, 2, 0);
|
|
|
|
|
SUser.InitSkillW(handler[1].tointeger(), 0);
|
|
|
|
|
} else if (count == 2) {
|
|
|
|
|
SUser.ChangeGrowType(handler[1].tointeger(), handler[2].tointeger());
|
|
|
|
|
SUser.SendNotiPacket(0, 2, 0);
|
|
|
|
|
SUser.InitSkillW(handler[1].tointeger(), handler[2].tointeger());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2025-12-05 14:05:28 +08:00
|
|
|
|
2025-12-03 15:46:02 +08:00
|
|
|
Gm_InputFunc_Handle["完成任务"] <- function(SUser, CmdString) {
|
|
|
|
|
SUser.ClearQuest_Gm(674);
|
|
|
|
|
SUser.ClearQuest_Gm(649);
|
|
|
|
|
|
|
|
|
|
SUser.ClearQuest_Gm(675);
|
|
|
|
|
SUser.ClearQuest_Gm(650);
|
|
|
|
|
|
|
|
|
|
SUser.ClearQuest_Gm(4414);
|
|
|
|
|
|
|
|
|
|
SUser.ClearQuest_Gm(2603);
|
|
|
|
|
SUser.ClearQuest_Gm(2610);
|
|
|
|
|
SUser.ClearQuest_Gm(2613);
|
|
|
|
|
SUser.ClearQuest_Gm(2622);
|
|
|
|
|
SUser.ClearQuest_Gm(4391);
|
|
|
|
|
SUser.ClearQuest_Gm(4539);
|
|
|
|
|
|
|
|
|
|
SUser.ClearQuest_Gm(220);
|
|
|
|
|
SUser.ClearQuest_Gm(221);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Gm_InputFunc_Handle["升级"] <- function(SUser, CmdString) {
|
|
|
|
|
local count = -1;
|
|
|
|
|
local pos = 0;
|
|
|
|
|
local handler = [];
|
|
|
|
|
do {
|
|
|
|
|
local start = pos;
|
|
|
|
|
pos = CmdString.find(" ", pos + 1);
|
|
|
|
|
if (pos != null) {
|
|
|
|
|
handler.append(CmdString.slice(start + 1, pos));
|
|
|
|
|
} else
|
|
|
|
|
handler.append(CmdString.slice(start + 1));
|
|
|
|
|
count = count + 1
|
|
|
|
|
} while (pos != null)
|
|
|
|
|
|
|
|
|
|
//得到空格数量
|
|
|
|
|
if (count == 1) {
|
|
|
|
|
SUser.SetCharacLevel(handler[1].tointeger());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Gm_InputFunc_Handle["点券"] <- function(SUser, CmdString) {
|
|
|
|
|
local count = -1;
|
|
|
|
|
local pos = 0;
|
|
|
|
|
local handler = [];
|
|
|
|
|
do {
|
|
|
|
|
local start = pos;
|
|
|
|
|
pos = CmdString.find(" ", pos + 1);
|
|
|
|
|
if (pos != null) {
|
|
|
|
|
handler.append(CmdString.slice(start + 1, pos));
|
|
|
|
|
} else
|
|
|
|
|
handler.append(CmdString.slice(start + 1));
|
|
|
|
|
count = count + 1
|
|
|
|
|
} while (pos != null)
|
|
|
|
|
|
|
|
|
|
//得到空格数量
|
|
|
|
|
if (count == 1) {
|
|
|
|
|
SUser.RechargeCera(handler[1].tointeger());
|
|
|
|
|
}
|
|
|
|
|
}
|
2025-12-01 22:50:52 +08:00
|
|
|
|
2025-12-05 14:05:28 +08:00
|
|
|
Gm_InputFunc_Handle["test"] <- function(SUser, CmdString) {
|
|
|
|
|
|
2025-12-25 23:25:49 +08:00
|
|
|
|
2026-01-01 13:45:02 +08:00
|
|
|
|
2025-12-01 22:50:52 +08:00
|
|
|
|
2025-12-19 23:53:10 +08:00
|
|
|
}
|
2025-12-02 20:42:06 +08:00
|
|
|
|
2026-01-03 14:38:50 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2026-01-01 13:45:02 +08:00
|
|
|
Timer.SetTimeOut(function() {
|
2025-12-02 20:42:06 +08:00
|
|
|
|
2026-01-03 14:38:50 +08:00
|
|
|
// // Sq_Rsa_GenerateKey();
|
|
|
|
|
// local str = format("%08x010101010101010101010101010101010101010101010101010101010101010155914510010403030101", 1);
|
|
|
|
|
// local Byte = Sq_Rsa_Private_Encrypt(str);
|
|
|
|
|
// local EnStr = _base64_encode(Byte);
|
|
|
|
|
// print(EnStr);
|
|
|
|
|
|
|
|
|
|
local passwd = "1";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, 1);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// //玩家新增道具时
|
|
|
|
|
// Cb_wdzsdfge_Enter_Func <- {};
|
|
|
|
|
// Cb_wdzsdfge_Leave_Func <- {};
|
|
|
|
|
// _Hook_Register_Currency_Func_("0x81E8C78", ["pointer", "pointer", "pointer", "int"], Cb_wdzsdfge_Enter_Func, Cb_wdzsdfge_Leave_Func);
|
|
|
|
|
|
2025-12-02 20:42:06 +08:00
|
|
|
|
2026-01-03 14:38:50 +08:00
|
|
|
// Cb_wdzsdfge_Leave_Func["11"] <- function(args) {
|
|
|
|
|
// local Ret = Sq_CallFunc(S_Ptr("0x816EE1E"), "pointer", ["pointer"], args[1]);
|
|
|
|
|
// print("登录请求: ");
|
|
|
|
|
// print("GarenaAuthData: " + Ret);
|
|
|
|
|
// print("args[0]: " + args[0] + " args[1]: " + args[1]);
|
|
|
|
|
// print("args[2]: ");
|
|
|
|
|
// NativePointer(args[2]).Output(512);
|
|
|
|
|
// }
|