1
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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;
|
||||
});
|
||||
@@ -1,7 +1,6 @@
|
||||
getroottable().DebugModelFlag <- false;
|
||||
//初始化插件
|
||||
function InitPluginInfo() {
|
||||
|
||||
try {
|
||||
local Io = IO("/java_plugin/Restart", "r");
|
||||
Io.Close();
|
||||
|
||||
Reference in New Issue
Block a user