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
Ÿx›[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((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pytOnWeek)s  c
Csötjƒ}|tjkr:xSt|jƒƒD]?}tj|d}t||ƒ}|r.t    ||dƒq.q.Wt    |tj
dƒt    |tj dƒt |ƒt|tj ƒ}|r-tj|tjƒr-tj|tjƒrtjd|jƒgtj|dfg|gƒnt    |tj dƒnt|ƒn
t|ƒg}xt|jƒƒD]{}|j|ƒ}t|ƒ}    |    sŠq]n|jƒ|kr¢q]ntj|jƒ}t    ||dƒ|j|jƒƒq]W|ròt||ƒndS(NiitXXDForgetToPick( RRt ShareDefinetDef_OnEventTypeExRtGetDailyQuestCountRtDef_PDict_Activity_FinishCntt__GetPDictValueR
tDef_PDict_Activity_TotalPointtDef_PDict_ActivityAwardRecordt__CalcAwardStagetDef_PDict_Activity_RealmPointt GameFuncCommt GetFuncCanUsetGameFuncID_OfficialtGameFuncID_DailyQuestt PlayerControlt SendMailByKeytGetIDtDef_ItemID_RealmPointtSyncDailyActivityInfotSendDayActionMailRRtGetMaxDayTimestGetDayResetTypetDef_PDict_DailyActionDayTimesR    R R (
R t onEventTypeRRRtcurPBCntt
realmPointRRt dayTimesLimit((snE:\SnxxServerCode\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 ((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pyR)nscCs­|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((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pyRvs     cCst|ƒt|ƒdS(N(R(R (R ((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pytOnLogin‰s
 
icCs|j||ƒS(N(tNomalDictGetProperty(R Rt defaultValue((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pyR–scCstj|||ƒdS(N(R$tNomalDictSetProperty(R Rtvalue((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pyR
žscCsdS(N((R t
type_Pricetprice((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pytOnPayMoneyActivity¨scCs#|jƒ}|tjkrdSdS(N(tGetGameObjTypet IPY_GameWorldt    gotPlayer(tatkObjtcurNPCt
atkObjType((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pytOnAttackNPCActivity¸s     cCs6tjd|ƒ}|sdS|jƒ}|jƒ}|jƒ}|sJdS|rh||||krhdStj|}t||ƒ}    ||    ||}
||    |} t||| ƒd} |
r t    |ƒ} |
| 9}
t|tj
ƒ} t|tj
| |
ƒt |ƒnt j d|| |
| f|jƒƒdS(Nt
DailyQuestisGÔö¼Ó»îÔ¾¶ÈÈÎÎñ´ÎÊý£¬activityNum=%s,addPbCnt=%s,addValue=%s, multiple=%s(RtGetIpyGameDataNotLogtGetTotalActiveValuetGetOnceActivitytGetOnceActivityTimeRRRR
t__GetActionAddPerRR(R;R<t GetPlayerID(R t activityNumt    finishCnttaddCnttdailyQuestDatatmaxActiveValuet onceActivitytonceActivityTimeRR.taddValuetaddPbCnttmultipleR/((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pytAddActivityFinishCntÎs2     
     cCsd}tjjtjiƒ}|s(|S|jtjƒs>|Stjd|jtjdƒƒ}|si|S|j    ƒ|j
ƒkr…|S|j ƒS(Nit ActRealmPointi( t
PyGameDatatg_operationActionDicttgetRtOperationActionName_RealmPointt ActKey_StateRtGetIpyGameDatat ActKey_CfgIDR4t
GetLVLimitt GetMultiple(R R`tactRealmPointInfotactRealmPointIpyData((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pyRUôs!cCs~tjƒ}|jƒt|tjƒ|_t|tjƒ|_t|tj    ƒ|_
t|tj ƒ|_ t j||ƒdS(N(tChPyNetSendPackttagMCDailyActivityInfoListtClearRRRtCurValueR:t
StageIndexRt AwardRecordRt
RealmPointt NetPackCommont SendFakePack(R tsendPack((snE:\SnxxServerCode\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;tErrLogRRRtpowtLogR7t GetLivenessRR:t    GetItemIDt GetItemCountt GetItemBindtlent
ItemCommontGetItemPackSpaceRJtrptItemR$t
NotifyCodet ItemControlertGivePlayerItemtTrueR
R(R<(R t
awardIndext rewardCounttgetAwardRecordRt needActivityt totalActivityt
awardStaget
itemIDListt itemCntListtitemIsBindListtitemIDtitemCnttisBindt    packSpacetupdAwardRecord((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pytGetActivityAwardsF         6
 
 
 "
    cCsSt|tjƒ}|sdStj|tj|ƒt|tjdƒt|ƒdS(Ni(    RRRR$t    GiveMoneyRtTYPE_Price_RealmPointR
R((R R/((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pytGetRealmPointAwardMs
cCs:tjdi|d6|d6ttƒ}|s0dS|jƒS(NRPt    RelatedIDt RelatedTypei(RtGetIpyGameDataByConditiontFalseR&(t relatedTypet    relatedIDR((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pytGetActivityNumYs&c Cs tjd|ƒ}|sdStjƒjtj|ƒsMtjd|ƒdSt|ƒ}|j    ƒ}| rw| rwdSt
t |ƒ}tj d|ƒ}|o¨|j ƒ }d}    |r=tj|}
|j|
ƒ} | rê| |krêdS|rú| |nt|| |ƒ}    tj||
|    ƒtjd|| |    fƒn|rÉtj|}
|j|
ƒ} | rv| |krvdS|r†| |nt|| |ƒ} tj||
| ƒtjd|| | fƒnt||gƒ|    pâ| }|r|rt||||ƒntS(Nt DailyActionsÈÕ³£»î¶¯Î´¿ªÆô£¡dailyID=%sRPis?Ôö¼ÓÈÕ³£»î¶¯Íê³É´ÎÊý dailyID=%s, curDayTimes=%s, updDayTimes=%ssAÔö¼ÓÈÕ³£»î¶¯Íê³É´ÎÊý dailyID=%s, curWeekTimes=%s, updWeekTimes=%s(RRhR;t GetGameWorldtGetGameWorldDictByKeyRt$Def_Notify_WorldKey_DailyActionStateR<R*RR¡t RelatedType_1RQRRRR,RBtminR$RDRR RaRˆ(R tdailyIDRYRR0RRWRZt
unLimitCntt updDayTimesRt curDayTimest curWeekTimest updWeekTimestupdTimes((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pytAddDailyActionFinishCntbsF   # #  cCsNtj|}t||ƒ}tjd|ƒ}|s8dSt|ƒ}||fS(NR¢i(ii(RR,RRRhR*(R R¨RR«RR0((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pytGetDailyActionFinishCnt”s  cCs;|jƒ}|jƒtjkr7|tjdƒ7}n|S(NtRuneTowerSweepBuy(t GetDayTimesR    RtDailyActionID_TowerSDRR5(RR0((snE:\SnxxServerCode\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(RnttagMCDailyActionCntRpt
ActionInfoRtDailyActionIDListttagMCDailyActionInfotActionIDRRR,t DayFinishCntRt WeekFinishCntR RtCountRuRv(R t syncNumListRwRWt activityInfo((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pyR §s 
      
    cCs/tt|ƒ}|r+t||||ƒndS(N(R¡t RelatedType_2Ra(R tmapIDR«taddCountRW((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pytOnEnterFBActivity¾s(#RRnRuRR;R‚RJR$R†RRcR trangeR¦R¾RR1R)RRARR
RHRORaRUR(R—RšR¡R¯R°R*R RÁ(((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pyt<module>s@                    ,                 
            &            7              2