From 3f123a69bbdac800953ed553f30aa1815ec377d1 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期六, 13 十二月 2025 14:44:59 +0800
Subject: [PATCH] 389 流向记录(战斗耗时流向;战斗失败明细流向;战斗服务器可记录战斗相关流向;)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/UpdatePlayerName.py |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/UpdatePlayerName.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/UpdatePlayerName.py
index 6f3b7c5..d8d748e 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/UpdatePlayerName.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/UpdatePlayerName.py
@@ -24,8 +24,8 @@
 import IpyGameDataPY
 import PlayerFamily
 import PyMongoMain
+import PlayerTask
 import DirtyList
-import ObjPool
 
 def OnPlayerLogin(curPlayer):
     if curPlayer.NomalDictGetProperty(ChConfig.Def_Player_Rename):
@@ -92,6 +92,8 @@
     PlayerFamily.RefreshFamilyMember(curPlayer)
     PlayerBillboard.UpdatePlayerBillboardName(curPlayer)
     #社交名待更新
+    
+    PlayerTask.AddTaskValue(curPlayer, ChConfig.TaskType_Rename, 1)
     return
 
 def GetPlayerFullName(curPlayer, playerName):
@@ -113,7 +115,7 @@
     return fullName
 
 def Sync_UpdatePlayerNameCount(curPlayer):
-    clientPack = ObjPool.GetPoolMgr().acquire(ChPyNetSendPack.tagUpdatePlayerNameCount)
+    clientPack = ChPyNetSendPack.tagUpdatePlayerNameCount()
     clientPack.Count = curPlayer.NomalDictGetProperty(ChConfig.Def_Player_Rename)
     NetPackCommon.SendFakePack(curPlayer, clientPack)
     return

--
Gitblit v1.8.0