From c67a2d59e881e3d1df1a4142983e76e8fb5db24a Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期五, 28 十二月 2018 21:26:28 +0800 Subject: [PATCH] 5424 【后端】【1.4】跨服竞技场开发(匹配规则优化,优先匹配同段位的,同段位不足两个人的支持按段位区间匹配) --- ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerControl.py | 21 +++++---------------- 1 files changed, 5 insertions(+), 16 deletions(-) diff --git a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerControl.py b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerControl.py index 915349e..6215b85 100644 --- a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerControl.py +++ b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerControl.py @@ -29,7 +29,6 @@ #--------------------------------------------------------------------- import GameWorld import IPY_GameServer -import MergeBroadcast import IpyGameDataPY import CrossRealmMsg import ShareDefine @@ -82,7 +81,7 @@ GameWorld.GetPlayerManager().CountryNotifyCode(country, msgMark, __GetNotifyCodeList(msgParamList)) notifyDict = {"country":country, "msgMark":msgMark, "msgParamList":msgParamList, "lineID":lineID, "mergeMinOSD":mergeMinOSD, "mergeMaxOSD":mergeMaxOSD, "mergeMapInfo":mergeMapInfo} - MergeBroadcast.SendBroadcastMerge(ChConfig.Def_MergeWorldNotify, 0, notifyDict, False) + #.SendBroadcastMerge(ChConfig.Def_MergeWorldNotify, 0, notifyDict, False) return ## 世界广播 @@ -92,7 +91,7 @@ # @return 无返回值 # @remarks def WorldNotify(country, msgMark, msgParamList=[]): - if GameWorld.IsMergeServer(): + if GameWorld.IsCrossServer(): MergeWorldNotify(country, msgMark, msgParamList) else: GameWorld.GetPlayerManager().CountryNotifyCode(country, msgMark, __GetNotifyCodeList(msgParamList)) @@ -188,19 +187,6 @@ #------------------------------------------------------------------------------ -## 设置玩家跨服预赛排位 -# @param curPlayer: 玩家实例 -# @param value: 威望值 -# @return: -def SetMergeWarRank(curPlayer, value): - return - - -## 获取玩家跨服预赛排位 -# @param curPlayer: 玩家实例 -# @return: 威望值 -def GetMergeWarRank(curPlayer): - return 0 ## 职业阶数 def GetJobRank(curPlayer): return curPlayer.GetExAttr1() @@ -243,6 +229,9 @@ return def GetLeaveFamilyTime(curPlayer):return curPlayer.GetExAttr12() +## 玩家所属服务器组ID +def GetPlayerServerGroupID(curPlayer): return curPlayer.GetExAttr13() + ## 是否脱机挂机状态 def GetIsTJG(curPlayer): if curPlayer.GetDictByKey(ChConfig.Def_OnlineType): -- Gitblit v1.8.0