hxp
2025-12-03 5ac407ea08e218f3638e67b37c9261b437393d34
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerEventCounter.py
@@ -85,6 +85,7 @@
import PlayerXiangong
import PlayerBillboard
import PlayerViewCache
import GameFuncComm
import PlayerMail
import PlayerHero
import PlayerTree
@@ -231,6 +232,10 @@
    playerID = curPlayer.GetPlayerID()
    GameWorld.Log("PlayerOnDay! ondayValue=%s" % (ondayValue), playerID)
    
    # 过天同步下时间、开服天
    ChPlayer.Sync_PyServerDataTimeToClient(curPlayer)
    ChPlayer.Sync_OpenServerDay(curPlayer)
    __DoPlayerOnDay(curPlayer, ShareDefine.Def_OnEventType)
    __DoPlayerOnDay(curPlayer, ShareDefine.Def_OnEventTypeEx)
    
@@ -244,7 +249,7 @@
    
    # 常规过天
    if onEventType == ShareDefine.Def_OnEventType:
        GameFuncComm.DoFuncOpenLogic(curPlayer)
        #清空每日事件奖励
        curPlayer.SetDayProcessGameEventCount(0)
        
@@ -988,16 +993,6 @@
        
        if key == ShareDefine.Def_Notify_WorldKey_CrossZoneName:
            PyGameData.g_crossZoneName = msgValue
            return
        if key == ShareDefine.Def_Notify_WorldKey_CrossServerTime:
            PyGameData.g_crossServerTimeInfo = eval(msgValue)
            playerManager = GameWorld.GetPlayerManager()
            for index in xrange(playerManager.GetPlayerCount()):
                curPlayer = playerManager.GetPlayerByIndex(index)
                if not GameWorld.IsNormalPlayer(curPlayer):
                    continue
                ChPlayer.Sync_PyServerDataTimeToClient(curPlayer)
            return
        
        # 幸运云购