From fb30a62bca5aa44399c1e8e9aa3dc2e5c250bbf2 Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期五, 18 十月 2024 18:00:07 +0800 Subject: [PATCH] 10263 【越南】【英文】后端支持NPC仿真实玩家战斗和快速战斗 --- ServerPython/CoreServerGroup/GameServer/Script/Player/ChPlayer.py | 11 ++++++++++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/ServerPython/CoreServerGroup/GameServer/Script/Player/ChPlayer.py b/ServerPython/CoreServerGroup/GameServer/Script/Player/ChPlayer.py index f6e7b9f..bd0de0c 100644 --- a/ServerPython/CoreServerGroup/GameServer/Script/Player/ChPlayer.py +++ b/ServerPython/CoreServerGroup/GameServer/Script/Player/ChPlayer.py @@ -79,6 +79,7 @@ import PlayerFuncTeam import PyDataManager import GameWorldMineArea +import PlayerPackData import PlayerRecData import GameWorship import GameXiangong @@ -298,7 +299,7 @@ CrossYaomoBoss.OnPlayerLogin(curPlayer) #玩家记录 PlayerRecData.OnPlayerLogin(curPlayer) - + PlayerPackData.OnPlayerLogin(curPlayer) #在线状态变更,放最后 __OnPlayerOnlineStateChange(curPlayer, True) @@ -704,11 +705,15 @@ cacheBase = msgData["cacheBase"] isLogout = not isOnline + olMgr = GetOnlinePlayerMgr() + olMgr.SetOnlineState(playerID, isOnline, cacheBase.get("ServerGroupID", 0)) + PlayerViewCache.UpdCrossCacheBase(playerID, cacheBase, isLogout) serverID = GameWorld.GetAccIDServerID(cacheBase["AccID"]) # 上线 if isOnline: + PlayerPackData.OnPlayerLogin_CrossLogic(serverGroupID, serverID, playerID) GameXiangong.OnPlayerLogin_CrossLogic(serverGroupID, serverID, playerID) # 下线 @@ -934,6 +939,10 @@ elif packType == IPY_GameServer.CDBPlayerRefresh_Face: curPlayer.SetFace(packValue) PlayerBillboard.UpdateBillboardFace(curPlayer) + elif packType == IPY_GameServer.CDBPlayerRefresh_HairColor: + #c++头像外框 用头发颜色通知 - 遗漏问题 + curPlayer.SetFacePic(packValue) + PlayerBillboard.UpdateBillboardFacePic(curPlayer) #社交信息 PlayerSocial.UpdateSocialInfo(curPlayer.GetID(), packType, packValue) -- Gitblit v1.8.0