hxp
2022-08-11 8a5cd920235eefda418bba0e949ba522cab72a4c
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerCrossBattlefield.py
@@ -64,6 +64,7 @@
#    BYTE    Hour;        //战场开启时
#    BYTE    Minute;        //战场开启分
#    BYTE    Faction;        //阵营 1-红;2-蓝
#    BYTE    ServerOnly;    //是否仅本服玩家可加入,0-否,1-是
#};
def OnCrossBattlefieldBuyOpen(index, clientData, tick):
    curPlayer = GameWorld.GetPlayerManager().GetPlayerByIndex(index)
@@ -71,6 +72,7 @@
    hour = clientData.Hour
    minute = clientData.Minute
    faction = clientData.Faction
    serverOnly = clientData.ServerOnly
    
    if GameWorld.IsCrossServer():
        GameWorld.DebugLog("跨服服务器无法发起匹配!", playerID)
@@ -124,6 +126,7 @@
        return
    
    dataMsg = {"openHour":hour, "openMinute":minute, "faction":faction, "todayBuyOpenCount":todayBuyOpenCount,
               "serverOnly":serverOnly,
               "accID":curPlayer.GetAccID(),
               "playerID":playerID,
               "playerName":CrossRealmPlayer.GetCrossPlayerName(curPlayer),