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
¾Rù[c@s2ddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    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@ddlAZAddlBZBddlCZCddlDZDddlEZEddlFZFddlGZGddlHZHddlIZIddlJZJddlKZKd„ZLd„ZMd„ZNd„ZOd„ZPd„ZQd„ZRd    „ZSd
„ZTd „ZUd „ZVd „ZWd„ZXd„ZYd„ZZd„Z[d„Z\d„Z]d„Z^d„Z_d„Z`d„Zad„Zbd„Zcd„Zdd„Zed„Zfd„Zgd„Zhd„Zid „Zjd!„Zkd"„Zld#„Zmd$„Znd%„Zod&„Zpd'„Zqd(„Zrd)„Zsd*„Ztd+„Zud,„Zvd-„Zwd.„Zxd/„ZydS(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 |ƒt j dƒtjƒjƒ}|jƒxLt|jƒƒD]8}|j|ƒ}| s’|jƒrÀq’nt|ƒq’WdS(NsMapServer -> OnDay!i(RtLogtGetPlayerManagert IPY_GameWorldt
IPY_MOnDaytSetMapServerTimeFromGameServertGetTimetProcessAllPlayerMailOnDayt GameLogInfotClearGameLogInfotFBLogictOnDayt PlayerControltResetMergeFBPlayerCntInfot GetGameWorldtGetDBMissionPubManagertCleartxrangetGetPlayerCounttGetPlayerByIndextIsEmptyt PlayerOnDay(RRt playerManagertpacktmissionPubManagertit    curPlayer((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pyR–s    
 
 
cCsytjdƒtj|ƒtjƒ}xLt|jƒƒD]8}|j|ƒ}| s9|jƒrgq9nt    |ƒq9WdS(NsMapServer -> OnDayEx!(
RR
Rt"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ƒ}xLt    |j
ƒƒD]8}|j |ƒ}| s^|j ƒrŒq^nt |ƒq^WdS(NsMapServer -> OnHour!(RR
R t IPY_MOnHourRRRtOnHourR RRRRt PlayerOnHour(RRR ttimeRR"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ƒ}xLt|jƒƒD]8}|j    |ƒ}| sH|j
ƒrvqHnt |ƒqHWt j |ƒdS(NsMapServer -> OnWeek!(RR
R t IPY_MOnWeekRRR RRRRt PlayerOnWeekRtOnWeek(RRR RR"R#((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pyR-s    cCsltjdƒtjƒ}xLt|jƒƒD]8}|j|ƒ}| s,|jƒrZq,nt|ƒq,WdS(NsMapServer -> OnWeekEx!(RR
R RRRRtPlayerOnWeekEx(RRR"R#((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pyt__Func_GameServer_OnWeekEx)s  cCstjtƒ||ƒdS(N(RRt__Func_GameServer_OnMonth(RR((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pytGameServer_OnMonthIscCsˆtjdƒtjƒ}t|jƒƒtjƒ}xLt|jƒƒD]8}|j    |ƒ}| sH|j
ƒrvqHnt |ƒqHWdS(NsMapServer -> OnMonth!( RR
R t IPY_MOnMonthRRR RRRRt PlayerOnMonth(RRR RR"R#((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pyR4Rs   cCsltjdƒtjƒ}xLt|jƒƒD]8}|j|ƒ}| s,|jƒrZq,nt|ƒq,WdS(NsMapServer -> OnMonthEx!(RR
R RRRRtPlayerOnMonthEx(RRR"R#((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pyt__Func_GameServer_OnMonthExds  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ƒ}xOtd|jƒƒD]8}|j    |ƒ}| sK|j
ƒryqKnt |ƒqKWdS(NsMapServer -> OnYeari( RR
R t IPY_MOnYearRRR trangeRRRt PlayerOnYear(RRR RR"R#((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pyR:s   cCstjƒj|ƒdS(N(RRtSetGameServerEventTime(R,((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pyR£scCsŸtjƒj|ƒ}y|jƒtj||ƒWne|jtjƒddl    }tj
d|j ƒƒtj ƒj ƒr›td|j ƒƒ‚q›nXdS(NiÿÿÿÿsÍæ¼ÒÉÏÏßÂß¼­´íÎó~~~~~
%ssÍæ¼ÒÉÏÏßÂß¼­´íÎó~~~~
%s(RR RtSendToBServerServerInitOKtChPlayertOnAllServerInitOKtKickR tdisWaitForPlayerLoinErrort    tracebacktErrLogt
format_excRt GetDebugLevelR    (RRR#RE((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_OnDayRtNomalDictSetPropertytChConfigtDef_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!(RJRKt"Set_PlayerGameServerInitOK_OnDayExt__Get_Can_OnDayExRRNROtDef_PDict_OnDayExRQRR
RRRStDef_OnEventTypeEx(R#RURV((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pyR%Îs   cCsä|tjkrïtj|ƒ|jdƒtj|ƒtj|ƒt    j
|ƒt j |ƒt j|ƒtj|ƒtj|ƒtj|ƒtj|ƒtj|ƒtj|ƒtj|ƒtj|ƒtj|ƒtj|ƒn”|tjkrƒtj |ƒt!j"|ƒt#j|ƒt$j|ƒt%j&|ƒt'j(|ƒt)j*|ƒt+j|ƒt,j-|ƒt.j/|ƒnt0j1||ƒt2j3||ƒt4j||ƒt5j6||ƒt7j8||ƒt9j|ƒdS(Ni(:RSRTtOpenServerCampaigntOnOpenServerCampaignDaytSetDayProcessGameEventCountt    PlayerPettDoLogic_PetInfo_OnDaytPlayerGameWallowtRevertHealthGame_OnDaytPlayerOnlinePrizetResetPrizeInfoOnDayt PlayerSignDayt SignDayOnDaytPlayerLoginDayAwardtNotePlayerLoginDayCntt PlayerHorset
HorseOnDayt    PlayerViptVipOnDayt
PlayerCoinRt PlayerSuccesst    SuccOnDaytPlayerNewGuyCardtNewGuyCardOndaytPlayerGoldInvesttPlayerMagicWeapontPlayerGoldGifttPlayerRefineStovetPlayerBindJadeWheelRZt
EventShelltEventResponse_OnDaytOperate_PlayerBuyZhenQiRt BossHurtMngt PlayerDiceExt PlayerRecovert RecoverOnDayt PlayerFamilytFamilyPlayerOnDaytChItemtResetItemUseCntTodaytPlayerFreeGoodst    NPCCommontCollNPCTimeOnDayt FBHelpBattlet DoPlayerOnDayt    PlayerTJGtTJGOnDaytFBCommontFBOnDaytPlayerActivitytFunctionNPCCommont ShopItemOnDaytPlayerFamilyRedPackettRedPacketOnDaytPlayerWishingWell(R#t onEventType((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pyRRàsH                          cCs$|j|jƒƒ|jdƒdS(Ni(tSetLastWeekOnlineTimetGetWeekOnlineTimetSetWeekOnlineTime(R#((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pytCalcWeekOnlineTimeGs cCsdS(N((R#((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pytResetPlayerWeekDataSscCs|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!(RJRKt!Set_PlayerGameServerInitOK_OnWeekt__Get_Can_OnWeekRRNROtDef_PDict_OnWeekRQRR
t__DoPlayerOnWeekRSRT(R#t onWeekValueRV((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pyR0gs   cCs|jƒs tj|dƒdSt|ƒ}|s6dStj|tj|ƒ|jƒ}t    j
d||ƒt |t j ƒt    j
d|ƒdS(NisPlayerOnWeekEx! onWeekValue=%ssPlayerOnWeekEx OK!(RJRKt#Set_PlayerGameServerInitOK_OnWeekExt__Get_Can_OnWeekExRRNROtDef_PDict_OnWeekExRQRR
R›RSRZ(R#RœRV((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pyR2ys   cCsË|tjkrk|jƒ}|jƒ}t|ƒt|ƒt|ƒtj|ƒt    j
|t j dƒn,|tj kr—tj|ƒtj|ƒntj||ƒtj||ƒtj||ƒdS(Ni(RSRTtGetLastWeekOnlineTimetGetLastWeekFamilyActiveValueR•R”R—RmR1RRNROtDef_Player_Dict_HasVIPClubNoteRZRvtEventResponse_OnWeekR}tOnWeekExRˆ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!(RJRKt"Set_PlayerGameServerInitOK_OnMontht__Get_Can_OnMonthRRNROtDef_PDict_OnMonthRQRR
t__DoPlayerOnMonthRSRT(R#t onMonthValueRV((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pyR7´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!(RJRKt$Set_PlayerGameServerInitOK_OnMonthExt__Get_Can_OnMonthExRRNROtDef_PDict_OnMonthExRQRR
R¬RSRZ(R#R­RV((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pyR8Æs   cCs8|tjkrn|tjkr$ntj||ƒdS(N(RSRTRZR‹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!( RJRKt!Set_PlayerGameServerInitOK_OnYearRQt__Get_Can_OnYearRR
tGetCurrentTimeRRNROtDef_PDict_OnYeartyear(R#t curPlayerIDt curDateTime((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pyR>ís    cCs³|jƒs tj|dƒdS|jƒ}t|ƒs<dStjd|ƒtjƒjƒ}tj    ƒ}|j
}t j |t j|ƒ|dkr¢|jƒntj|ƒdS(Nis PlayerOnHour!(RJRKt!Set_PlayerGameServerInitOK_OnHourRQt__Get_Can_OnHourRR
RtGetTickR´thourRRNROtDef_PDict_OnHourtDataServer_GetBillboardLVRvtEventResponse_OnHour(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_OnAllMapServerInitOK6s
 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(
RRRHt ReadChConfigtGetEvalChConfigtlenRFt BaseExceptiontvaluesR
(tallMissionDicttmissionCntListttotalAcceptMissionCnttallMapAcceptMissionCntt allMissionCnttallMapMissionCnttvalue((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pyRÃGs*     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
IsValidPosRFRÊR
( tgameDatatbr_Countt
mapManagertmapIDRtbr_Pointt br_PointPosXt br_PointPosYtbr_Roundt    checkPosXt    checkPosY((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pyRÂqs&       ""&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+RMRRXR%R™R0RžR2RªR7R¯R8R³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¶tNomalDictGetPropertyROR½RPR«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¶RðRORPR«Rµ(R#R¸RòRóRôRöR÷Rø((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pyRMÕ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ðRORYtdatetimeRùtsecondsRStDef_OnEventHourR¼t    timedeltaRîRïR¶( R#R¸t lastOndayExtlastOndayEx_YeartlastOndayEx_MonthtlastOndayEx_Dayt lastDatetimetpassTimetpassDayst passSecondsRòRóRô((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pyRXäs( 
 
 
                     cCsHtjƒ}tjj|ƒd}|jtjƒ}||krD|SdS(Nii(RR´Rút isocalendarRðRORš(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-¿ÉÒÔ, ÇÒ´ú±íµÄÊǹýÖÜÐè¼Ç¼µÄÖµ
    idiiRùi( RR´RúRRðRORŸRýR¼RSRü(R#R¸Rt 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¶RðROR«Rµ(R#R¸RóRôR÷Rø((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pyRªUs         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¶RðROR°R¼RSRü(
R#R¸R tdateTime_monthR    t lastOnMonthExtlastOnMonthEx_YeartlastOnMonthEx_MonthtpreMonth_montht preMonth_year((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pyR¯as,             
 
 cCs1tjƒ}|j}|jtjƒ}||kS(N(RR´R¶RðRORµ(R#R¸RôRø((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_OnTimeSync²s 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"j#||ƒndS|tj$krtjƒjƒt j%krt |ƒt _&ndS|jtj'd ƒrNtj'd }    |t
|    ƒ}
t |ƒt j(|
<|
tj)krjt*j+ƒnà|
tj,kr†t-j.ƒnÄ|
tj/kr¢t0j1ƒn¨|
tj2kr¾t3j4ƒnŒ|
tj5krÚt6j7ƒnp|
tj8kröt9j:ƒnT|
tj;krt<j=ƒn8|
tj>kr.t?j@ƒn|
tjAkrJtBjCƒndS|jDƒritE|ƒ} qºtjFd||fƒdSn3|dkr¥tjG}d} ntjFd|ƒdStjHƒ} |tjGkråtI| | ƒn|tjJkrtKjL| |ƒnó|jtjMd ƒr3tNjO|| |ƒnÇ|tjPkrUtQjR| |ƒn¥|tjStjTgkr€tUjV|| ƒnz|tjWtjXgkr«tYjZ|| ƒnO|tj[t j%krì| j\|ƒ| krút]j^| |ƒqún|tj[t j_kr-| j\|ƒ| krút`ja| |ƒqúnÍ|tj[t jbkrn| j\|ƒ| krútcjd| |ƒqúnŒ|tjekr¨| rú| j\|ƒ| krútf|ƒqúnR|tjgkrâ| rú| j\|ƒ| krúth|ƒqún|tjikr| rú| j\|ƒ| krútj|ƒqúnÞ|tjkkr¹| rú| j\|ƒ| krú| jl|| ƒtjmƒ} xQtn| joƒƒD]:}| jp|ƒ}|jqƒdkr¢quntrjs|ƒquWqúnA|jtjtd ƒrú| rú| j\|ƒ| krútujvƒqún| jl|| ƒ|jd    ƒr)tujw|ƒn“|tjxkrEtyjzƒnw|tj{j|ƒkrjt}j~|ƒnR|jtjd ƒr“t€j||ƒn)|jtj‚d ƒr¼tƒj„||ƒndS(
Niþÿÿÿs GameServer_BroadcastMsg msg = %siiis*GameServer_BroadcastMsg unKnowMsg: %s = %st ReloadConfigs+GameServer_BroadcastMsg unKnowMsg, msg = %stGameWorldBossReborn_(…R tIPY_MBroadcastMsgtGetMsgt
startswithRSt'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_FamilyBossOpenCountRRROtDef_FBMapID_FamilyBossMaptGameLogic_FamilyBosstGameServerOpenFamilyBosst#Def_Notify_WorldKey_FamilyPartyInfotDef_FBMapID_FamilyPartytg_familyPartyInfot'Def_Notify_WorldKey_OperationActionInfotg_operationActionDicttOperationActionName_ExpRateRtRefreshOperationAction_ExpRatetOperationActionName_CostRebatetPlayerCostRebatetRefreshCostRebateActionInfot!OperationActionName_TotalRechargetPlayerActTotalRechargetRefreshTotalRechargeActionInfotOperationActionName_SpringSaletPlayerSpringSaletRefreshSpringSaleActionInfotOperationActionName_BossReborntPlayerBossRebornt!RefreshOperationAction_BossRebornt OperationActionName_FlashGiftbagtPlayerFlashGiftbagtRefreshFlashGiftbagActionInfot!OperationActionName_FairyCeremonytPlayerFairyCeremonyt$RefreshOperationAction_FairyCeremonytOperationActionName_FlashSaletPlayerFlashSaletRefreshflashSaleActionInfotOperationActionName_WishingWellRtRefreshWishingWellActiontisdigittintRFt Def_Notify_WorldKey_ReloadConfigRt__DoLogic_OtherReloadDicttDef_Notify_WorldKey_ManorWartGameLogic_ManorWartOnManorWarStateChanget'Def_Notify_WorldKey_TimeShopRefreshTimetShopItemManagetOnTimeShopRefreshtDef_Notify_WorldKey_MergeBosstGameLogic_MergeBosstOnMergeBossStateChanget Def_Notify_WorldKey_MergePKDayIDt#Def_Notify_WorldKey_MergePKSeasonIDt PlayerMergePKtOnMergePKActionChanget%Def_Notify_WorldKey_Merge_KingStartIDt$Def_Notify_WorldKey_Merge_KingOverIDtPlayerMergeKingtOnMergeKingActionChangetDef_Notify_WorldKey_FBFuncStatetGetGameWorldDictByKeytGameLogic_FamilyPartytOnFamilyPartyStateChangetDef_FBMapID_FamilyInvadetGameLogic_FamilyInvadetOnFamilyInvadeStateChangetDef_FBMapID_ElderBattlefieldtGameLogic_ElderBattlefieldtOnElderBattlefieldStateChangetDef_Notify_WorldKey_OnDayExR&tDef_Notify_WorldKey_OnWeekExR3tDef_Notify_WorldKey_OnMonthExR9t"Def_Notify_WorldKey_WorldAverageLvtSetGameWorldDictR RRRtGetIDtPlayerWorldAverageLvtUpdatePlayerWorldAverageLvt$Def_Notify_WorldKey_DailyActionStatetNPCCustomRefreshtResetActivityBossRefreshCounttProcessAllNPCRefresht$Def_Notify_WorldKey_ChampionFamilyIDtGameLogic_FamilyWartOnChampionFamilyIDChangetTeHuiTypeKeyDictRËt PlayerTeHuitChangeTeHuiActionStatet#Def_Notify_WorldKey_ActionBuffStatet PlayerActiontOnActionBuffStateChanget%Def_Notify_WorldKey_BossOnlineHeroCnttGameLogic_DogztOnOnlineCntChange(RRR tmsgtmsgListtkeytmsgValuetfamilyIDt    openCounttkeyHeadt
actionNameRÒt gameWorldMgrRR#((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(R{RSt$Def_Notify_WorldKey_ReloadTexCaptchat%Def_Notify_WorldKey_ReloadJpegCaptchat IpyGameDataPYtIPYDatat IpyDataCleart
GetFuncCfgRRR»t QuestManagerR™RvtDoReloadRefresh(R—RÒ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 (zRÇRORRvRR RARRKRStReadCaptchaImageR`t
ItemCommonRxRdRlRR}R}RbR€RhRfR‚RcR]R‹RsRŠR‡RuRŠt PlayerTruckRˆtPlayerDienstgradRmtPlayerMixLoginDayAwardRRrR`RRqRoRkRgR^t ReloadModuleRyR{RoRRrRuR8R„RR[RBRERHRKRNRQRtRTRRjRzRœR.R„R R&R†RúR,RRRR&R(R'R.R-R3R5R4R9R;R:RRIRR%RRR”R•R—R0R2R›R7R8R¬R>R+RÄRÃRÂRíRºRMRXR™RžRªR¯R³RR˜R[R£(((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerEventCounter.pyt<module>sò                                                                                        #    !            )                                                  
                g         
    
            )                    1        *         /            0         6         7            ß    "