xdh
2018-09-25 272b2f5697ef49d26ece9d78eb393de816882c70
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
Ô'ª[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     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__GetActionAddPerR!R)R<R=t GetPlayerID(R t activityNumt    finishCnttaddCnttdailyQuestDatatmaxActiveValuet onceActivitytonceActivityTimeRR/taddValuetaddPbCnttmultipleR0((s^.\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_CfgIDR5t
GetLVLimitt GetMultiple(R RatactRealmPointInfotactRealmPointIpyData((s^.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pyRVös!cCs~tjƒ}|jƒt|tjƒ|_t|tjƒ|_t|tj    ƒ|_
t|tj ƒ|_ t j||ƒdS(N(tChPyNetSendPackttagMCDailyActivityInfoListtClearRRRtCurValueR;t
StageIndexRt AwardRecordR!t
RealmPointt 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.pytGetRealmPointAwardOs
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(RRiR<t GetGameWorldtGetGameWorldDictByKeyRt$Def_Notify_WorldKey_DailyActionStateR=R+RR¢t RelatedType_1RRRStGetUnLockFuncIDR"R#RR-RCtminR&RERR RbR‰(R tdailyIDRZRR1RRXR[t
unLimitCnttfuncIDt updDayTimesRt curDayTimest updWeekTimest curWeekTimestupdTimes((s^.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pytAddDailyActionFinishCntdsR   #
 #
 cCsNtj|}t||ƒ}tjd|ƒ}|s8dSt|ƒ}||fS(NR£i(ii(RR-RRRiR+(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(RottagMCDailyActionCntRqt
ActionInfoRtDailyActionIDListttagMCDailyActionInfotActionIDRRR-t DayFinishCntRt WeekFinishCntR R‚tCountRvRw(R t syncNumListRxRXt activityInfo((s^.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pyR ®s 
      
    cCs/tt|ƒ}|r+t||||ƒndS(N(R¢t RelatedType_2Rb(R tmapIDR®taddCountRX((s^.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pytOnEnterFBActivityÅs(#RRoRvRR<RƒRKR&R‡RRdR"trangeR§RÁRR2R*R RBRR
RIRPRbRVR)R˜R›R¢R²R³R+R RÄ(((s^.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActivity.pyt<module>s@                    .                 
            &            7              7