|  |  |  | 
|---|
|  |  |  | isAllReady = True | 
|---|
|  |  |  | roomGroupIDList = [] | 
|---|
|  |  |  | readyMemberDict = {} # 已准备好的玩家信息 | 
|---|
|  |  |  | for roomPlayerID in vsRoom.roomPlayerIDList: | 
|---|
|  |  |  | for num, roomPlayerID in enumerate(vsRoom.roomPlayerIDList, 1): | 
|---|
|  |  |  | if roomPlayerID not in vsRoom.readyPlayerIDList or roomPlayerID not in PyGameData.g_crossPKPlayerDict: | 
|---|
|  |  |  | isAllReady = False | 
|---|
|  |  |  | break | 
|---|
|  |  |  | roomPlayer = PyGameData.g_crossPKPlayerDict[roomPlayerID] | 
|---|
|  |  |  | pkZoneID = roomPlayer.pkZoneID | 
|---|
|  |  |  | roomGroupIDList.append(roomPlayer.serverGroupID) | 
|---|
|  |  |  | readyMemberDict[roomPlayerID] = {"ServerGroupID":roomPlayer.serverGroupID, "Name":roomPlayer.playerName, | 
|---|
|  |  |  | readyMemberDict[roomPlayerID] = {"ServerGroupID":roomPlayer.serverGroupID, "Name":roomPlayer.playerName, "Number":num, | 
|---|
|  |  |  | "Job":roomPlayer.playerJob, "LV":roomPlayer.playerLV, "MaxHP":roomPlayer.maxHP} | 
|---|
|  |  |  |  | 
|---|
|  |  |  | if not isAllReady: | 
|---|
|  |  |  | 
|---|
|  |  |  | for playerID, playerInfo in readyMemberDict.items(): | 
|---|
|  |  |  | serverGroupID = playerInfo["ServerGroupID"] | 
|---|
|  |  |  | playerName = playerInfo["Name"] | 
|---|
|  |  |  | number = playerInfo["Number"] | 
|---|
|  |  |  |  | 
|---|
|  |  |  | if serverGroupID != curServerGroupID: | 
|---|
|  |  |  | GameWorld.DebugLog("    不是本服玩家,不处理!playerID=%s,serverGroupID=%s" % (playerID, serverGroupID)) | 
|---|
|  |  |  | 
|---|
|  |  |  | matchOKPack.RoomID = roomID | 
|---|
|  |  |  | matchOKPack.PlayerName = playerName | 
|---|
|  |  |  | matchOKPack.NameLen = len(matchOKPack.PlayerName) | 
|---|
|  |  |  | matchOKPack.Number = number | 
|---|
|  |  |  | matchOKPack.MatchPlayer = [matchPlayer] | 
|---|
|  |  |  | matchOKPack.MatchPlayerCount = len(matchOKPack.MatchPlayer) | 
|---|
|  |  |  | NetPackCommon.SendFakePack(player, matchOKPack) | 
|---|