| | |
| | | #import MergeBroadcast
|
| | | #import GameWorldMixServerCampaign
|
| | | #import GameWorldMergeKing
|
| | | #import GameWorldMergePK
|
| | | #import PlayerManorWar
|
| | | import GameWorldBoss
|
| | | #import GameWorldActionTeHui
|
| | |
| | | import ReadChConfig
|
| | | import EventReport
|
| | | #import ReloadModule
|
| | | import MergeChildMsg
|
| | | import CrossRealmMsg
|
| | | import CrossRealmPK
|
| | | #import MergePlayer
|
| | | import PlayerFBHelpBattle
|
| | | import PlayerFamilyRedPacket
|
| | |
| | | #__ClearTreasureDropCount()
|
| | | #记录当前时间
|
| | | GameLogInfo.Set_Server_Hour()
|
| | | |
| | | PlayerFamily.FamilyOnHour()
|
| | | return
|
| | |
|
| | | ## 触发每日事件(参数 -> 当前时间)
|
| | |
| | | #跨服广播
|
| | | #MergeBroadcast.OnBroadcastProccee(tick)
|
| | | #跨服PK匹配
|
| | | #GameWorldMergePK.OnPKMatchProcess(tick)
|
| | | CrossRealmPK.OnPKMatchProcess(tick)
|
| | | #跨服王者争霸
|
| | | #GameWorldMergeKing.OnMergeKingProcess(tick)
|
| | |
|
| | |
| | | GameWorldAverageLv.OpenWorldAverageLv()
|
| | | #倒计时离队处理
|
| | | PlayerTeam.DoCountdownLeaveTeamLogic(tick)
|
| | | |
| | | #副本助战
|
| | | PlayerFBHelpBattle.OnMinuteProcess()
|
| | | #每5分钟触发一次仙盟总战力更新
|
| | | if curMinute % 5 == 0:
|
| | | PlayerFamily.UpdFamilyTotalFightPower()
|
| | |
| | | #GameWorldBoss.CheckResetBossKilledCntOnServerInit()
|
| | | #GameWorldActionTeHui.OnGameServerInitOK() # 特惠活动初始化
|
| | | #子服启动成功告知跨服主服
|
| | | #===========================================================================
|
| | | # serverGroupID = GameWorld.GetServerGroupID()
|
| | | # if GameWorld.IsMergeOpen() and not GameWorld.IsMergeServer():
|
| | | # GameWorld.Log("通知跨服主服务器启动成功, 可接收最新跨服活动状态及数据...")
|
| | | # dataMsg = {"Platform":GameWorld.GetPlatform(), "ServerID":GameWorld.GetServerSID(), "ServerGroupID":serverGroupID}
|
| | | # MergeChildMsg.SendMergerChildToCenterStringData(ChConfig.Def_ClientServerInitOK, dataMsg)
|
| | | # |
| | | # GameWorld.Log("服务器启动成功: ServerGroupID=%s" % serverGroupID)
|
| | | #===========================================================================
|
| | | serverGroupID = GameWorld.GetServerGroupID()
|
| | | if GameWorld.IsCrossRealmOpen() and not GameWorld.IsCrossServer():
|
| | | GameWorld.Log("通知跨服主服务器启动成功, 可接收最新跨服活动状态及数据...")
|
| | | dataMsg = {"ServerGroupID":serverGroupID}
|
| | | CrossRealmMsg.SendMsgToCrossServer(ShareDefine.ClientServerMsg_ServerInitOK, dataMsg)
|
| | | |
| | | GameWorld.Log("服务器启动成功: ServerGroupID=%s" % serverGroupID)
|
| | | return
|
| | |
|
| | | def DoCheckNewServerOpen(tick):
|