| | |
| | | danLV = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_CrossPK_DanLV)
|
| | | cWinCount = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_CrossPK_CWinCount)
|
| | |
|
| | | if GameWorld.GetGameWorld().GetGameWorldDictByKey(ShareDefine.Def_Notify_WorldKey_CrossPKSeasonState) != 1:
|
| | | GameWorld.Log("OnCrossRealmPKRobotOver 跨服赛季未开启,不可进行机器人结算!", playerID)
|
| | | overPack = ChPyNetSendPack.tagGCCrossRealmPKOverInfo()
|
| | | overPack.AddScore = 0
|
| | | overPack.Score = pkScore
|
| | | overPack.DanLV = danLV
|
| | | overPack.CWinCnt = cWinCount
|
| | | NetPackCommon.SendFakePack(curPlayer, overPack)
|
| | | return
|
| | | |
| | | ondayScore = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_CrossPK_OnDayScore)
|
| | | dayScore = max(0, pkScore - ondayScore) # 今日已获得积分,正积分
|
| | |
|
| | |
| | | overPack.CWinCnt = cWinCount
|
| | | NetPackCommon.SendFakePack(curPlayer, overPack)
|
| | |
|
| | | # 通知跨服更新榜单积分数据
|
| | | # 如果能上榜的,则通知跨服更新榜单积分数据
|
| | | billboardCfg = IpyGameDataPY.GetFuncEvalCfg("CrossRealmPKCfg", 1, [])
|
| | | if billboardCfg and len(billboardCfg) > 1 or danLV >= billboardCfg[1]:
|
| | | pass
|
| | | # dataMsg = {
|
| | | # "seasonID":seasonID,
|
| | | # "pkZoneID":zoneID,
|
| | | # "accID":curPlayer.GetAccID(),
|
| | | # "playerID":playerID,
|
| | | # "playerName":CrossRealmPlayer.GetCrossPlayerName(curPlayer),
|
| | | # "playerJob":curPlayer.GetJob(),
|
| | | # "playerLV":curPlayer.GetLV(),
|
| | | # "maxHP":curPlayer.GetMaxHP(),
|
| | | # "maxProDef":PlayerControl.GetMaxProDef(curPlayer),
|
| | | # "fightPower":curPlayer.GetFightPower(),
|
| | | # "realmLV":curPlayer.GetOfficialRank(),
|
| | | # "pkScore":pkScore,
|
| | | # "danLV":danLV,
|
| | | # "cWinCount":cWinCount,
|
| | | # "ondayScore":curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_CrossPK_OnDayScore), # 过天时的积分
|
| | | # }
|
| | | # GameWorld.SendMsgToCrossServer(ShareDefine.ClientServerMsg_PKMatch, dataMsg)
|
| | | # GameWorld.Log(" 更新积分到跨服服务器 dataMsg=%s" % str(dataMsg), playerID)
|
| | | dataMsg = {
|
| | | "seasonID":seasonID,
|
| | | "pkZoneID":zoneID,
|
| | | "accID":curPlayer.GetAccID(),
|
| | | "playerID":playerID,
|
| | | "playerName":CrossRealmPlayer.GetCrossPlayerName(curPlayer),
|
| | | "playerJob":curPlayer.GetJob(),
|
| | | "fightPower":curPlayer.GetFightPower(),
|
| | | "realmLV":curPlayer.GetOfficialRank(),
|
| | | "pkScore":pkScore,
|
| | | "danLV":danLV,
|
| | | }
|
| | | GameWorld.SendMsgToCrossServer(ShareDefine.ClientServerMsg_PKScore, dataMsg)
|
| | | GameWorld.Log(" 更新积分到跨服服务器 dataMsg=%s" % str(dataMsg), playerID)
|
| | |
|
| | | return
|
| | |
|