From 2638c8b67d1dcac1c774f942ac144579c6f82ec1 Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期二, 11 九月 2018 21:41:11 +0800 Subject: [PATCH] 3479 【后端】【主干】【1.0.15】助战发送喊话时新增逻辑(自动加入匹配中的队伍); --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py | 20 ++++++++++++++++---- 1 files changed, 16 insertions(+), 4 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py index f70bbfa..d7caf38 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py @@ -108,6 +108,7 @@ import PlayerSpringSale import PlayerFairyCeremony import ChNetSendPack +import FamilyRobBoss import PyGameData import PlayerCoin import PlayerGeTui @@ -537,11 +538,13 @@ SyncPackDownloadAward(curPlayer) # 登录触发功能开启(老号处理) GameFuncComm.DoFuncOpenLogic(curPlayer) - # 神兽 + # 神兽 PlayerDogz.OnPlayerLogin(curPlayer) - # 神兽副本 + # 神兽副本 GameLogic_Dogz.SyncNPCRefreshTime(curPlayer.GetID()) - + # 骑宠 + FamilyRobBoss.OnPlayerLogin(curPlayer) + # 上线查询一次充值订单 curPlayer.SendDBQueryRecharge() @@ -1846,6 +1849,7 @@ curMap = GameWorld.GetMap() #校验客户端时间 if not PlayerControl.PlayerMoveCheckClientWorldTick(curPlayer, clientWorldTick, client_StartX, client_StartY): + curPlayer.Sync_ClientTick() return #移动点检查 @@ -3479,8 +3483,14 @@ return mapID = curPlayer.GetMapID() + + activityLineID = 0 # 活动线, 默认1线 + activityMapLineDict = IpyGameDataPY.GetFuncEvalCfg("MapLine", 2, {}) + if mapID in activityMapLineDict: + activityLineID = max(0, activityMapLineDict[mapID] - 1) + mapLineDict = IpyGameDataPY.GetFuncEvalCfg("MapLine", 1) - if mapID in mapLineDict and changLineID >= mapLineDict[mapID]: + if changLineID != activityLineID and mapID in mapLineDict and changLineID >= mapLineDict[mapID]: GameWorld.ErrLog("该地图没有开放此线路,无法手动切换!mapID=%s,changLineID=%s,maxLine=%s" % (mapID, changLineID, mapLineDict[mapID]), curPlayer.GetID()) return @@ -3663,6 +3673,7 @@ rebornTime = GetRebronTime(curPlayer, playerRebornType) #冷却时间到了 if not CanRebornByTimeOver(curPlayer, rebornTime): + PlayerControl.NotifyCode(curPlayer, 'RebornCD') return False isFBReborn = False @@ -5408,6 +5419,7 @@ #校验客户端时间 if not PlayerControl.PlayerMoveCheckClientWorldTick(curPlayer, sendPack_WorldTick, sendPack_SeverPosX, sendPack_SeverPosY): + curPlayer.Sync_ClientTick() return False dist = GameWorld.GetDist(curPlayer.GetPosX(), curPlayer.GetPosY(), sendPack_SeverPosX, sendPack_SeverPosY) -- Gitblit v1.8.0