From 3e464fe2ec8c40fc317e3ec3d6a4c3d9788cf41a Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期四, 13 六月 2024 17:27:18 +0800
Subject: [PATCH] 10178 【越南】【香港】【主干】挂机奖励(B109封包修改)

---
 ServerPython/CoreServerGroup/GameServer/Script/GM/Commands/Assist.py |   30 ++++++++++++++++++++++--------
 1 files changed, 22 insertions(+), 8 deletions(-)

diff --git a/ServerPython/CoreServerGroup/GameServer/Script/GM/Commands/Assist.py b/ServerPython/CoreServerGroup/GameServer/Script/GM/Commands/Assist.py
index d9ead76..3cb4b72 100644
--- a/ServerPython/CoreServerGroup/GameServer/Script/GM/Commands/Assist.py
+++ b/ServerPython/CoreServerGroup/GameServer/Script/GM/Commands/Assist.py
@@ -31,21 +31,17 @@
 #  @remarks 函数详细说明.
 def OnExec(curPlayer, gmList):
     
+    isShowThanks = gmList[0] if len(gmList) > 0 else 0
     assistMgr = PyDataManager.GetPlayerAssistPyManager()
     GameWorld.Log("---------- 当前总协助条数: %s" % len(assistMgr.allAssistDict))
     for assist in assistMgr.allAssistDict.values():
         GameWorld.DebugLog("%s" % assist.outputString())
-        GameWorld.DebugLog("IsSaveDB=%s,ObjID=%s,AssistType=%s,AssistPlayerIDList=%s" % (assist.IsSaveDB, assist.ObjID, assist.AssistType, assist.AssistPlayerIDList))
+        GameWorld.DebugLog("IsSaveDB=%s,FamilyID=%s,ObjID=%s,AssistType=%s,AssistPlayerIDList=%s" 
+                           % (assist.IsSaveDB, assist.FamilyID, assist.ObjID, assist.AssistType, assist.AssistPlayerIDList))
         GameWorld.DebugLog("--- ")
         
     GameWorld.DebugLog("--- ")
-    for familyID, assistList in assistMgr.familyAssistDict.items():
-        GameWorld.DebugLog("仙盟协助列表: %s, 条数: %s" % (familyID, len(assistList)))
-        for assist in assistList:
-            GameWorld.DebugLog("    %s" % assist.GUID)
-        
-    GameWorld.DebugLog("--- ")
-    for playerID, assistList in assistMgr.playerNoSaveDBAssistDict.items():
+    for playerID, assistList in assistMgr.playerAssistDict.items():
         GameWorld.DebugLog("玩家协助列表: %s, 条数: %s" % (playerID, len(assistList)))
         for assist in assistList:
             GameWorld.DebugLog("    %s" % assist.GUID)
@@ -55,5 +51,23 @@
         GameWorld.DebugLog("玩家协助中的: %s, %s" % (playerID, assist.GUID))
         
     GameWorld.DebugLog("-----------------------------------------")
+    if not isShowThanks:
+        return
+    
+    assistThanksMgr = PyDataManager.GetPlayerAssistThanksPyManager()
+    GameWorld.Log("---------- 未完结总感谢条数: %s" % len(assistThanksMgr.allAssistThanksList))
+    for playerID, thanksList in assistThanksMgr.playerThanksDict.items():
+        GameWorld.DebugLog("--- 玩家未发送感谢数: %s, %s" % (playerID, len(thanksList)))
+        for i, thanks in enumerate(thanksList):
+            GameWorld.DebugLog("    %s itemID=%s,map(%s,%s,%s), %s %s" % (i, thanks.ItemID, thanks.MapID, thanks.LineID, thanks.NPCID, thanks.TimeStr, thanks.GUID), thanks.PlayerID)
+            GameWorld.DebugLog("        ThanksState=%s, %s" % (thanks.ThanksState, thanks.AssistPlayerDict), thanks.PlayerID)
+            
+    for playerID, thanksList in assistThanksMgr.assistPlayerThanksDict.items():
+        GameWorld.DebugLog("--- 玩家未接收感谢数: %s, %s" % (playerID, len(thanksList)))
+        for i, thanks in enumerate(thanksList):
+            GameWorld.DebugLog("    %s itemID=%s,map(%s,%s,%s), %s %s" % (i, thanks.ItemID, thanks.MapID, thanks.LineID, thanks.NPCID, thanks.TimeStr, thanks.GUID), thanks.PlayerID)
+            GameWorld.DebugLog("        ThanksState=%s, %s" % (thanks.ThanksState, thanks.AssistPlayerDict), thanks.PlayerID)
+                    
+    GameWorld.DebugLog("-----------------------------------------")
     return
 

--
Gitblit v1.8.0