From 84ede803777ff10b5cbe93b1ec0168af08f55d5e Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期三, 13 一月 2021 18:11:26 +0800
Subject: [PATCH] 8677 【BT】【后端】跨服冲榜活动; 新增跨服活动时间管理模块、跨服榜单;跨服邮件;跨服广播优化;相关GM命令、后台工具;

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerBillboard.py |   34 +++++++++++++++++++++++++++++++++-
 1 files changed, 33 insertions(+), 1 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerBillboard.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerBillboard.py
index a03c9d4..860f197 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerBillboard.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerBillboard.py
@@ -20,6 +20,7 @@
 import ChConfig
 import PlayerControl
 import OpenServerCampaign
+import CrossRealmPlayer
 import GameFuncComm
 import EventReport
 
@@ -86,7 +87,38 @@
     sendMsg = "%s" % ({"Type":bType, "Type2":bType2, "ID":bID, "ID2":bID2, "Name1":bName, "Name2":bName2, "ExInfo":exInfo,
                        "Value1":value1, "Value2":value2, "CmpValue":cmpValue, "CmpValue2":cmpValue2, "CmpValue3":cmpValue3}) 
     GameWorld.GetPlayerManager().GameServer_QueryPlayerResult(0, 0, 0, "UpdateBillboard", sendMsg, len(sendMsg))
-    GameWorld.DebugLog("同步GameServer排行榜:bType=%s,%s" % (bType, sendMsg))
+    GameWorld.DebugLog("同步GameServer排行榜:bType=%s,cmpValue=%s, %s" % (bType, cmpValue, sendMsg), bID)
+    return
+
+def UpdatePlayerCrossBillboard(curPlayer, bType, groupValue1, cmpValue, cmpValue2=0, cmpValue3=0, value1=0, value2=0, 
+                               groupValue2=0):
+    ## 更新玩家跨服排行榜
+    
+    #if not cmpValue and not cmpValue2 and not cmpValue3:
+    #    return
+    
+    #if not __CanPlayerBillboardComm(curPlayer):
+    #    return
+    
+    playerJob = GetBillboardJob(curPlayer)
+    playerID = curPlayer.GetID()
+    playerName = CrossRealmPlayer.GetCrossPlayerName(curPlayer)
+    playerOpInfo = GetBillboardOperateInfo(curPlayer)
+    if bType in ShareDefine.BTValue1_OfficialRankList:
+        value1 = curPlayer.GetOfficialRank()
+    id2 = 0
+    GameServer_UpdateCrossBillboard(bType, groupValue1, playerID, playerName, playerOpInfo, playerJob, value1, value2, 
+                                    cmpValue, cmpValue2, cmpValue3, groupValue2, id2)
+    return
+
+def GameServer_UpdateCrossBillboard(bType, groupValue1, dataID, name1, name2, type2, value1, value2, cmpValue, 
+                                    cmpValue2=0, cmpValue3=0, groupValue2=0, id2=0):
+    sendMsg = "%s" % ({"Type":bType, "GroupValue1":groupValue1, "Type2":type2, "ID":dataID, "ID2":id2, "Name1":name1, "Name2":name2,
+                       "Value1":value1, "Value2":value2, "CmpValue":cmpValue, "CmpValue2":cmpValue2, "CmpValue3":cmpValue3,
+                       "GroupValue2":groupValue2}) 
+    GameWorld.GetPlayerManager().GameServer_QueryPlayerResult(0, 0, 0, "UpdateCrossBillboard", sendMsg, len(sendMsg))
+    GameWorld.DebugLog("同步GameServer跨服排行榜:bType=%s,groupValue1=%s,groupValue2=%s,cmpValue=%s, %s" 
+                       % (bType, groupValue1, groupValue2, cmpValue, sendMsg), dataID)
     return
 
 def UpdatePlayerFPTotalBillboard(curPlayer, isForceUpdate=False, isCheckRule=True):

--
Gitblit v1.8.0