From 79a0b7a92d3dfbcc326fd9465b70f05cc3cbdf92 Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期五, 15 十一月 2024 18:11:55 +0800 Subject: [PATCH] 1111 修改同步跨服缓存数据条件(50级以内不同步) --- ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerEventCounter.py | 35 ++++++++++++++++++++++++++++++++++- 1 files changed, 34 insertions(+), 1 deletions(-) diff --git a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerEventCounter.py b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerEventCounter.py index 28cf71e..b973b9a 100644 --- a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerEventCounter.py +++ b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerEventCounter.py @@ -28,8 +28,15 @@ import PlayerFBHelpBattle import PlayerFairyDomain import ChPyNetSendPack +import GameWorldArena import NetPackCommon import PlayerDuJie +import PlayerCharm +import CrossBattlefield +import CrossFamilyFlagwar +import CrossChampionship +import CrossYaomoBoss +import GameWorldMineArea #--------------------------------------------------------------------- #--------------------------------------------------------------------- @@ -56,8 +63,14 @@ if isMixServer: PlayerDBGSEvent.SetDBGSTrig_ServerTime(PlayerDBGSEvent.Def_MixServerDay) + #魅力 + PlayerCharm.DoOnDay() #家族更新 PlayerFamily.FamilyOnDay(tick) + #跨服排位 + CrossChampionship.DoOnDay() + #跨服妖魔boss + CrossYaomoBoss.DoOnDay() playerManager = GameWorld.GetPlayerManager() for i in xrange(playerManager.GetPlayerCount()): @@ -73,14 +86,24 @@ return def DoLogic_GameServer_OnDayEx(tick): + #仙盟 + PlayerFamily.FamilyOnDayEx(tick) #渡劫OnDay PlayerDuJie.OnDayEx() #副本助战 PlayerFBHelpBattle.HelpBattleOnDay() #玩家缓存 - PlayerViewCache.DelOutofTimeViewCacheData() + PlayerViewCache.DoOnDayEx() #缥缈OnDay PlayerFairyDomain.OnDayEx() + #竞技场 + GameWorldArena.OnDayEx() + #跨服战场 + CrossBattlefield.DoOnDayEx() + #跨服排位 + CrossChampionship.DoOnDayEx() + #福地 + GameWorldMineArea.DoOnDayEx() playerManager = GameWorld.GetPlayerManager() for i in xrange(playerManager.GetPlayerCount()): curPlayer = playerManager.GetPlayerByIndex(i) @@ -100,6 +123,8 @@ #设定服务器当前周事件 PlayerDBGSEvent.SetDBGSTrig_ServerTime(PlayerDBGSEvent.Def_ServerWeek) + #魅力 + PlayerCharm.DoOnWeek() #家族更新 PlayerFamily.FamilyOnWeek(tick) @@ -115,6 +140,13 @@ return def DoLogic_GameServer_OnWeekEx(tick): + + # 竞技场 + GameWorldArena.OnWeekEx() + # 跨服战场 + CrossBattlefield.DoOnWeekEx() + # 逐鹿万界 + CrossFamilyFlagwar.DoOnWeekEx() playerManager = GameWorld.GetPlayerManager() for i in xrange(playerManager.GetPlayerCount()): @@ -301,6 +333,7 @@ packData.NowMinute = serverTime.minute packData.NowSecond = serverTime.second packData.NowMicSecond = serverTime.microsecond + packData.WeekOfYear = GameWorld.GetWeekOfYear() NetPackCommon.SendFakePack(curPlayer, packData) return -- Gitblit v1.8.0