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
137
138
139
$Ÿgc@súddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    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`ddlaZaddlbZbddlcZcddldZdddleZeddlfZfddlgZgddlhZhddliZiddljZjddlkZkddllZlddlmZmddlnZnddloZoddlpZpddlqZqd„Zrd„Zsd„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Ÿ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_OnWeek/scCs‘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,8s    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_OnWeekExLs  cCstjtƒ||ƒdS(N(RRt__Func_GameServer_OnMonth(RR((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pytGameServer_OnMonthlscCs„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.pyR3us   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   cCsetjƒ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 |ƒ|j$t%j&ƒ}|rjt'j(|t%j&dƒt)j*|t%j+dƒn|j$t%j,ƒ}|rÊt'j(|t%j,dƒt)j*|t%j-dƒqÊn|tj.krÊt/j0|ƒt1j2|ƒt3j |ƒt4j|ƒt5j|ƒt6j7|ƒt8j9|ƒt:j|ƒt;j |ƒt<j"|ƒt=j"|ƒt>j"|ƒt?j"|ƒt@j|ƒtAjB|ƒtCjD|ƒtEj"|ƒtFj |ƒtGj |ƒtHjI|ƒntJjK||ƒtLj||ƒtMjN||ƒtOjP||ƒtQj|ƒtRj||ƒtSj ||ƒtTj|ƒtUj|ƒtVj||ƒdS(Ni(WRt IsCrossServerRQRRtOpenServerCampaigntOnOpenServerCampaignDaytSetDayProcessGameEventCountt    PlayerPettDoLogic_PetInfo_OnDaytPlayerGameWallowtRevertHealthGame_OnDaytPlayerOnlinePrizetResetPrizeInfoOnDayt PlayerSignDayt SignDayOnDaytPlayerLoginDayAwardtNotePlayerLoginDayCntt    PlayerViptVipOnDayt
PlayerCoinRt PlayerSuccesst    SuccOnDaytPlayerNewGuyCardtNewGuyCardOndaytPlayerGoldInvesttPlayerTreasuretPlayerMagicWeapontPlayerGoldGifttPlayerRefineStovetPlayerBindJadeWheeltPlayerActTurntableRt
PlayerLovet DoPlayerOnDaytPlayerXiangongtNomalDictGetPropertyRMtDef_PDict_GameNoticeAwardStateR"RLR@tSync_RewardGetRecordInfotDef_RewardType_GameNoticetDef_PDict_ShareGameAwardStatetDef_RewardType_ShareGameRXt PlayerRecovert RecoverOnDayt
EventShelltEventResponse_OnDaytOperate_PlayerBuyZhenQit PlayerDiceExt BossHurtMngt PlayerFamilytFamilyPlayerOnDaytChItemtResetItemUseCntTodaytPlayerFreeGoodst    NPCCommont FBHelpBattletPlayerCrossRealmPKtPlayerCrossChampionshiptPlayerCrossBattlefieldtPlayerFairyDomaintGameLogic_FamilyPartytOnDayFamilyPartyPlayert PlayerArenatOnDayExt PlayerAssisttPlayerMineAreat PlayerGuajitCrossPlayerDatatSendMergePlayerDataNowtFBCommontFBOnDaytPlayerActivitytFunctionNPCCommont ShopItemOnDaytPlayerFamilyRedPackettRedPacketOnDaytPlayerWishingWelltPlayerTongTianLingtPlayerActBossTrialt PlayerActTasktPlayerActLoginNewtPlayerActBuyCountGift(R!t onEventTypetgameNoticeAwardStatetshareGameAwardState((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.pyR6 s   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.pyR7s   cCsUtjƒrdS|tjkr/tj|ƒn|tjkrAntj||ƒdS(N(    RRYRQRRRitOnMonthRXRœtShopItemOnMonth(R!R¦((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pyRÅ1s 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=Hs    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*`s             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ÐRxRMR×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ÎR
R RÐRxRMRNRÄRÏ(R!RÒR RRRRR((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pyRK2s             $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ÎRxRMRWtdatetimeRtsecondsRQtDef_OnEventHourRÖt    timedeltaR
R RÐ( R!RÒt lastOndayExtlastOndayEx_YeartlastOndayEx_MonthtlastOndayEx_Dayt lastDatetimetpassTimetpassDayst passSecondsR RR((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pyRVAs( 
 
 
                     cCsHtjƒ}tjj|ƒd}|jtjƒ}||krD|SdS(Nii(RRÎRt isocalendarRxRMR²(R!RÒt dateTime_Weekt player_Week((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pyR±qs   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!RxRMR·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ÎR RÐRxRMRÄ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ÎR
R RÐRxRMRÉ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ÐRxRMRÏ(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 cCsjtjƒ}|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¿ƒnp|tjÀkr
tIjÁƒnT|tjÂkr$
tLjÃn8|tjÄkr@
tOjŃn|tjÆkr\
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ØkrJ tÙjÚt |ƒƒdS|tjÛkrl t |ƒt _ÜdS|tjÝkrŽ t |ƒt _ÞdS|j߃r© tà|ƒ}qú tj;d||fƒdSn3|d    krå tjá}d}ntj;d
|ƒdStjâƒ}|tjákr% tã||ƒn¯|tjäkrD 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ókrK |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Ô|tjþkr:|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 ƒrtj|ƒnT|tjkr.tjƒn8|tjïtj    krf||krft$j
||ƒqfndS( 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_TurntableRttRefreshTurntableActionInfotOperationActionName_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_LianqitPlayerActLianqitRefreshCrossActLianqiInfot!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(RRRtmsgtmsgListtkeytmsgValueRútfamilyIDtaddFamilyActivityt
assistDatatfamilyAuctionItemDicttsysAuctionItemListtisAddt    limitListtsyncCoupleInfoRTt
coupleInfotkeyHeadt
actionNametactInfotactNumt actInfoDictRR!Rît gameWorldMgrtbefValue((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pytGameServer_BroadcastMsg#s  
 
                                          
                  cCsu|jtj|ƒ|jtj|ƒtjjƒtjddƒrqtj    ƒj
ƒ}t j |ƒt jƒndS(Nt ReloadQuestsi(RRQt$Def_Notify_WorldKey_ReloadTexCaptchat%Def_Notify_WorldKey_ReloadJpegCaptchat IpyGameDataPYtIPYDatat IpyDataCleart
GetFuncCfgRRRÕt QuestManagerR;R€tDoReloadRefresh(R8Rî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"RR…RWRaRReRŠRœRqR›RsR™RjR‰RpR‡RnRlRŒRRŽR]R„R~RRžRR RRR"RZRmRßRâR¬RpRsRvRyR|RíRRžRÙR‚R…RÓRÖRtR¢R›RŠRR¯RÊRÇRÁRÄR£R¶R¹R¥R¤R¼R•R˜R¡R¤R’RÍRRöRÐR\R¡RrR§R RR—RoRgRuRƒR>RIR‹RBR”R’RAt    PlayerTJGR–RwRùR•RR+RRRR%R'R&R-R,R2R4R3R8R:R9RRGRR$RPR¬R­R¯R/R1R³R6R7RÅR=R*RÞRÝRÜR    RÔRKRVR±R¶RÃRÈRÍR6R:RRE(((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pyt<module>s@                                                                                                                                   !            )                                                  
                 —         
    
            1                    3        *         /            0         6         7            ÿ¢    "