From 141959c90ea475111b1d021d219745c2e246f45e Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期三, 13 十一月 2024 12:24:21 +0800 Subject: [PATCH] 10261 【越南】【砍树】【英文】增加玩家定制头像支持; --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFace.py | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFace.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFace.py index 7814b4e..dbb05f3 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFace.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFace.py @@ -44,6 +44,9 @@ if ipyData.GetUnlockDefault(): # 默认激活的不处理 continue + if ipyData.GetCustomPlayerID(): + # 玩家定制的不处理 + continue if not GameWorld.GetDictValueByBit(curPlayer, ChConfig.Def_PDict_FaceState, faceID): # 未激活的不处理 continue @@ -88,6 +91,9 @@ if ipyData.GetUnlockDefault(): GameWorld.DebugLog("默认解锁的头像不用添加: faceID=%s" % (faceID), playerID) return + if ipyData.GetCustomPlayerID(): + GameWorld.DebugLog("玩家定制的头像不用添加: faceID=%s" % (faceID), playerID) + return ipyExpireSeconds = ipyData.GetExpireMinutes() * 60 curTime = int(time.time()) @@ -128,6 +134,8 @@ if not ipyData: return if ipyData.GetUnlockDefault(): + return + if ipyData.GetCustomPlayerID(): return GameWorld.Log("删除头像: faceID=%s,notifyMail=%s" % (faceID, notifyMail), playerID) GameWorld.SetDictValueByBit(curPlayer, ChConfig.Def_PDict_FaceState, faceID, 0) @@ -250,6 +258,8 @@ if ipyData: if ipyData.GetUnlockDefault(): return True + if ipyData.GetCustomPlayerID() and ipyData.GetCustomPlayerID() == curPlayer.GetPlayerID(): + return True return False -- Gitblit v1.8.0