From 25d85f98970d10a5489256c5066840530c04d20c Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期一, 23 五月 2022 17:01:56 +0800 Subject: [PATCH] 9415 【BT】【后端】古神战场(召集队伍可设置是否仅召集本服玩家) --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerCrossBattlefield.py | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerCrossBattlefield.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerCrossBattlefield.py index 0f4320d..5de75dc 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerCrossBattlefield.py +++ b/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), -- Gitblit v1.8.0