| | |
| | | seasonStatePack.SeasonID = gameWorld.GetDictByKey(ShareDefine.Def_Notify_WorldKey_CrossPKSeasonID)
|
| | | seasonStatePack.SeasonState = gameWorld.GetDictByKey(ShareDefine.Def_Notify_WorldKey_CrossPKSeasonState)
|
| | | seasonStatePack.MatchState = gameWorld.GetDictByKey(ShareDefine.Def_Notify_WorldKey_CrossDailyActionState % ShareDefine.DailyActionID_CrossReamPK)
|
| | | seasonStatePack.CrossZoneName = GameWorld.GetCrossZoneName()
|
| | | seasonStatePack.CrossZoneNameLen = len(seasonStatePack.CrossZoneName)
|
| | | NetPackCommon.SendFakePack(curPlayer, seasonStatePack)
|
| | |
|
| | | return
|
| | |
| | | GameWorld.Log(" zoneID=%s,seasonID=%s,seasonState=%s,matchState=%s" % (zoneID, seasonID, seasonState, matchState))
|
| | | if not zoneID:
|
| | | return
|
| | | |
| | | if not seasonID:
|
| | | dbSeasonID = PlayerDBGSEvent.GetDBGSTrig_ByKey(ShareDefine.Def_Notify_WorldKey_CrossPKSeasonID)
|
| | | if dbSeasonID:
|
| | | GameWorld.ErrLog(" 已经有分配赛季ID的暂定不能被置为0! dbSeasonID=%s" % dbSeasonID)
|
| | | return
|
| | | |
| | | gameWorld = GameWorld.GetGameWorld()
|
| | | curSeasonState = gameWorld.GetDictByKey(ShareDefine.Def_Notify_WorldKey_CrossPKSeasonState)
|
| | |
|
| | |
| | | seasonStatePack.SeasonID = seasonID
|
| | | seasonStatePack.SeasonState = seasonState
|
| | | seasonStatePack.MatchState = matchState
|
| | | seasonStatePack.CrossZoneName = GameWorld.GetCrossZoneName()
|
| | | seasonStatePack.CrossZoneNameLen = len(seasonStatePack.CrossZoneName)
|
| | | playerManager = GameWorld.GetPlayerManager()
|
| | | for i in xrange(playerManager.GetPlayerCount()):
|
| | | curPlayer = playerManager.GetPlayerByIndex(i)
|
| | |
| | |
|
| | | sendMapOverInfo = [roomID, zoneID, seasonID, timeStr, overType, winnerID, roundWinnerIDList, pkScore, danLV, cWinCount, addScore, tagPlayerID, tagPlayerName, notifyState]
|
| | | player = GameWorld.GetPlayerManager().FindPlayerByID(playerID)
|
| | | if not player:
|
| | | CrossRealmPlayer.DoOfflinePlayerExitCrossServer(playerID)
|
| | | if not player or PlayerControl.GetIsTJG(player):
|
| | | GameWorld.DebugLog(" 玩家不在线 或脱机中,先缓存,玩家上线后再同步,playerID=%s" % (playerID))
|
| | | overInfoData = PyGameDataStruct.tagDBCrossPKUnNotifyOverInfo()
|