cehua_ZWJ
2019-01-30 6afaa4408f4e09e3e95dbd92f0d1cd5a1fb2942b
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
¯}&\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
Cstjƒ}|tjkr^xdt|jƒƒD]P}|j|ƒ}tj|j    ƒ}t
||ƒ}|r.t ||dƒq.q.Wt |tj dƒt |tj dƒt |tjdƒt|ƒt
|tjƒ}|rQtj|tjƒrQtj|tjƒr;tjd|j    ƒgtj|dfg|gƒnt |tjdƒnt|ƒn
t|ƒg}xt|jƒƒD]{}|j|ƒ}t|ƒ}    |    s®qn|jƒ|krÆqntj|jƒ}t ||dƒ|j |jƒƒqW|rt!||ƒndS(NitXXDForgetToPicki("RRt ShareDefinetDef_OnEventTypeExRtGetDailyQuestCounttGetDailyQuestByIndexRtDef_PDict_Activity_FinishCnttGetIDt__GetPDictValueR
tDef_PDict_Activity_TotalPointtDef_PDict_ActivityAwardRecordt"Def_PDict_Activity_ExtraRealmPointt__CalcAwardStagetDef_PDict_Activity_RealmPointt GameFuncCommt GetFuncCanUsetGameFuncID_OfficialtGameFuncID_DailyQuestt PlayerControlt SendMailByKeytDef_ItemID_RealmPointtSyncDailyActivityInfotSendDayActionMailRRtGetMaxDayTimestGetDayResetTypetDef_PDict_DailyActionDayTimesR    R R (
R t onEventTypeRRRRtcurPBCntt
realmPointRt dayTimesLimit((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pytOnDayBsB 
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+rscCs­|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.pyR!zs     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     c    Cs£tjd|ƒ}|sdS|jƒ}|jƒ}|jƒ}|sJdS|rh||||krhdStj|}t||ƒ}    ||    ||}
||    |} t||| ƒd} |
rŸt    |ƒ\} } t|tj
ƒ}| rt dt |
| d| |ƒƒn |
| d}t|tj
||ƒ|
|}
t|tj ƒ}t|tj ||
ƒt|ƒtjd|| |
| ||f|jƒƒndS(Nt
DailyQuestiisjÔö¼Ó»îÔ¾¶ÈÈÎÎñ´ÎÊý£¬activityNum=%s,addPbCnt=%s,addValue=%s, multiple=%s, addExtraPoint=%s,curExtraPoint=%s(RtGetIpyGameDataNotLogtGetTotalActiveValuetGetOnceActivitytGetOnceActivityTimeRRRR
t__GetActionAddPerR tmaxtminR"R*R=R>t GetPlayerID(R t activityNumt    finishCnttaddCnttdailyQuestDatatmaxActiveValuet onceActivitytonceActivityTimeRR0taddValuetaddPbCnttmultipletextraPointLimitt curExtraPointt addExtraPointR1((snE:\SnxxServerCode\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_CfgIDR6t
GetLVLimitt GetMultiplet GetPointLimit(R RdRetactRealmPointInfotactRealmPointIpyData((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pyRWûs 
 
!
 
cCs“tjƒ}|jƒt|tjƒ|_t|tjƒ|_t|tj    ƒ|_
t|tj ƒ|_ t|tj ƒ|_tj||ƒdS(N(tChPyNetSendPackttagMCDailyActivityInfoListtClearRRRtCurValueR<t
StageIndexRt AwardRecordR"t
RealmPointR t
ExtraPointt 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=tErrLogRRRtpowtLogR9t GetLivenessRR<t    GetItemIDt GetItemCountt GetItemBindtlent
ItemCommontGetItemPackSpaceRLtrptItemR'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(    RRR"R't    GiveMoneyRtTYPE_Price_RealmPointR
R*(R R1((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pytGetRealmPointAwardUs
cCs:tjdi|d6|d6ttƒ}|s0dS|jƒS(NRRt    RelatedIDt RelatedTypei(RtGetIpyGameDataByConditiontFalseR(t relatedTypet    relatedIDR((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pytGetActivityNumas&c Csutjd|ƒ}|sdS|tjgkrbtjƒjtj|ƒsbtjd|ƒdSnt    |ƒ}|j
ƒ}| rŒ| rŒdSt t |ƒ}tj d|ƒ}|o½|jƒ }|rÒ|jƒnd}    |    rõtj||    ƒ rõdSd}
|r‘tj|} |j| ƒ} | r4| |kr4dS|rD| |nt|| |ƒ}
|
| }tj|| |
ƒtjd|| |
fƒnd} |r-tj|} |j| ƒ}| rÐ||krÐdS|rà||nt|||ƒ} | |}tj|| | ƒtjd||| fƒnt||gƒ|
pF| }|rq|rq|rqt||||ƒntS(Nt DailyActionsÈÕ³£»î¶¯Î´¿ªÆô£¡dailyID=%sRRis?Ôö¼ÓÈÕ³£»î¶¯Íê³É´ÎÊý dailyID=%s, curDayTimes=%s, updDayTimes=%ssAÔö¼ÓÈÕ³£»î¶¯Íê³É´ÎÊý dailyID=%s, curWeekTimes=%s, updWeekTimes=%s(RRoRtDailyActionID_CrossReamPKR=t GetGameWorldtGetGameWorldDictByKeyt$Def_Notify_WorldKey_DailyActionStateR>R,RRªt RelatedType_1RSRTtGetUnLockFuncIDR#R$RR.RDRYR'RFRR RhR‘(R tdailyIDR]RR2RR[R^t
unLimitCnttfuncIDt updDayTimesRt curDayTimest updWeekTimest curWeekTimestupdTimes((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pytAddDailyActionFinishCntjsT   #
 #
 cCsNtj|}t||ƒ}tjd|ƒ}|s8dSt|ƒ}||fS(NR«i(ii(RR.RRRoR,(R R²RR¶RR2((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_TowerSDRR7(RR2((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(RvttagMCDailyActionCntRxt
ActionInfoRtDailyActionIDListttagMCDailyActionInfotActionIDRRR.t DayFinishCntRt WeekFinishCntR RŠtCountR~R(R t syncNumListR€R[t activityInfo((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pyR ¶s 
      
    cCs/tt|ƒ}|r+t||||ƒndS(N(Rªt RelatedType_2Rh(R tmapIDR¶taddCountR[((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pytOnEnterFBActivityÍs(#RRvR~RR=R‹RLR'RRRjR#trangeR°RÉRR3R+R!RCRR
RJRQRhRWR*R R£RªRºR»R,R RÌ(((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pyt<module>s@                    0                 
            )            7              9