From 23772c7a582ffd920706330d52b8603e9859ef4c Mon Sep 17 00:00:00 2001 From: xdh <xiefantasy@qq.com> Date: 星期五, 07 十二月 2018 19:39:06 +0800 Subject: [PATCH] 4856 许愿池重置修改 --- ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerControl.py | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerControl.py b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerControl.py index 9486609..ee31aa5 100644 --- a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerControl.py +++ b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerControl.py @@ -220,7 +220,12 @@ def SetTodayXianyuanCoin(curPlayer, value): return curPlayer.SetExAttr11(value) ##玩家主动退出仙盟时间(<100代表退出次数) -def SetLeaveFamilyTime(curPlayer, value): return curPlayer.SetExAttr12(value) +def SetLeaveFamilyTime(curPlayer, value, isSyncMap=True): + curPlayer.SetExAttr12(value) + if isSyncMap: + sysMsg = '%s'%value + curPlayer.MapServer_QueryPlayerResult(0, 0, "SetLeaveFamilyTime", sysMsg, len(sysMsg)) + return def GetLeaveFamilyTime(curPlayer):return curPlayer.GetExAttr12() ## 是否脱机挂机状态 -- Gitblit v1.8.0