| | |
| | | GameWorld.DebugLog("同步跨服服务器PK结算: %s" % str(dataMsg), playerID)
|
| | | return
|
| | |
|
| | | def GMSetPlayerCrossPKData(curPlayer, danLV, pkScore, cWinCount=None, resultDict=None):
|
| | | def GMSetPlayerCrossPKData(curPlayer, danLV, pkScore, cWinCount=None, resultDict=None, zoneID=0, seasonID=0):
|
| | | ## GM设置玩家跨服PK数据,一般用于测试或修复外网数据
|
| | | if not zoneID or not seasonID:
|
| | | zoneID = GameWorld.GetGameWorld().GetGameWorldDictByKey(ShareDefine.Def_Notify_WorldKey_CrossPKZoneID)
|
| | | seasonID = GameWorld.GetGameWorld().GetGameWorldDictByKey(ShareDefine.Def_Notify_WorldKey_CrossPKSeasonID)
|
| | | seasonState = GameWorld.GetGameWorld().GetGameWorldDictByKey(ShareDefine.Def_Notify_WorldKey_CrossPKSeasonState)
|
| | |
|
| | | errorMsg = ""
|
| | | playerInfoDict = {}
|
| | | if not zoneID or not seasonID or seasonState == 2:
|
| | | if not zoneID or not seasonID:
|
| | | errorMsg = "zone season or state error."
|
| | | else:
|
| | | PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_CrossPK_DanLV, danLV)
|
| | |
| | | SyncCrossRealmPKPlayerInfo(curPlayer)
|
| | |
|
| | | if resultDict:
|
| | | resultDict.update({"zoneID":zoneID, "seasonID":seasonID, "seasonState":seasonState, "errorMsg":errorMsg, "PlayerInfo":playerInfoDict})
|
| | | resultDict.update({"zoneID":zoneID, "seasonID":seasonID, "errorMsg":errorMsg, "PlayerInfo":playerInfoDict})
|
| | | return errorMsg
|
| | |
|
| | | #// C1 02 跨服PK购买次数 #tagCMCrossRealmPKBuy
|