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
™~ò[c@sfddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z e ddƒ\Z Zd„Zd„Zd„Zd„Zd„Zd    d
„Zd „Zd „Zd „Zd„Zd„Zd„Zd„Zd„Zd„Zdd„Zd„Zd„Z gd„Z!d„Z"dS(iÿÿÿÿNiicCs¾g}tjƒ}xt|jƒƒD]{}|j|ƒ}|jƒ}|sRq%n|jƒ|krjq%ntj|j    ƒ}t
||dƒ|j |j    ƒƒq%W|rºt ||ƒndS(Ni( t IpyGameDataPYtIPY_DatatxrangetGetDailyActionCounttGetDailyActionByIndext GetWeekTimestGetWeekResetTypetChConfigtDef_PDict_DailyActionWeekTimest
GetDailyIDt__SetPDictValuetappendtSyncDailyActionInfo(t    curPlayert
onWeekTypet actionIDInfot
ipyDataMgrtitipyDatatweekTimesLimittkey((s^.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pytOnWeek)s  c
Cstjƒ}|tjkrKxdt|jƒƒD]P}|j|ƒ}tj|j    ƒ}t
||ƒ}|r.t ||dƒq.q.Wt |tj dƒt |tj dƒt|ƒt
|tjƒ}|r>tj|tjƒr>tj|tjƒr(tjd|j    ƒgtj|dfg|gƒnt |tjdƒnt|ƒn
t|ƒg}xt|jƒƒD]{}|j|ƒ}t|ƒ}    |    s›qnn|jƒ|kr³qnntj|jƒ}t ||dƒ|j|jƒƒqnW|rt ||ƒndS(NitXXDForgetToPicki(!RRt ShareDefinetDef_OnEventTypeExRtGetDailyQuestCounttGetDailyQuestByIndexRtDef_PDict_Activity_FinishCnttGetIDt__GetPDictValueR
tDef_PDict_Activity_TotalPointtDef_PDict_ActivityAwardRecordt__CalcAwardStagetDef_PDict_Activity_RealmPointt GameFuncCommt GetFuncCanUsetGameFuncID_OfficialtGameFuncID_DailyQuestt PlayerControlt SendMailByKeytDef_ItemID_RealmPointtSyncDailyActivityInfotSendDayActionMailRRtGetMaxDayTimestGetDayResetTypetDef_PDict_DailyActionDayTimesR    R R (
R t onEventTypeRRRRtcurPBCntt
realmPointRt dayTimesLimit((s^.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pytOnDayBs@ 
4 
 cCs>|jƒtjdƒkr:tjd|jƒggƒndS(NtDailyQuestMailLvLimittTodayDailyTask(tGetLVRt
GetFuncCfgR&R'R(R ((s^.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pyR*pscCs­|jƒ}tjƒjdƒ}|s+dS|jƒ}d}x?t|ƒD]1\}}||krfPn||krJ|}qJqJWt|tj|ƒt    j
d||fƒdS(Nis/    ÖØÐ¼ÆËã»îÔ¾½±Àø½×¶Î curStage=%s,realmLV=%s( tGetOfficialRankRRtGetDailyLivenessRewardByIndext
GetStageLVt    enumerateR
RtDef_PDict_Activity_AwardStaget    GameWorldtDebugLog(R trealmLVRt stageLVListtcurStageRtlv((s^.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pyR xs     cCst|ƒt|ƒdS(N(R)R (R ((s^.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pytOnLogin‹s
 
icCs|j||ƒS(N(tNomalDictGetProperty(R Rt defaultValue((s^.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pyR˜scCstj|||ƒdS(N(R&tNomalDictSetProperty(R Rtvalue((s^.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pyR
 scCsdS(N((R t
type_Pricetprice((s^.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pytOnPayMoneyActivityªscCs#|jƒ}|tjkrdSdS(N(tGetGameObjTypet IPY_GameWorldt    gotPlayer(tatkObjtcurNPCt
atkObjType((s^.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pytOnAttackNPCActivityºs     c    Cs£tjd|ƒ}|sdS|jƒ}|jƒ}|jƒ}|sJdS|rh||||krhdStj|}t||ƒ}    ||    ||}
||    |} t||| ƒd} |
rst    |ƒ\} } t|tj
ƒ}| rt dt |
| d| |ƒƒn |
| d}t|tj
||ƒ|
|}
t|tj ƒ}t|tj ||
ƒt|ƒntjd|| |
| ||f|jƒƒdS(Nt
DailyQuestiisjÔö¼Ó»îÔ¾¶ÈÈÎÎñ´ÎÊý£¬activityNum=%s,addPbCnt=%s,addValue=%s, multiple=%s, addExtraPoint=%s,curExtraPoint=%s(RtGetIpyGameDataNotLogtGetTotalActiveValuetGetOnceActivitytGetOnceActivityTimeRRRR
t__GetActionAddPert"Def_PDict_Activity_ExtraRealmPointtmaxtminR!R)R<R=t GetPlayerID(R t activityNumt    finishCnttaddCnttdailyQuestDatatmaxActiveValuet onceActivitytonceActivityTimeRR/taddValuetaddPbCnttmultipletextraPointLimitt curExtraPointt addExtraPointR0((s^.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pytAddActivityFinishCntÐs8    8
     #cCs¹d\}}tjjtjiƒ}|s4||fS|jtjƒsP||fStjd|jtjdƒƒ}|s||fS|j    ƒ|j
ƒkr£||fS|j ƒ|j ƒfS(Niit ActRealmPoint(ii( t
PyGameDatatg_operationActionDicttgetRtOperationActionName_RealmPointt ActKey_StateRtGetIpyGameDatat ActKey_CfgIDR5t
GetLVLimitt GetMultiplet GetPointLimit(R RdRetactRealmPointInfotactRealmPointIpyData((s^.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pyRVùs 
 
!
 
cCs“tjƒ}|jƒt|tjƒ|_t|tjƒ|_t|tj    ƒ|_
t|tj ƒ|_ t|tj ƒ|_tj||ƒdS(N(tChPyNetSendPackttagMCDailyActivityInfoListtClearRRRtCurValueR;t
StageIndexRt AwardRecordR!t
RealmPointRWt
ExtraPointt NetPackCommont SendFakePack(R tsendPack((s^.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pyR) s 
c
Cstjƒjƒ}|dks*||krEtjd||fƒdSt|tjƒ}|td|ƒ@rtj    d|ƒdStjƒj
|ƒ}|j ƒ}t|tj ƒ}||krÜtj    d|||fƒdSt|tj ƒ}|jƒ}|jƒ}    |jƒ}
|t|ƒksH|t|    ƒksH|t|
ƒkrLdS||} |    |} |
|} tj|tjƒ}d|krŸtj|dƒdStj|| | | tjgtƒ|d|>B}t|tj|ƒt|ƒtjd|||||fƒdS(    Nis$»îÔ¾¶È½±ÀøË÷Òý²»ºÏ·¨,index=%s,Len=%sisÒѾ­ÁìÈ¡¹ý¸Ã»îÔ¾¶È½±Àø,index=%ss8Áì½±»îÔ¾¶È²»×ã,index=%s,needActivity=%s,totalActivity=%sitGeRen_chenxin_998371sYÁìÈ¡»îÔ¾¶È½±ÀøOK£¡awardStage=%s, index=%s,needActivity=%s,totalActivity=%s,awardRecord=%s(RRtGetDailyLivenessRewardCountR<tErrLogRRRtpowtLogR8t GetLivenessRR;t    GetItemIDt GetItemCountt GetItemBindtlent
ItemCommontGetItemPackSpaceRKtrptItemR&t
NotifyCodet ItemControlertGivePlayerItemtTrueR
R)R=(R t
awardIndext rewardCounttgetAwardRecordRt needActivityt totalActivityt
awardStaget
itemIDListt itemCntListtitemIsBindListtitemIDtitemCnttisBindt    packSpacetupdAwardRecord((s^.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pytGetActivityAwardsF         6
 
 
 "
    cCsSt|tjƒ}|sdStj|tj|ƒt|tjdƒt|ƒdS(Ni(    RRR!R&t    GiveMoneyRtTYPE_Price_RealmPointR
R)(R R0((s^.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pytGetRealmPointAwardSs
cCs:tjdi|d6|d6ttƒ}|s0dS|jƒS(NRQt    RelatedIDt RelatedTypei(RtGetIpyGameDataByConditiontFalseR(t relatedTypet    relatedIDR((s^.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pytGetActivityNum_s&c Cs`tjd|ƒ}|sdStjƒjtj|ƒsMtjd|ƒdSt|ƒ}|j    ƒ}| rw| rwdSt
t |ƒ}tj d|ƒ}|o¨|j ƒ }|r½|jƒnd}    |    ràtj||    ƒ ràdSd}
|r|tj|} |j| ƒ} | r| |krdS|r/| |nt|| |ƒ}
|
| }tj|| |
ƒtjd|| |
fƒnd} |rtj|} |j| ƒ}| r»||kr»dS|rË||nt|||ƒ} | |}tj|| | ƒtjd||| fƒnt||gƒ|
p1| }|r\|r\|r\t||||ƒntS(Nt DailyActionsÈÕ³£»î¶¯Î´¿ªÆô£¡dailyID=%sRQis?Ôö¼ÓÈÕ³£»î¶¯Íê³É´ÎÊý dailyID=%s, curDayTimes=%s, updDayTimes=%ssAÔö¼ÓÈÕ³£»î¶¯Íê³É´ÎÊý dailyID=%s, curWeekTimes=%s, updWeekTimes=%s(RRoR<t GetGameWorldtGetGameWorldDictByKeyRt$Def_Notify_WorldKey_DailyActionStateR=R+RRªt RelatedType_1RRRStGetUnLockFuncIDR"R#RR-RCRYR&RERR RhR‘(R tdailyIDR]RR1RR[R^t
unLimitCnttfuncIDt updDayTimesRt curDayTimest updWeekTimest curWeekTimestupdTimes((s^.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pytAddDailyActionFinishCnthsR   #
 #
 cCsNtj|}t||ƒ}tjd|ƒ}|s8dSt|ƒ}||fS(NR«i(ii(RR-RRRoR+(R R±RRµRR1((s^.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pytGetDailyActionFinishCntŸs  cCs;|jƒ}|jƒtjkr7|tjdƒ7}n|S(NtRuneTowerSweepBuy(t GetDayTimesR    RtDailyActionID_TowerSDRR6(RR1((s^.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pyR+¨s cCsÌtjƒ}|jƒg|_|r+|ntj}xo|D]g}tjƒ}|jƒ||_t|t    j
|ƒ|_ t|t    j |ƒ|_ |jj|ƒq;Wt|jƒ|_tj||ƒdS(N(RvttagMCDailyActionCntRxt
ActionInfoRtDailyActionIDListttagMCDailyActionInfotActionIDRRR-t DayFinishCntRt WeekFinishCntR RŠtCountR~R(R t syncNumListR€R[t activityInfo((s^.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pyR ²s 
      
    cCs/tt|ƒ}|r+t||||ƒndS(N(Rªt RelatedType_2Rh(R tmapIDRµtaddCountR[((s^.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pytOnEnterFBActivityÉs(#RRvR~RR<R‹RKR&RRRjR"trangeR¯RÈRR2R*R RBRR
RIRPRhRVR)R R£RªR¹RºR+R RË(((s^.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pyt<module>s@                    .                 
            )            7              7