| | |
| | | import PlayerXMZZ
|
| | | import PlayerTeam
|
| | | import PyGameData
|
| | | import ChPlayer
|
| | | #---------------------------------------------------------------------
|
| | |
|
| | | #---------------------------------------------------------------------
|
| | |
| | | # GameDataRecord.OnDayResetRecord()
|
| | | # 仙盟红包
|
| | | PlayerFamilyRedPacket.DoOnDay()
|
| | | |
| | | # 玩家等级记录更新
|
| | | ChPlayer.UpdataPlayerLVInfo()
|
| | | # 通知开服天数
|
| | | #openServerDay = PlayerDBGSEvent.GetDBGSTrig_ByKey(PlayerDBGSEvent.Def_ServerDay)
|
| | | #GameWorld.SendMapServerMsgEx(ShareDefine.Def_Notify_WorldKey_ServerDay, openServerDay)
|
| | | #清理过期补偿
|
| | | PlayerCompensation.ClearUpTimeOutCompensation()
|
| | | PlayerGeTui.ClearFMTGeTuiLimit()
|
| | | import PlayerBourse
|
| | | PlayerBourse.OverTimeItemsDeal()
|
| | | return
|
| | |
| | | __DoMixServerInit()
|
| | | #仙魔之争
|
| | | PlayerXMZZ.OnGameServerInitOK()
|
| | | #加载活跃玩家等级信息
|
| | | ChPlayer.LoadPlayerLVData()
|
| | | #世界boss被杀次数重置
|
| | | #GameWorldBoss.CheckResetBossKilledCntOnServerInit()
|
| | | #GameWorldActionTeHui.OnGameServerInitOK() # 特惠活动初始化
|
| | |
| | |
|
| | | def SendAllMapGlobalDropInfo():
|
| | | # 同步所有地图所有全服掉落控制信息
|
| | | globalDropCDDict = IpyGameDataPY.GetFuncEvalCfg("GlobalDropCD") # {物品ID:分钟, ...}
|
| | | globalDropCDDict = IpyGameDataPY.GetFuncEvalCfg("GlobalDropCD", 1) # {物品ID:分钟, ...}
|
| | | globalKilledCountDropDict = IpyGameDataPY.GetFuncEvalCfg("GlobalDropCD", 2) # 全服击杀次数必掉
|
| | | globalDropRateDict = IpyGameDataPY.GetFuncEvalCfg("NPCGlobalDropRate") # {物品ID:[[npcID列表], "概率公式"], ...}
|
| | |
|
| | | for itemID in globalDropCDDict.keys():
|
| | |
| | | killedCnt = PlayerDBGSEvent.GetDBGSTrig_ByKey(key)
|
| | | GameWorld.SendMapServerMsgEx(key, killedCnt)
|
| | |
|
| | | for npcID in globalKilledCountDropDict.keys():
|
| | | key = ShareDefine.Def_Notify_WorldKey_NPCKilledCount % npcID
|
| | | killedCnt = PlayerDBGSEvent.GetDBGSTrig_ByKey(key)
|
| | | GameWorld.SendMapServerMsgEx(key, killedCnt)
|
| | | return
|
| | |
|
| | | def UpdGlobalDropCD(msgList):
|
| | |
| | | ## 更新全局击杀次数换算掉落概率的物品所累计的击杀次数
|
| | | itemID, updKilledCnt = msgList
|
| | | key = ShareDefine.Def_Notify_WorldKey_DropNPCKilledCnt % itemID
|
| | | PlayerDBGSEvent.SetDBGSTrig_ByKey(key, updKilledCnt)
|
| | | GameWorld.SendMapServerMsgEx(key, updKilledCnt)
|
| | | return
|
| | |
|
| | | def UpdGlobalKillCount(msgList):
|
| | | ## 更新全局击杀次数
|
| | | npcID, updKilledCnt = msgList
|
| | | key = ShareDefine.Def_Notify_WorldKey_NPCKilledCount % npcID
|
| | | PlayerDBGSEvent.SetDBGSTrig_ByKey(key, updKilledCnt)
|
| | | GameWorld.SendMapServerMsgEx(key, updKilledCnt)
|
| | | return
|
| | |
| | | # @return None
|
| | | def BeforeClose(tick):
|
| | | PlayerTeam.OnServerClose(tick)
|
| | | ChPlayer.SavePlayerLVData()
|
| | | GameWorld.Log("通知C++关服!")
|
| | | GameWorld.GetGameWorld().OnServerClose()
|
| | |
|