更新 IP 保存赋值方式

This commit is contained in:
lenheart
2025-12-20 16:51:59 +08:00
parent 51a5665176
commit ce49b1dc9f
3 changed files with 73 additions and 8 deletions

View File

@@ -655,12 +655,6 @@ Cb_CCompound_ExtreamDun_Item_makeCompoundItem_Leave_Func <- {};
_Hook_Register_Currency_Func_("0x0832CCC0", ["pointer", "pointer", "int", "pointer", "int", "int"],
Cb_CCompound_ExtreamDun_Item_makeCompoundItem_Enter_Func, Cb_CCompound_ExtreamDun_Item_makeCompoundItem_Leave_Func);
//队伍进入副本时
Cb_CParty_dungeon_start_Enter_Func <- {};
Cb_CParty_dungeon_start_Leave_Func <- {};
_Hook_Register_Currency_Func_("0x085A0954", ["pointer", "pointer", "char", "int", "int"],
Cb_CParty_dungeon_start_Enter_Func, Cb_CParty_dungeon_start_Leave_Func);
function _Hook_Register_Currency_DelayHook_() {
//五国时的热点函数

View File

@@ -4,7 +4,7 @@
创建日期:2024-05-01 16:24
文件用途:服务端核心类
*/
Dps_Self_Ip <- "";
if (!getroottable().rawin("Dps_Self_Ip")) Dps_Self_Ip <- "";
function removeBackslashes(str) {
local result = "";
@@ -95,7 +95,7 @@ class ServerControl {
//获得本服务器的IP
GatewaySocketPackFuncMap.rawset(10002, function(Jso) {
Dps_Self_Ip = Jso.myip;
getroottable().Dps_Self_Ip <- Jso.myip;
}.bindenv(this));