hwj35
2025-06-23 aa0f971ae9a59f0fd98d57b6c1d1663a270be92c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
—«ãgc@sddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z ddl Z ddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddl Z ddl!Z!ddl"Z"ddl#Z#ddl$Z$ddl%Z%ddl&Z&ddl'Z'ddl(Z(ddl)Z)ddl*Z*ddl+Z+ddl,Z,ddl-Z-ddl.Z.ddl/Z/ddl0Z0ddl1Z1ddl2Z2ddl3Z3ddl4Z4ddl5Z5ddl6Z6ddl7Z7ddl8Z8ddl9Z9ddl:Z:ddl;Z;ddl<Z<ddl=Z=ddl>Z>ddl?Z?ddl@Z@ddlAZAddlBZBddlCZCddlDZDddlEZEddlFZFddlGZGddlHZHddlIZIddlJZJddlKZKddlLZLddlMZMddlNZNddlOZOddlPZPddlQZQddlRZRddlSZSddlTZTddlUZUddlVZVddlWZWddlXZXddlYZYddlZZZddl[Z[ddl\Z\ddl]Z]ddl^Z^ddl_Z_ddl`Z`ddlaZaddlbZbddlcZcddldZdddleZeddlfZfddlgZgddlhZhddliZiddljZjddlkZkddllZlddlmZmddlnZnddloZoddlpZpddlqZqddlrZrddlsZsd„Ztd„Zud„Zvd„Zwd„Zxd„Zyd„Zzd    „Z{d
„Z|d „Z}d „Z~d „Zd„Z€d„Zd„Z‚d„Zƒd„Z„d„Z…d„Z†d„Z‡d„Zˆd„Z‰d„ZŠd„Z‹d„ZŒd„Zd„ZŽd„Zd„Zd„Z‘d „Z’d!„Z“d"„Z”d#„Z•d$„Z–d%„Z—d&„Z˜d'„Z™d(„Zšd)„Z›d*„Zœd+„Zd,„Zžd-„ZŸd.„Z d/„Z¡dS(0iÿÿÿÿNcCs$tjtƒ||ƒt|ƒdS(N(t    GameWorldt GetPsycoFunct__Func_GameServer_OnDaytCheckMachineTick(tindexttick((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pytGameServer_OnDay¦s
cCsKtjƒjƒdkrdS|dddddkrGtdƒ‚ndS(Nieg@@i<iisStart PC > 22 days!!!(RtGetMaptGetMapIDt    Exception(R((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pyR®s
cCsÁtjdƒtjƒ}tjƒ}t|jƒƒ|jƒtj    ƒt
j |ƒtj ƒj ƒ}|jƒxHt|jƒƒD]4}|j|ƒ}tj|ƒs¯q…nt|ƒq…WdS(NsMapServer -> OnDay!(RtLogtGetPlayerManagert IPY_GameWorldt
IPY_MOnDaytSetMapServerTimeFromGameServertGetTimetProcessAllPlayerMailOnDayt GameLogInfotClearGameLogInfotFBLogictOnDayt GetGameWorldtGetDBMissionPubManagertCleartxrangetGetPlayerCounttGetPlayerByIndextIsNormalPlayert PlayerOnDay(RRt playerManagertpacktmissionPubManagertit    curPlayer((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pyR¾s   
 
 
cCsutjdƒtj|ƒtjƒ}xHt|jƒƒD]4}|j|ƒ}tj|ƒscq9nt    |ƒq9WdS(NsMapServer -> OnDayEx!(
RR
t PlayerControlt"RemoveTimeoutLeaveServerPlayerInfoR RRRRt PlayerOnDayEx(RRR R!((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pyt__Func_GameServer_OnDayExÞs   cCstjtƒ||ƒdS(N(RRt__Func_GameServer_OnHour(RR((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pytGameServer_OnHourÿscCsštjdƒtjƒ}|jƒ}t|ƒtj||ƒtjƒ}xHt    |j
ƒƒD]4}|j |ƒ}tj |ƒsˆq^nt |ƒq^WdS(NsMapServer -> OnHour!(RR
R t IPY_MOnHourRRRtOnHourR RRRRt PlayerOnHour(RRRttimeRR R!((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pyR&s   
 cCstjtƒ||ƒdS(N(RRt__Func_GameServer_OnWeek(RR((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pytGameServer_OnWeek1scCs‘tjdƒtjƒ}t|jƒƒtjƒ}xHt|jƒƒD]4}|j    |ƒ}tj
|ƒsrqHnt |ƒqHWt j |ƒdS(NsMapServer -> OnWeek!(RR
R t IPY_MOnWeekRRR RRRRt PlayerOnWeekRtOnWeek(RRRRR R!((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pyR,:s    cCshtjdƒtjƒ}xHt|jƒƒD]4}|j|ƒ}tj|ƒsVq,nt|ƒq,WdS(NsMapServer -> OnWeekEx!(RR
R RRRRtPlayerOnWeekEx(RRR R!((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pyt__Func_GameServer_OnWeekExNs  cCstjtƒ||ƒdS(N(RRt__Func_GameServer_OnMonth(RR((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pytGameServer_OnMonthnscCs„tjdƒtjƒ}t|jƒƒtjƒ}xHt|jƒƒD]4}|j    |ƒ}tj
|ƒsrqHnt |ƒqHWdS(NsMapServer -> OnMonth!( RR
R t IPY_MOnMonthRRR RRRRt PlayerOnMonth(RRRRR R!((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pyR3ws   cCshtjdƒtjƒ}xHt|jƒƒD]4}|j|ƒ}tj|ƒsVq,nt|ƒq,WdS(NsMapServer -> OnMonthEx!(RR
R RRRRtPlayerOnMonthEx(RRR R!((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pyt__Func_GameServer_OnMonthEx‰s  cCstjtƒ||ƒdS(N(RRt__Func_GameServer_OnYear(RR((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pytGameServer_OnYear©scCs‡tjdƒtjƒ}t|jƒƒtjƒ}xKtd|jƒƒD]4}|j    |ƒ}tj
|ƒsuqKnt |ƒqKWdS(NsMapServer -> OnYeari( RR
R t IPY_MOnYearRRR trangeRRRt PlayerOnYear(RRRRR R!((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pyR9²s   cCstjƒj|ƒdS(N(RRtSetGameServerEventTime(R+((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pyRÈscCsttjƒj|ƒ}y|jƒtj||ƒWn:|jtjƒddl    }tj
d|j ƒƒnXdS(NiÿÿÿÿsÍæ¼ÒÉÏÏßÂß¼­´íÎó
%s( RR RtSendToBServerServerInitOKtChPlayertOnAllServerInitOKtKickR tdisWaitForPlayerLoinErrort    tracebacktRaiseExceptiont
format_exc(RRR!RD((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pytGameServer_InitOKÒs
 cCs|jƒs tj|dƒdSt|ƒ}|s6dStj|tj|ƒ|jƒ}t    j
d||ƒt |t j ƒt    j
d|ƒdS(NisPlayerOnDay! ondayValue=%ssPlayerOnDay OK!(tGetGameServerInitOKtGameServerRefresht Set_PlayerGameServerInitOK_OnDayt__Get_Can_OnDayR"tNomalDictSetPropertytChConfigtDef_PDict_OnDayt GetPlayerIDRR
t__DoPlayerOnDayt ShareDefinetDef_OnEventType(R!t
ondayValuetplayerID((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pyRßs   cCs|jƒs tj|dƒdSt|ƒ}|s6dStj|tj|ƒ|jƒ}t    j
d||ƒt |t j ƒt    j
d|ƒdS(NisPlayerOnDayEx! ondayValue=%ssPlayerOnDayEx OK!(RHRIt"Set_PlayerGameServerInitOK_OnDayExt__Get_Can_OnDayExR"RLRMtDef_PDict_OnDayExRORR
RPRQtDef_OnEventTypeEx(R!RSRT((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pyR$ñs   cCs tjƒrdS|tjkr\tj|ƒ|jdƒtj|ƒt    j
|ƒt j |ƒt j|ƒtj|ƒtj|ƒtj|ƒtj|ƒtj|ƒtj|ƒtj|ƒtj|ƒtj|ƒtj|ƒtj|ƒtj|ƒt j!|ƒt"j#|ƒt$j!|ƒt%j&|ƒ|j't(j)ƒ}|r„t%j*|t(j)dƒt+j,|t(j-dƒn|j't(j.ƒ}|rËt%j*|t(j.dƒt+j,|t(j/dƒn|j't(j0ƒ}|rt%j*|t(j0dƒt+j,|t(j1dƒn|j't(j2ƒ}|rrt%j*|t(j2dƒt+j,|t(j3dƒqrn|tj4krrt5j6|ƒt7j8|ƒt9j!|ƒt:j|ƒt;j|ƒt<j=|ƒt>j?|ƒt@j|ƒtAj!|ƒtBj#|ƒtCj#|ƒtDj#|ƒtEj#|ƒtFj|ƒtGjH|ƒtIjJ|ƒtKj#|ƒtLj!|ƒtMj!|ƒtNjO|ƒntPjQ||ƒtRj||ƒtSjT||ƒtUjV||ƒtWj|ƒtXj||ƒtYj!||ƒtZj|ƒt[j|ƒt\j||ƒdS(Ni(]Rt IsCrossServerRQRRtOpenServerCampaigntOnOpenServerCampaignDaytSetDayProcessGameEventCountt    PlayerPettDoLogic_PetInfo_OnDaytPlayerGameWallowtRevertHealthGame_OnDaytPlayerOnlinePrizetResetPrizeInfoOnDayt PlayerSignDayt SignDayOnDaytPlayerLoginDayAwardtNotePlayerLoginDayCntt    PlayerViptVipOnDayt
PlayerCoinRt PlayerSuccesst    SuccOnDaytPlayerNewGuyCardtNewGuyCardOndaytPlayerGoldInvesttPlayerZhanlingtPlayerTreasuretPlayerMagicWeapontPlayerGoldGifttPlayerRefineStovetPlayerBindJadeWheeltPlayerActTurntableRt
PlayerLovet DoPlayerOnDaytPlayerXiangongR"t PayCoinOnDaytNomalDictGetPropertyRMtDef_PDict_GameNoticeAwardStateRLR@tSync_RewardGetRecordInfotDef_RewardType_GameNoticetDef_PDict_ShareGameAwardStatetDef_RewardType_ShareGametDef_PDict_OpenSererDailyAwardt#Def_RewardType_OpenServerDailyAwardtDef_PDict_RechargeDayAwardtDef_RewardType_RechargeDayAwardRXt PlayerRecovert RecoverOnDayt
EventShelltEventResponse_OnDaytOperate_PlayerBuyZhenQit PlayerDiceExt BossHurtMngt PlayerFamilytFamilyPlayerOnDaytChItemtResetItemUseCntTodaytPlayerFreeGoodst    NPCCommont FBHelpBattletPlayerCrossRealmPKtPlayerCrossChampionshiptPlayerCrossBattlefieldtPlayerFairyDomaintGameLogic_FamilyPartytOnDayFamilyPartyPlayert PlayerArenatOnDayExt PlayerAssisttPlayerMineAreat PlayerGuajitCrossPlayerDatatSendMergePlayerDataNowtFBCommontFBOnDaytPlayerActivitytFunctionNPCCommont ShopItemOnDaytPlayerFamilyRedPackettRedPacketOnDaytPlayerWishingWelltPlayerTongTianLingtPlayerActBossTrialt PlayerActTasktPlayerActLoginNewtPlayerActBuyCountGift(R!t onEventTypetgameNoticeAwardStatetshareGameAwardStatet
awardState((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pyRPs’                                             cCs$|j|jƒƒ|jdƒdS(Ni(tSetLastWeekOnlineTimetGetWeekOnlineTimetSetWeekOnlineTime(R!((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pytCalcWeekOnlineTime§s cCsdS(N((R!((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pytResetPlayerWeekData³scCs|jdƒdS(Ni(tSetFamilyActiveValue(R!((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pytCalcFamilyActiveValue½s cCs|jƒs tj|dƒdSt|ƒ}|s6dStj|tj|ƒ|jƒ}t    j
d||ƒt |t j ƒt    j
d|ƒdS(NisPlayerOnWeek! onWeekValue=%ssPlayerOnWeek OK!(RHRIt!Set_PlayerGameServerInitOK_OnWeekt__Get_Can_OnWeekR"RLRMtDef_PDict_OnWeekRORR
t__DoPlayerOnWeekRQRR(R!t onWeekValueRT((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pyR/Çs   cCs|jƒs tj|dƒdSt|ƒ}|s6dStj|tj|ƒ|jƒ}t    j
d||ƒt |t j ƒt    j
d|ƒdS(NisPlayerOnWeekEx! onWeekValue=%ssPlayerOnWeekEx OK!(RHRIt#Set_PlayerGameServerInitOK_OnWeekExt__Get_Can_OnWeekExR"RLRMtDef_PDict_OnWeekExRORR
RºRQRX(R!R»RT((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pyR1Ùs   cCstjƒrdS|tjkrˆ|jƒ}|jƒ}t|ƒtj|ƒt    |ƒt
|ƒt j|ƒt j |tjdƒnF|tjkrÎtj|ƒtj|ƒtj|ƒtj|ƒntj||ƒtj||ƒtj||ƒdS(Ni(RRYRQRRtGetLastWeekOnlineTimetGetLastWeekFamilyActiveValueR´RiR0R³R¶RjR"RLRMtDef_Player_Dict_HasVIPClubNoteRXR†tEventResponse_OnWeekR˜tOnWeekExR‹R”tDoPlayerOnWeekRŸtFBOnWeekR¡R¢tShopItemOnWeek(R!R¬tlastWeekOnlineTimetlastWeekFamilyValue((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pyRºës(   
 
 
    cCs|jƒs tj|dƒdSt|ƒ}|s6dStj|tj|ƒ|jƒ}t    j
d||ƒt |t j ƒt    j
d|ƒdS(NisPlayerOnMonth! onMonthValue=%ssPlayerOnMonth OK!(RHRIt"Set_PlayerGameServerInitOK_OnMontht__Get_Can_OnMonthR"RLRMtDef_PDict_OnMonthRORR
t__DoPlayerOnMonthRQRR(R!t onMonthValueRT((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pyR6s   cCs|jƒs tj|dƒdSt|ƒ}|s6dStj|tj|ƒ|jƒ}t    j
d||ƒt |t j ƒt    j
d|ƒdS(Nis PlayerOnMonthEx! onMonthValue=%ssPlayerOnMonthEx OK!(RHRIt$Set_PlayerGameServerInitOK_OnMonthExt__Get_Can_OnMonthExR"RLRMtDef_PDict_OnMonthExRORR
RÌRQRX(R!RÍRT((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pyR7.s   cCsUtjƒrdS|tjkr/tj|ƒn|tjkrAntj||ƒdS(N(    RRYRQRRRitOnMonthRXR¢tShopItemOnMonth(R!R¬((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pyRÌ@s cCsu|jƒs tj|dƒdS|jƒ}t|ƒs<dStjd|ƒtjƒ}tj    |t
j |j ƒdS(Nis PlayerOnYear!( RHRIt!Set_PlayerGameServerInitOK_OnYearROt__Get_Can_OnYearRR
tGetCurrentTimeR"RLRMtDef_PDict_OnYeartyear(R!t curPlayerIDt curDateTime((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pyR=Ws    cCsÀ|jƒs tj|dƒdS|jƒ}t|ƒs<dStjd|ƒtjƒjƒ}tj    ƒ}|j
}t j |t j|ƒ|dkr¢|jƒntj|ƒtj|ƒdS(Nis PlayerOnHour!(RHRIt!Set_PlayerGameServerInitOK_OnHourROt__Get_Can_OnHourRR
RtGetTickRÕthourR"RLRMtDef_PDict_OnHourtDataServer_GetBillboardLVR†tEventResponse_OnHourR•R)(R!RØRRÙtcurHour((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pyR*os             cCs.tjƒ}t|jƒƒtƒtƒdS(N(R tIPY_MOnAllMapServerInitOKRRt!__DoLogic_OpenMapCheckRebornPointt"__DoLogic_OpenMapCheckMissionCount(RRR((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pytGameServer_OnAllMapServerInitOK¢s
 cCs tjƒjƒsdStjdƒ}tjdƒ}|\}}t|ƒ}||kr‰tjd||fƒtd||fƒ‚dSd}x0|jƒD]"}d|kr´qœn|d7}qœW||krÿtjd||fƒtd||fƒ‚dStj    d||||fƒdS(    NtMissionAcceptMapIDtMissionMaxCounts&ÈÎÎñ×ÜÊý³¬±ê, maxCnt = %s, curCnt = %siiÿÿÿÿis.È«ÇøÈ«·þÈÎÎñ×ÜÊý³¬±ê, maxCnt = %s, curCnt = %ssHÑéÖ¤ÈÎÎñÊýÍê±Ï, cnt = %s, maxCnt = %s, allMapCnt = %s, maxAllMapCnt = %s(
RRt GetDebugLevelt ReadChConfigtGetEvalChConfigtlentErrLogt BaseExceptiontvaluesR
(tallMissionDicttmissionCntListttotalAcceptMissionCnttallMapAcceptMissionCntt allMissionCnttallMapMissionCnttvalue((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pyRä³s*     c Cs]tjƒjƒsdStjƒ}|jƒ}tjƒ}|jƒ}xùtd|ƒD]è}|j|ƒ}|j    ƒ}|j
ƒ}|j ƒ}x¬t||||dƒD]}    x†t||||dƒD]i}
|j |    |
ƒrëqÍntj d||||||    |
fƒtd||||||    |
fƒ‚qÍWq«WqVWtjd||fƒdS(Niis~µØÍ¼ID = %s ÖØÉúµã×ø±ê²»ºÏ·¨, index = %s, br_PointPosX = %s, br_PointPosY = %s, br_Round = %s, checkPosX = %s, checkPosY = %s s$ÑéÖ¤ÖØÉúµãÍê±Ï, mapID = %s, cnt = %s(RRt IsTrueDebugt GetGameDatatGetBornRefreshCountRRR<tGetBornRefreshByIndextGetPosXtGetPosYtGetRoundt
IsValidPosRìRíR
( tgameDatatbr_Countt
mapManagertmapIDRtbr_Pointt br_PointPosXt br_PointPosYtbr_Roundt    checkPosXt    checkPosY((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pyRãÝs&       ""&1cCs|jƒ}|jƒ}tjƒ}|dks<|dkrL|j|ƒnt|ƒret|ƒnt|ƒr~t|ƒnt    |ƒr—t
|ƒnt |ƒr°t |ƒnt |ƒrÉt|ƒnt|ƒrât|ƒnt|ƒrût|ƒnt|ƒrt|ƒndS(Ntt0(t GetLogoffTimetstripRtGetCurrentDataTimeStrt SetLogoffTimeRÛR*RKRRVR$R¸R/R½R1RÊR6RÏR7RÔR=(R!tlastLoginTimeStrt
curTimeStr((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pytUpdatePlayerLoginTimeýs,                   c
Cs¦tjƒ}|j}|j}|j}|j}|jtjƒ}|jtj    ƒ}|jtj
ƒ}|jtj ƒ}    ||kp¥||kp¥||kp¥||    kS(N( RRÕRÝtdaytmonthR×RzRMRÞRNRËRÖ(
R!RÙt dateTime_Hourt dateTime_DaytdateTime_Montht dateTime_Yeart player_Hourt
player_Dayt player_Montht player_Year((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pyRÛ,s                 cCs‰tjƒ}|j}|j}|j}|jtjƒ}|jtjƒ}|jtj    ƒ}||ks||ks||kr…|SdS(Ni(
RRÕRRR×RzRMRNRËRÖ(R!RÙRRRRRR((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pyRKAs             $c Cstjƒ}|jtjƒ}|r¶|d}|dd}|d}tj|||dddƒ}||}|j}|j}    |dkrdS|dkr¶|    tj    dkr¶dSn|j
tj    krá|tj ddƒ}n|j }
|j } |j} | d| d|
S(sPÅжϿɷñÁ賿Xµã¹ýÌì
    @return: 0-²»¿É£» >0-¿ÉÒÔ, ÇÒ´ú±íµÄÊǹýÌìÐè¼Ç¼µÄÖµ
    i'idiiitdays(RRÕRzRMRWtdatetimeRtsecondsRQtDef_OnEventHourRÝt    timedeltaRRR×( R!RÙt lastOndayExtlastOndayEx_YeartlastOndayEx_MonthtlastOndayEx_Dayt lastDatetimetpassTimetpassDayst passSecondsRRR((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pyRVPs( 
 
 
                     cCsHtjƒ}tjj|ƒd}|jtjƒ}||krD|SdS(Nii(RRÕRt isocalendarRzRMR¹(R!RÙt dateTime_Weekt player_Week((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pyR¸€s   cCsGtjƒ}tjj|ƒ}|\}}}|jtjƒ}|ré|d}|d}||kru||krudS|dkré|tjddƒ}    tjj|    ƒ\}
} } |
|kræ| |kræ|jt    j
krãdSqæqén|dkr;|jt    j
kr;|tjddƒ} tjj| ƒ\}}}n|d|S(sPÅжϿɷñÁ賿Xµã¹ýÖÜ
    @return: 0-²»¿É£» >0-¿ÉÒÔ, ÇÒ´ú±íµÄÊǹýÖÜÐè¼Ç¼µÄÖµ
    idiiRi( RRÕRR(RzRMR¾RRÝRQR(R!RÙR(t dateTime_yeart dateTime_weekt dateTime_dayt lastOnWeekExtlastOnWeekEx_YeartlastOnWeekEx_WeektpreWeekDateTimet preWeek_yeart preWeek_weekt preWeek_daytonWeekDateTime((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pyR½‹s* 
 
 cCsbtjƒ}|j}|j}|jtjƒ}|jtjƒ}||ksZ||kr^|SdS(Ni(RRÕRR×RzRMRËRÖ(R!RÙRRRR((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pyRÊÁs         c
CsOtjƒ}|j}|j}|j}|jtjƒ}|rê|d}|d}||kro||krodS|dkrê|dkrdn|d}|dkr©|n|d}    |    |krç||krç|jt    j
krädSqçqên|dkrC|jt    j
krC|dkrdn|d}|dkr6|n|d}n|d|S(sPÅжϿɷñÁ賿Xµã¹ýÔÂ
    @return: 0-²»¿É£» >0-¿ÉÒÔ, ÇÒ´ú±íµÄÊǹýÔÂÐè¼Ç¼µÄÖµ
    idiii ( RRÕRRR×RzRMRÐRÝRQR(
R!RÙR-tdateTime_monthR+t lastOnMonthExtlastOnMonthEx_YeartlastOnMonthEx_MonthtpreMonth_montht preMonth_year((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pyRÏÍs,             
 
 cCs1tjƒ}|j}|jtjƒ}||kS(N(RRÕR×RzRMRÖ(R!RÙRR((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pyRÔs     cCs tjƒ}t|jƒƒdS(N(R tIPY_MOnTimeSyncRR(RRR((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pytGameServer_OnTimeSyncs cCs†tjƒ}|jƒ}|jtjd ƒsBtjd|ƒn|jtj    ƒ}t
|ƒdkrã |d}|d}|tj krœt |ƒt _dS|tjkr¾t |ƒt _dS|tjkràt |ƒt _dS|tjkrt |ƒt _tj|ƒdS|tjkr1t |ƒt _dS|tjkrSt |ƒt _dS|tjkrut |ƒt _dS|tjkrµtjƒjƒt j!kr±t |ƒt _"ndS|tj#krt |ƒ\}}}    tjƒjƒ|krt$j%||    ƒndS|tj&kr.t'j(t |ƒƒdS|tj)kr}t |ƒ}
tjƒjƒ|
dkryt*j+|
dƒndS|tj,krÊt |ƒ\}} tjƒjƒ|krÆt-j.| ƒndS|tj/krt |ƒ\}} tjƒjƒ|krt-j0| ƒndS|tj1kr]t |ƒ\} }| rPt j2|7_2n    |t _2dS|tj3kr©t |ƒ}x*|j4ƒD]\}}t5j6||ƒq…WdS|jtj7d ƒr    tj7d }|t
|ƒ}t |ƒ}|j8tj9dƒ}|tj:kr`|s-tj;d||fƒdS|t j<krLit j<|<n|t j<||<n |t j<|<|tj=kr‰t5j>ƒn‰|tj?kr¨t@jA|ƒnj|tjBkrÇtCjD|ƒnK|tjEkrætFjG|ƒn,|tjHkrtIjJ|ƒn |tjKkr$tLjM|ƒnî|tjNkrCtOjP|ƒnÏ|tjQkrbtRjS|ƒn°|tjTkrtUjV|ƒn‘|tjWkr tXjY|ƒnr|tjZkr¿t[j\|ƒnS|tj]krÞt^j_|ƒn4|tj`krútajbƒn|tjckrtdje|ƒnù|tjfkr8tgjh|ƒnÚ|tjikrWtjjk|ƒn»|tjlkrstmjnƒnŸ|tjokr’tpjq|ƒn€|tjrkr±tsjt|ƒna|tjukrÍtvjwƒnE|tjxkrétyjzƒn)|tj{krt|j}|ƒn
|tj~kr$tj€ƒnî|tjkrCt‚jƒ|ƒnÏ|tj„kr_t…j†ƒn³|tj‡kr~tˆj‰|ƒn”|tjŠkrt‹jŒ|ƒnu|tjkr¼tŽj|ƒnV|tjkrÛt‘j’|ƒn7|tj“kr÷t”j•ƒn|tj–krt—j˜|ƒnü|tj™kr2tšj›ƒnà|tjœkrNtjžƒnÄ|tjŸkrjt j¡ƒn¨|tj¢kr†t£j¤ƒnŒ|tj¥kr¢t¦j§ƒnp|tj¨kr¾t©jªƒnT|tj«krÚt¬j­ƒn8|tj®kröt¯j°ƒn|tj±kr    t²j³ƒndS|jtj´d ƒr|
tj´d }|t
|ƒ}|t jµkrh    it jµ|<nt jµ|}|j¶t |ƒƒtj·ƒr˜    dS|tj¸kr´    t¹jºƒnÄ|tj»krР   t¼j½ƒn¨|tj¾krì    tdj¿ƒnŒ|tjÀkr
tIjÁƒnp|tjÂkr$
tLjÃnT|tjÄkr@
tOjŃn8|tjÆkr\
tÇjȃn|tjÉkrx
tÊj˃ndS|tjÌkr˜
|t _ÍdS|tjÎkr t |ƒt _ÏtjЃ}xKtÑ|j҃ƒD]7}|jÓ|ƒ}tjÔ|ƒsÿ
ntÕjÖ|ƒqÕ
WdS|tj×kr@ t |ƒt _ØtÙjڃdS|tjÛkrf tÜjÝt |ƒƒdS|tjÞkrˆ t |ƒt _ßdS|tjàkrª t |ƒt _ádS|jâƒrÅ tã|ƒ}q tj;d||fƒdSn3|d    kr tjä}d}ntj;d
|ƒdStjåƒ}|tjäkrA tæ||ƒn¯|tjçkr` tèjé|ƒn|tjêt jëkr¡ |jì|ƒ|krðtíjî||ƒqðnO|tjêt jïkrâ |jì|ƒ|krðtðjñ||ƒqðn|tjòtjógkr& |jì|ƒ|krðtôjõ||ƒqðnÊ|tjòtjökrg |jì|ƒ|krðt÷jø||ƒqðn‰|tjùtjúkr¨ |jì|ƒ|krðtûjü||ƒqðnH|tjýkrâ |rð|jì|ƒ|krðtþ|ƒqðn|tjÿkr|rð|jì|ƒ|krðt|ƒqðnÔ|tjkrV|rð|jì|ƒ|krðt|ƒqðnš|tjkrð|rð|jì|ƒ|krð|j||ƒtjЃ}xNtÑ|j҃ƒD]7}|jÓ|ƒ}tjÔ|ƒsÙq¯ntj|ƒq¯Wqðn|jì|ƒ}|j||ƒ|jd ƒr.tj|ƒnT|tj    krJt
j ƒn8|tjòtj kr‚||kr‚t$j ||ƒq‚ndS( Niýÿÿÿs GameServer_BroadcastMsg msg = %siiiiþÿÿÿsAMultiActNumOperation can not found actNum. actionName=%s,msg = %ss*GameServer_BroadcastMsg unKnowMsg: %s = %st ReloadConfigs+GameServer_BroadcastMsg unKnowMsg, msg = %stGameWorldBossReborn_(R tIPY_MBroadcastMsgtGetMsgt
startswithRQt'Def_Notify_WorldKey_GameWorldBossRebornRR
tsplittDef_Notify_SeparatorRët*Def_Notify_WorldKey_CommMapLinePlayerCounttevalt
PyGameDatatg_commMapLinePlayerCountDictt#Def_Notify_WorldKey_BossShuntPlayertg_bossShuntPlayerInfot&Def_Notify_WorldKey_BossShuntLineStatetg_bossShuntLineStatet0Def_Notify_WorldKey_FamilyKillHorsePetRobBossCntt"g_familyKillHorsePetRobBossCntDictt FamilyRobBosst$OnFamilyKillHorsePetRobBossCntChanget*Def_Notify_WorldKey_FBEnterTimeLimiitMapIDtFBEnterTimeLimiitMapIDt Def_Notify_WorldKey_FBOpenRecordtFBOpenTimeRecordt Def_Notify_WorldKey_VSFamilyInfot VSFamilyInfot#Def_Notify_WorldKey_FamilyPartyInfoRRRMtDef_FBMapID_FamilyPartytg_familyPartyInfot0Def_Notify_WorldKey_FamilyPartyAddFamilyActivityR–tDoAddFamilyMemberFamilyActivityt$Def_Notify_WorldKey_FamilyZhenfaInfotPlayerFamilyZhenfatGameServer_FamilyZhenfatDef_Notify_WorldKey_AssistBossRštGameServer_AssistBossMsgt(Def_Notify_WorldKey_AddFamilyAuctionItemtPlayerAuctionHousetDoAddFamilyAuctionItemt(Def_Notify_WorldKey_AddSystemAuctionItemtDoAddSystemAuctionItemt$Def_Notify_WorldKey_FairyDomainLimittg_fairyDomainLimittDef_Notify_WorldKey_CoupleInfotitemsR"t SetCoupleInfot'Def_Notify_WorldKey_OperationActionInfotgett ActKey_ActNumtMultiActNumOperationActNameListRìtg_operationActionDicttOperationActionName_ExpRatetRefreshOperationAction_ExpRatetOperationActionName_CostRebatetPlayerCostRebatetRefreshCostRebateActionInfot!OperationActionName_TotalRechargetPlayerActTotalRechargetRefreshTotalRechargeActionInfot"OperationActionName_GarbageSortingtPlayerActGarbageSortingtRefreshGarbageSortingActionInfotOperationActionName_XianXiaMJtPlayerActXianXiaMJtRefreshXianXiaMJActionInfotOperationActionName_GubaotPlayerActGubaotRefreshGubaoActionInfot!OperationActionName_HorsePetTraintPlayerActHorsePetTraintRefreshHorsePetTrainActionInfotOperationActionName_GodGifttPlayerActGodGifttRefreshGodGiftActionInfot#OperationActionName_ManyDayRechargetPlayerActManyDayRecharget RefreshManyDayRechargeActionInfot"OperationActionName_SingleRechargetPlayerActSingleRechargetRefreshSingleRechargeActionInfotOperationActionName_TurntableRutRefreshTurntableActionInfotOperationActionName_SpringSaletPlayerSpringSaletRefreshSpringSaleActionInfotOperationActionName_BossReborntPlayerBossRebornt!RefreshOperationAction_BossReborntOperationActionName_BossTrialR¨tRefreshBossTrialActionInfot!OperationActionName_HorsePetFeasttPlayerActHorsePetFeastt$RefreshOperationAction_HorsePetFeastt OperationActionName_FlashGiftbagtPlayerFlashGiftbagtRefreshFlashGiftbagActionInfot OperationActionName_DailyGiftbagtPlayerDailyGiftbagtRefreshDailyGiftbagActionInfotOperationActionName_BuyOnetPlayerActBuyOnetRefreshBuyOneActionInfot#OperationActionName_FamilyCTGAssisttPlayerActFamilyCTGAssistt RefreshFamilyCTGAssistActionInfot!OperationActionName_FairyCeremonytPlayerFairyCeremonyt$RefreshOperationAction_FairyCeremonyt$OperationActionName_NewFairyCeremonytPlayerNewFairyCeremonyt'RefreshOperationAction_NewFairyCeremonytOperationActionName_FlashSaletPlayerFlashSaletRefreshflashSaleActionInfotOperationActionName_WishingWellR¦tRefreshWishingWellActiont OperationActionName_CollectWordstPlayerActCollectWordstRefreshActCollectWordsInfotOperationActionName_WeekPartytPlayerWeekPartyt RefreshOperationAction_WeekPartyt OperationActionName_BuyCountGiftR«tRefreshBuyCountGiftActionInfotOperationActionName_ActTaskR©tRefreshActTaskActionInfotOperationActionName_YunshitPlayerActYunshitRefreshActYunshiActionInfotOperationActionName_LunhuidiantPlayerActLunhuidiantRefreshActLunhuidianActionInfotOperationActionName_LoginAwardtPlayerActLogint!RefreshOperationAction_LoginAwardtOperationActionName_ActLoginNewRªtRefreshActLoginActionInfotOperationActionName_FeastLogintPlayerFeastLogintRefreshFeastLoginActionInfotOperationActionName_FeastWishtPlayerFeastWishtRefreshFeastWishActionInfotOperationActionName_FeastTraveltPlayerFeastTraveltRefreshFeastTravelActionInfot"OperationActionName_FeastWeekPartytPlayerFeastWeekPartyt%RefreshOperationAction_FeastWeekPartyt"OperationActionName_FeastRedPackettPlayerFeastRedPackett%RefreshOperationAction_FeastRedPackett!OperationActionName_LuckyTreasuretPlayerLuckyTreasuretRefreshLuckyTreasureActiont!OperationActionName_RechargePrizetPlayerActRechargePrizetRefreshRechargePrizeActionInfotOperationActionName_GrowupBuytPlayerActGrowupBuytRefreshGrowupBuyActionInfot&OperationActionName_RechargeRebateGoldtPlayerActRechargeRebateGoldt#RefreshRechargeRebateGoldActionInfot Def_Notify_WorldKey_CrossActInfotg_crossActInfoDicttupdateRYtCrossActName_CTGBillboardtCrossActCTGBillboardtRefreshCrossActCTGBillboardInfotCrossActName_AllRechargetCrossActAllRechargetRefreshCrossActAllRechargeInfotCrossActName_BossTrialtRefreshCrossActBossTrialInfotCrossActName_XianXiaMJtRefreshCrossActXianXiaMJInfotCrossActName_GubaotRefreshCrossActGubaoInfotCrossActName_HorsePetTraint RefreshCrossActHorsePetTrainInfotCrossActName_LianqitPlayerActLianqitRefreshCrossActLianqiInfotCrossActName_FamilyGCZtPlayerActFamilyGCZtRefreshActFamilyGCZInfot!Def_Notify_WorldKey_CrossZoneNametg_crossZoneNamet#Def_Notify_WorldKey_CrossServerTimetg_crossServerTimeInfoR RRRRR@tSync_PyServerDataTimeToClientt%Def_Notify_WorldKey_LuckyCloudBuyInfotg_luckyCloudBuyInfotPlayerLuckyCloudBuytOnLuckyCloudBuyChanget%Def_Notify_WorldKey_FuncTeamMemIDInfotPlayerFuncTeamtOnFuncTeamMemIDRefresht0Def_Notify_WorldKey_CrossBattlefieldCallTeamInfotg_crossBattlefieldCallTeamInfot2Def_Notify_WorldKey_CrossBattlefieldSysCallBuyInfot g_crossBattlefieldSysCallBuyListtisdigittintt Def_Notify_WorldKey_ReloadConfigRt__DoLogic_OtherReloadDictt#Def_Notify_WorldKey_CrossPKSeasonIDR’tOnCrossRealmPKSeasonChangetDef_Notify_WorldKey_FBFuncStatetDef_FBMapID_FamilyInvadetGetGameWorldDictByKeytGameLogic_FamilyInvadetOnFamilyInvadeStateChangetDef_FBMapID_ElderBattlefieldtGameLogic_ElderBattlefieldtOnElderBattlefieldStateChanget$Def_Notify_WorldKey_DailyActionStatetDailyActionID_FamilyBoss1tGameLogic_AllFamilyBosstOnAllFamilyBossStateChangetDailyActionID_HorsePetBosstGameLogic_HorsePetBosstOnHorsePetBossStateChanget)Def_Notify_WorldKey_CrossDailyActionStatetCrossDailyActionID_YaomoBosstPlayerCrossYaomoBosstOnYaomoBossStateChangetDef_Notify_WorldKey_OnDayExR%tDef_Notify_WorldKey_OnWeekExR2tDef_Notify_WorldKey_OnMonthExR8t"Def_Notify_WorldKey_WorldAverageLvtSetGameWorldDicttPlayerWorldAverageLvtUpdatePlayerWorldAverageLvtNPCCustomRefreshtProcessAllNPCRefresht$Def_Notify_WorldKey_ChampionFamilyIDtGameLogic_FamilyWartOnChampionFamilyIDChangetDailyActionID_FamilyPartytOnFamilyPartyStateChange(RRRtmsgtmsgListtkeytmsgValueRtfamilyIDtaddFamilyActivityt
assistDatatfamilyAuctionItemDicttsysAuctionItemListtisAddt    limitListtsyncCoupleInfoRTt
coupleInfotkeyHeadt
actionNametactInfotactNumt actInfoDictRR!Rõt gameWorldMgrtbefValue((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pytGameServer_BroadcastMsg2s  
 
                                           
                  cCsu|jtj|ƒ|jtj|ƒtjjƒtjddƒrqtj    ƒj
ƒ}t j |ƒt jƒndS(Nt ReloadQuestsi(R&RQt$Def_Notify_WorldKey_ReloadTexCaptchat%Def_Notify_WorldKey_ReloadJpegCaptchat IpyGameDataPYtIPYDatat IpyDataCleart
GetFuncCfgRRRÜt QuestManagerRER†tDoReloadRefresh(RBRõR((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pyR Ös   cCstj|ƒdS(N(RtOnInit(RR((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pytOnServerVersionSettingøs (¢RéRMRR†RR R@RRIRQR_RˆRcRiR"R'R‹R^RaR)ReRR¢RrR¡RtRŸRjRRqRRnRlR’R“R”R]RŠR„R–R¤RRRRR,RZRtRæRéR³RwRzR}R€RƒRôR†R÷R¥RàR‰RŒRÚRÝRuR¨R¢R‘R”R¶RÑRÎRÈRËR©R½RÀR«RªRÃRœRŸR¨R«R™RÔR RR×RcR§RsR®R¦R•RRpRoRgRvR‰RHRPR‘RLRšR˜RHt    PlayerTJGRœRxRR›RR+RRRR%R'R&R-R,R2R4R3R8R:R9RRGRR$RPR³R´R¶R/R1RºR6R7RÌR=R*RåRäRãRRÛRKRVR¸R½RÊRÏRÔR=RDR RO(((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pyt<module>sD                                                                                                                                     !            )                                                  
                 ¤         
    
            1                    3        *         /            0         6         7            ÿ¥    "