| | |
| | | bData["UserData"] = kwargs["userData"]
|
| | | sendMsg = "%s" % (bData)
|
| | | GameWorld.GetPlayerManager().GameServer_QueryPlayerResult(0, 0, 0, "UpdateBillboard", sendMsg, len(sendMsg))
|
| | | GameWorld.DebugLog("同步GameServer排行榜:bType=%s,cmpValue=%s, %s" % (bType, cmpValue, sendMsg), bID)
|
| | | GameWorld.DebugLog("同步GameServer排行榜:bType=%s,cmpValue=%s,cmpValue2=%s %s" % (bType, cmpValue, cmpValue2, sendMsg), bID)
|
| | | return
|
| | |
|
| | | def UpdatePlayerCrossBillboard(curPlayer, bType, groupValue1, cmpValue, cmpValue2=0, cmpValue3=0, value1=0, value2=0,
|
| | |
| | |
|
| | | return True
|
| | |
|
| | | def __GetUpdFightPower(curPlayer, key, fightPower):
|
| | | ##获取更新排行榜的战力
|
| | | #暂定更新实际战力
|
| | | PlayerControl.NomalDictSetProperty(curPlayer, key, fightPower, ChConfig.Def_PDictType_FightPower)
|
| | | return fightPower
|
| | |
|
| | | def UpdateHorseBillboard(curPlayer, isForceUpdate=False, isUpdateTotal=True):
|
| | | ##更新玩家坐骑排行榜
|
| | |
|
| | | HorseFightPower = PlayerControl.GetMFPFightPower(curPlayer, ShareDefine.Def_MFPType_Horse)
|
| | | if not __CheckFightPowerCanUpdate(curPlayer, ChConfig.Def_PDict_FightPower_Horse,
|
| | | HorseFightPower, isForceUpdate):
|
| | | if not HorseFightPower:
|
| | | return
|
| | |
|
| | | HorseFightPower = __GetUpdFightPower(curPlayer, ChConfig.Def_PDict_FightPower_Horse, HorseFightPower)
|
| | | fightPower = HorseFightPower % ChConfig.Def_PerPointValue
|
| | | fightPowerEx = HorseFightPower / ChConfig.Def_PerPointValue
|
| | |
|
| | | UpdatePlayerBillboard(curPlayer, ShareDefine.Def_BT_FightPower_Horse, HorseFightPower)
|
| | | UpdatePlayerBillboard(curPlayer, ShareDefine.Def_BT_FightPower_Horse, fightPowerEx, fightPower)
|
| | |
|
| | | if isUpdateTotal:
|
| | | UpdatePlayerFPTotalBillboard(curPlayer, isForceUpdate)
|