hwj35
3 天以前 6b4be0aefa119cfa2a370944596a50b712cf04f9
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
bfbhc@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`ddlaZaddlbZbddlcZcddldZdddleZeddlfZfddlgZgddlhZhddliZiddljZjddlkZkddllZlddlmZmddlnZnddloZoddlpZpddlqZqddlrZrddlsZsddltZtd„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¡d/„Z¢dS(0iÿÿÿÿNcCs$tjtƒ||ƒt|ƒdS(N(t    GameWorldt GetPsycoFunct__Func_GameServer_OnDaytCheckMachineTick(tindexttick((srD:\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((srD:\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((srD:\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!((srD:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pyt__Func_GameServer_OnDayExßs   cCstjtƒ||ƒdS(N(RRt__Func_GameServer_OnHour(RR((srD:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pytGameServer_OnHourscCsš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!((srD:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pyR&    s   
 cCstjtƒ||ƒdS(N(RRt__Func_GameServer_OnWeek(RR((srD:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pytGameServer_OnWeek2scCs‘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!((srD:\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!((srD:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pyt__Func_GameServer_OnWeekExOs  cCstjtƒ||ƒdS(N(RRt__Func_GameServer_OnMonth(RR((srD:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pytGameServer_OnMonthoscCs„tjdƒtjƒ}t|jƒƒtjƒ}xHt|jƒƒD]4}|j    |ƒ}tj
|ƒsrqHnt |ƒqHWdS(NsMapServer -> OnMonth!( RR
R t IPY_MOnMonthRRR RRRRt PlayerOnMonth(RRRRR R!((srD:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pyR3xs   cCshtjdƒtjƒ}xHt|jƒƒD]4}|j|ƒ}tj|ƒsVq,nt|ƒq,WdS(NsMapServer -> OnMonthEx!(RR
R RRRRtPlayerOnMonthEx(RRR R!((srD:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pyt__Func_GameServer_OnMonthExŠs  cCstjtƒ||ƒdS(N(RRt__Func_GameServer_OnYear(RR((srD:\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!((srD:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pyR9³s   cCstjƒj|ƒdS(N(RRtSetGameServerEventTime(R+((srD:\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((srD:\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((srD:\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((srD:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pyR$òs   cCsÍtjƒrdS|tjkrtj|ƒ|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&|ƒ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)j0dƒn|j(t)j1ƒr2t%j+|t)j1dƒt,j-|t)j2dƒq2n|tj3kr2t4j5|ƒt6j7|ƒt8j!|ƒt9j|ƒt:j|ƒt;j<|ƒt=j>|ƒt?j|ƒt@j!|ƒtAj#|ƒtBj#|ƒtCj#|ƒtDj#|ƒtEj|ƒtFjG|ƒtHjI|ƒtJj#|ƒtKj!|ƒtLj!|ƒtMjN|ƒntOjP||ƒtQj||ƒtRjS||ƒtTjU||ƒtVj|ƒtWj||ƒtXj!||ƒtYj|ƒtZj|ƒt[j||ƒdS(Ni(\Rt IsCrossServerRQRRtOpenServerCampaigntOnOpenServerCampaignDaytSetDayProcessGameEventCountt    PlayerPettDoLogic_PetInfo_OnDaytPlayerGameWallowtRevertHealthGame_OnDaytPlayerOnlinePrizetResetPrizeInfoOnDayt PlayerSignDayt SignDayOnDaytPlayerLoginDayAwardtNotePlayerLoginDayCntt    PlayerViptVipOnDayt
PlayerCoinRt PlayerSuccesst    SuccOnDaytPlayerNewGuyCardtNewGuyCardOndaytPlayerGoldInvesttPlayerZhanlingtPlayerTreasuretPlayerMagicWeapontPlayerGoldGifttPlayerRefineStovetPlayerBindJadeWheeltPlayerActTurntableRt
PlayerLovet DoPlayerOnDaytPlayerXiangongR"t PayCoinOnDaytPlayerSuperDiscounttNomalDictGetPropertyRMtDef_PDict_GameNoticeAwardStateRLR@tSync_RewardGetRecordInfotDef_RewardType_GameNoticetDef_PDict_ShareGameAwardStatetDef_RewardType_ShareGametDef_PDict_ADAwardCnttDef_RewardType_ADAwardRXt PlayerRecovert RecoverOnDayt
EventShelltEventResponse_OnDaytOperate_PlayerBuyZhenQit PlayerDiceExt BossHurtMngt PlayerFamilytFamilyPlayerOnDaytChItemtResetItemUseCntTodaytPlayerFreeGoodst    NPCCommont FBHelpBattletPlayerCrossRealmPKtPlayerCrossChampionshiptPlayerCrossBattlefieldtPlayerFairyDomaintGameLogic_FamilyPartytOnDayFamilyPartyPlayert PlayerArenatOnDayExt PlayerAssisttPlayerMineAreat PlayerGuajitCrossPlayerDatatSendMergePlayerDataNowtFBCommontFBOnDaytPlayerActivitytFunctionNPCCommont ShopItemOnDaytPlayerFamilyRedPackettRedPacketOnDaytPlayerWishingWelltPlayerTongTianLingtPlayerActBossTrialt PlayerActTasktPlayerActLoginNewtPlayerActBuyCountGift(R!t onEventTypetgameNoticeAwardStatetshareGameAwardState((srD:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pyRPsŠ                                              cCs$|j|jƒƒ|jdƒdS(Ni(tSetLastWeekOnlineTimetGetWeekOnlineTimetSetWeekOnlineTime(R!((srD:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pytCalcWeekOnlineTime£s cCsdS(N((R!((srD:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pytResetPlayerWeekData¯scCs|jdƒdS(Ni(tSetFamilyActiveValue(R!((srD:\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((srD:\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((srD:\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((srD:\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((srD:\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((srD:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pyR7*s   cCsUtjƒrdS|tjkr/tj|ƒn|tjkrAntj||ƒdS(N(    RRYRQRRRitOnMonthRXR¡tShopItemOnMonth(R!R«((srD:\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((srD:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pyR=Ss    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((srD:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pyR*ks             cCs.tjƒ}t|jƒƒtƒtƒdS(N(R tIPY_MOnAllMapServerInitOKRRt!__DoLogic_OpenMapCheckRebornPointt"__DoLogic_OpenMapCheckMissionCount(RRR((srD:\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((srD:\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((srD:\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((srD:\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ÕR{RMRÜRNRÉRÔ(
R!R×t dateTime_Hourt dateTime_DaytdateTime_Montht dateTime_Yeart player_Hourt
player_Dayt player_Montht player_Year((srD:\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ÕR{RMRNRÉRÔ(R!R×RRRRRR((srD:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pyRK=s             $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ÓR{RMRWtdatetimeRtsecondsRQtDef_OnEventHourRÛt    timedeltaRRRÕ( R!R×t lastOndayExtlastOndayEx_YeartlastOndayEx_MonthtlastOndayEx_Dayt lastDatetimetpassTimetpassDayst passSecondsRRR((srD:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pyRVLs( 
 
 
                     cCsHtjƒ}tjj|ƒd}|jtjƒ}||krD|SdS(Nii(RRÓRt isocalendarR{RMR·(R!R×t dateTime_Weekt player_Week((srD:\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&R{RMR¼RRÛRQR(R!R×R&t dateTime_yeart dateTime_weekt dateTime_dayt lastOnWeekExtlastOnWeekEx_YeartlastOnWeekEx_WeektpreWeekDateTimet preWeek_yeart preWeek_weekt preWeek_daytonWeekDateTime((srD:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pyR»‡s* 
 
 cCsbtjƒ}|j}|j}|jtjƒ}|jtjƒ}||ksZ||kr^|SdS(Ni(RRÓRRÕR{RMRÉRÔ(R!R×RRRR((srD:\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ÕR{RMRÎRÛRQR(
R!R×R+tdateTime_monthR)t lastOnMonthExtlastOnMonthEx_YeartlastOnMonthEx_MonthtpreMonth_montht preMonth_year((srD:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pyRÍÉs,             
 
 cCs1tjƒ}|j}|jtjƒ}||kS(N(RRÓRÕR{RMRÔ(R!R×RR((srD:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pyRÒs     cCs tjƒ}t|jƒƒdS(N(R tIPY_MOnTimeSyncRR(RRR((srD:\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(RRRtmsgtmsgListtkeytmsgValueRÿtfamilyIDtaddFamilyActivityt
assistDatatfamilyAuctionItemDicttsysAuctionItemListtisAddt    limitListtsyncCoupleInfoRTt
coupleInfotkeyHeadt
actionNametactInfotactNumt actInfoDictRR!Rót gameWorldMgrtbefValue((srD:\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(R$RQt$Def_Notify_WorldKey_ReloadTexCaptchat%Def_Notify_WorldKey_ReloadJpegCaptchat IpyGameDataPYtIPYDatat IpyDataCleart
GetFuncCfgRRRÚt QuestManagerRCR…tDoReloadRefresh(R@RóR((srD:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pyR
Òs   cCstj|ƒdS(N(RtOnInit(RR((srD:\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*RZRrRäRçR±RuRxR{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¦RzR©R—RÒRRþRÕRaR¦RsR¬R¥R”RœRpRoRgRvRˆRFRNRRJR™R—RFt    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;RBR
RM(((srD:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pyt<module>sF                                                                                                                                      !            )                                                  
                 Ÿ         
    
            1                    3        *         /            0         6         7            ÿ¥    "