This commit is contained in:
2026-04-22 20:37:29 +08:00
parent 5c5a92e2d2
commit 9d145656a7
4 changed files with 19 additions and 20 deletions

View File

@@ -28,13 +28,6 @@ if (!getroottable().rawin("OnGatewaySocketConnectFunc")) OnGatewaySocketConnectF
function OnGatewaySocketConnect() {
print("\x1b[96m" + "############双端插件连接建立############" + "\x1b[0m");
//获得本服务器的IP
GatewaySocketPackFuncMap.rawset(10002, function(Jso) {
getroottable().Dps_Self_Ip <- Jso.myip;
print("本服务器IP: " + Jso.myip);
print("\x1b[96m" + "############双端插件初始化成功############" + "\x1b[0m");
});
Timer.SetTimeOut(function() {
local Jso = {
op = 10001,

View File

@@ -19,8 +19,7 @@ Cb_MySQL_Open_Enter_Func.info <- function(args) {
try {
dofile("/dp_s/Front_main.nut");
Front_main();
} catch (exception){
}
} catch (exception) {}
function sqr_main() {
if (getroottable().rawin("DP_S_VERSION") && DP_S_VERSION >= 25.332) {
@@ -207,14 +206,22 @@ if (getroottable().rawin("DP_S_VERSION") && DP_S_VERSION >= 25.329 && DP_S_VERSI
);
}
//获得本服务器的IP
GatewaySocketPackFuncMap.rawset(10002, function(Jso) {
getroottable().Dps_Self_Ip <- Jso.myip;
print("本服务器IP: " + Jso.myip);
print("\x1b[96m" + "############双端插件初始化成功############" + "\x1b[0m");
});
if (!getroottable().rawin("Dps_Self_Ip")) Dps_Self_Ip <- "";
Haker.LoadHook("0x081E8C78", ["pointer", "pointer", "pointer", "int"],
function(args) {
local SUser = User(args[1]);
local SNU = Memory.allocUtf8String(getroottable().Dps_Self_Ip);
SUser.SendBlob(SNU);
return null;
},
function(args) {
return null;
});
Haker.LoadHook("0x081E8C78", ["pointer", "pointer", "pointer", "int"],
function(args) {
local SUser = User(args[1]);
local SNU = Memory.allocUtf8String(getroottable().Dps_Self_Ip);
SUser.SendBlob(SNU);
return null;
},
function(args) {
return null;
});

View File

@@ -1,7 +1,6 @@
getroottable().DebugModelFlag <- false;
//初始化插件
function InitPluginInfo() {
try {
local Io = IO("/java_plugin/Restart", "r");
Io.Close();