| | |
| | | cnt += 1
|
| | | savaData += XMZZData.getBuffer()
|
| | |
|
| | | GameWorld.Log("SaveXMZZ cnt :%s" % cnt)
|
| | | GameWorld.Log("SaveXMZZ cnt :%s len=%s" % (cnt, len(savaData)))
|
| | | return CommFunc.WriteDWORD(cntData, cnt) + savaData
|
| | |
|
| | | # 从数据库载入数据
|
| | |
| | | if isByLVPower:
|
| | | worldLv = PlayerDBGSEvent.GetDBGSTrig_ByKey(ShareDefine.Def_Notify_WorldKey_WorldAverageLv)
|
| | | ipyData = IpyGameDataPY.GetIpyGameData('PlayerLV', worldLv)
|
| | | myPower = ipyData.GetReFightPower() if ipyData else curPlayer.GetFightPower() |
| | | myPower = ipyData.GetReFightPower() if ipyData else PlayerControl.GetFightPower(curPlayer) |
| | | else:
|
| | | myPower = curPlayer.GetFightPower()
|
| | | myPower = PlayerControl.GetFightPower(curPlayer)
|
| | | XMZZPKPowerRange = IpyGameDataPY.GetFuncEvalCfg('XMZZPKPowerRange')
|
| | | minPower1, maxPower1 = myPower * (100 - XMZZPKPowerRange[0][0]) / 100, myPower * (100 + XMZZPKPowerRange[0][1]) / 100
|
| | | minPower2, maxPower2 = myPower * (100 - XMZZPKPowerRange[1][0]) / 100, myPower * (100 + XMZZPKPowerRange[1][1]) / 100
|
| | |
| | | underList2, aboveList2 = [], [] #大范围
|
| | |
|
| | | pyViewCacheMgr = PyDataManager.GetPlayerViewCachePyManager()
|
| | | playerViewCachePyDict = pyViewCacheMgr.playerViewCachePyDict
|
| | | for playerID, curCache in playerViewCachePyDict.items():
|
| | | for index in range(pyViewCacheMgr.GetCount()):
|
| | | curCache = pyViewCacheMgr.At(index)
|
| | | playerID = curCache.PlayerID
|
| | | if myPlayerID == playerID:
|
| | | #不和自己pk
|
| | | continue
|
| | |
| | |
|
| | | #通知地图
|
| | | if not pkPlayerPropData:
|
| | | GameWorld.ErrLog("仙魔之争没有匹配到对手信息!fightPower=%s" % curPlayer.GetFightPower(), myPlayerID)
|
| | | GameWorld.ErrLog("仙魔之争没有匹配到对手信息!fightPower=%s" % PlayerControl.GetFightPower(curPlayer), myPlayerID)
|
| | | vsPlayerInfo = [pkPlayerID, pkPlayerPropData]
|
| | | XMZZManager.MapServer_XMZZPKInfo(curPlayer, overInfo, vsPlayerInfo)
|
| | | return True
|