| | |
| | | import ChConfig
|
| | | import PlayerControl
|
| | | import OpenServerCampaign
|
| | | import CrossRealmPlayer
|
| | | import GameFuncComm
|
| | | import EventReport
|
| | |
|
| | |
| | | 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):
|