cehua_wcy
2019-01-14 6a21df597819844f4827e88fac3f21d0ff2862e3
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
ô;\c@s÷dZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z d„Z d„Z d„Zd„Zded„Zd    „Zd
„Zdd „Zddd „Zd „ZdS(sVersion = 2018-07-12 16:50iÿÿÿÿNcCsZt|ƒ}|sVtjjtjiƒ}|jtjƒrVt|ƒt|ƒqVndS(N(    t__CheckPlayerWeekPartyActiont
PyGameDatatg_operationActionDicttgett ShareDefinetOperationActionName_WeekPartyt ActKey_StatetSyncWeekPartyInfotSyncWeekPartyPlayerInfo(t    curPlayertisResettactCostRebateInfo((s_.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerWeekParty.pytOnLogin"s 
cCsetjƒ}xRt|jƒƒD]>}|j|ƒ}|dks|jƒ rSqnt|ƒqWdS(N(t    GameWorldtGetPlayerManagertxrangetGetPlayerCounttGetPlayerByIndextNonet    GetInitOKR(t playerManagertiR    ((s_.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerWeekParty.pyt RefreshOperationAction_WeekParty-s cCsJ|jƒ}tjjtjiƒ}|jtjdƒ}|jtjdƒ}|jt    j
ƒ}t |t    j |t ƒ}t |t    jdƒ|jt    jdt    jƒ}| rÀ|rÀt|ƒn||krÐdSt||ƒ|stjdƒ|jt    jƒntjd|||f|ƒtj|t    j|t    jƒt|ƒtS(Niis    ÖÜ¿ñ»¶»î¶¯ÖØÖÃ!s2ÖÜ¿ñ»¶±ä¸ü! state=%s,cfgID=%s,playerWeekPartyID=%s(t GetPlayerIDRRRRRRt ActKey_CfgIDtNomalDictGetPropertytChConfigt!Def_Player_Dict_TrialTower_PassLVtAddWeekPartyActionCnttDef_WPAct_TowertFalsetDef_WPAct_LogintDef_PDict_WeekPartyIDtDef_PDictType_WeekPartyRt__SendWeekPartyMailR tDebugLogtClearNomalDictt PlayerControltNomalDictSetPropertyRtTrue(R    tplayerIDtactWeekPartyInfotstatetcfgIDtpasslvtisOktplayerWeekPartyID((s_.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerWeekParty.pyR7s(      
cCsktjd|ƒ}|sdS|jƒ}|s2dSi}xÛt|ƒD]Í\}}x¾|D]¶}tjd|ƒ}|s|qXn|jƒ}    |jtj||fdtjƒ}
|jtj    ||fdtjƒ} |
| |    } | sìqXnt
||| ƒ} t j || ƒqXWqEWxú|j ƒjƒD]æ\}}|jƒ}|jƒxÁt|ƒD]³\}}|jtj|dtjƒ}||kr•qXn|jtj|dtjƒ}|td|ƒ@rÍqXn||}x1|D])\}}}|j|dƒ|||<qÞWqXWq)W|sdSg|jƒD]\}}||dg^q*}tjd|jƒg|ƒdS(Nt ActWeekPartyt    WeekPartyiiitSecondWeekReward(t IpyGameDataPYtGetIpyGameDatat GetTemplateIDt    enumeratetGetSingleTimesRRtDef_PDict_WeekPartyCurTimesR!tDef_PDict_WeekPartyGotTimest__GetAwardItemR t AddDictValuet GetPointAwardtitemstkeystsorttDef_PDict_WeekPartyPointtDef_PDict_WeekPartyAwardRecordtpowRR%t SendMailByKeytGetID(R    R+tactBossIpyDatattemplateIDListt totalItemDicttdayttidListttidtipyDatat singleTimestcurTimestgotTimest    canGotCnttitemDictt    awardDictt    pointListRtpointtcurPointt awardRecordtitemListtitemIDtitemCnttisBindt totalItemList((s_.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerWeekParty.pyR"YsL   %% 
 
&.icCs||s
dStjjtjiƒ}|jtjdƒ}|jtjdƒ}| sZ| r^dStjd|ƒ}|szdS|j    ƒ}|jtj
dƒ}    |    t |ƒkr±dS||    }
d} x(|
D] } | d|krÈ| } PqÈqÈW| södStjd| ƒ} | sdS| j ƒ}|j tj|    | fdtjƒ}|r‹|dkr[|nt|||ƒ}|dkr~dS||}nt||ƒ}||}|dkr´dStj|tj|    | f|tjƒ| jƒ}||||| jƒ}|j tj|    dtjƒ}||}tj|tj|    |tjƒtjd|    | ||fƒt||    | ƒtS(sÔö¼ÓÖÜ¿ñ»¶Ïà¹Ø»î¶¯Íê³É´ÎÊýNiR/idR0sP   Ôö¼ÓÖÜ¿ñ»¶Ïà¹Ø»î¶¯Íê³É´ÎÊý dayIndex=%s, findTid=%s, realAddCnt=%s,addPoint=%s(RRRRRRRR2R3R4tActKey_DayIndextlent GetTotalTimesRRR7R!tminR%R&R6tGetPointR?R R#RR'(R    tactionIDtaddCnttisAddR)R*R+RDREtdayIndext
dayTidListtfindTidRIRJt
totalTimesRLtupdTimest
realAddCntRKtaddPointRStupdPoint((s_.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerWeekParty.pyR…sZ 
  %%  
 & 
 c Csktj|dƒ}tjd|ƒ}|s.dS|jƒ}|jtj||fdtjƒ}|jtj    ||fdtjƒ}|||kr˜dSt
||ƒ}t |ƒ}t j |tj|ƒ}    ||    krëtj|dƒdS||}
tj|tj    ||f|
tjƒx9|jƒD]+\} } tj|| | dtjgƒq(Wt|||ƒdS(sÁìÈ¡ÖÜ¿ñ»¶»î¶¯½±ÀøiR0NtGeRen_chenxin_998371i(R tToIntDefR2R3R6RRR7R!R8R9R[t
ItemCommontGetItemPackSpacet IPY_GameWorldtrptItemR%t
NotifyCodeR&R<t ItemControlertGivePlayerItemR( R    RGt
templateIDRJRKRLRMRPt    needSpacet    packSpacet newGotTimesRVRW((s_.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerWeekParty.pytGetWeekPartyActionAwardºs* %%  
&#cCstj|dƒ}tjjtjiƒ}|jtjdƒ}|jtjdƒ}| sb| rfdSt    j
d|ƒ}|s‚dS|j t j |dt jƒ}||kr±dS|jƒj|iƒ}|jƒ}    |    jƒ||    krïdS|    j|ƒ}
|j t j|dt jƒ} | td|
ƒ@rKtjd||fƒdS||} t| ƒ} tj|tj| ƒ}| |kr™tj|dƒdStj|t j|| td|
ƒBt jƒx6| D].\}}}tj||||tjgƒqÍWt ||ƒdS(NiR/is0 ÁìÈ¡ÖÜ¿ñ»¶»ý·Ö½±Àø£¬ ÒÑÁìÈ¡ day=%s, getPoint=%sRj(!R RkRRRRRRRR2R3RRR?R!R;R=R>tindexR@RAtLogR[RlRmRnRoR%RpR&RqRrR(R    RGtgetPointR)R*R+RDRStpointAwardDictRQtgetIndexRTRURtRuRVRWRX((s_.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerWeekParty.pytGetWeekPartyPointAwardÙsB  
 
  -# cCs\i}xO|jƒD]A\}}}| s| r6qn|j|dƒ||||<qW|S(Ni(t    GetRewardR(R    RJttimesRPRVRWtisbind((s_.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerWeekParty.pyR9þs "cCs\tjjtjiƒ}|jtjdƒ}|jtjdƒ}| sP| rTdStjd|ƒ}|spdS|j    ƒ}|s†dS|dkr´|t
|ƒkr¨dS|g}nt t
|ƒƒ}t j ƒ}    g|    _xX|D]P}
t jƒ} |
| _|jtj|
dtjƒ| _|jtj|
dtjƒ| _g| _xÃ||
D]·} |dkry| |kryqUntjd| ƒ} | s—qUnt jƒ}| |_|jtj|
| fdtjƒ|_|jtj|
| fdtjƒ|_| jj|ƒqUWt
| jƒ| _ |    jj| ƒqâWt
|    jƒ|    _!t"j#||    ƒdS(NiR/iÿÿÿÿR0($RRRRRRRR2R3R4R[trangetChPyNetSendPackttagMCWeekPartyPlayerInfot DayInfoListttagMCWeekPartyDayPlayerInfotDayIndexRRR?R!tPointR@t AwardRecordtTaskListttagMCWeekPartyTaskInfot
TemplateIDR7tCurTimesR8tGotTimestappendtACounttCountt NetPackCommont SendFakePack(R    RGRsR)R*R+RDREt syncDayListtpackDatatcdayttiemInfottIDttipyDatattaskInfo((s_.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerWeekParty.pyRsP              ""         ((cCs¯tjjtjiƒ}|jtjdƒ}|jtjdƒ}| sP| rTdStjd|ƒ}|spdS|j    ƒ}|s†dS|j
ƒ}t j ƒj tjƒd}tjƒ}|jƒt j|jƒ|ƒ|_t j|jƒ|ƒ|_|jƒ|_|jƒ|_|jƒ|_g|_g}    xt|ƒD] \}
} tjƒ} | | _ t!| ƒ| _"x*| D]"} | |    krz|    j#| ƒqzqzWg| _$x€|j|
iƒj%ƒD]f\}}xW|D]O\}}}tj&ƒ}||_'||_(||_)||_*| j$j#|ƒqÕWqÂWt!| j$ƒ| _+|jj#| ƒqCWt!|jƒ|_,g|_-x|    D]} tjd| ƒ}|s©t j.d| ƒqtntj/ƒ}| |_0|j1ƒ|_2|j3ƒ|_4|j5ƒ|_6|j7ƒ|_8g|_9x]|j:ƒD]O\}}}tj&ƒ}||_'||_(||_)d|_*|j9j#|ƒqWt!|j9ƒ|_;|j-j#|ƒqtWt!|j-ƒ|_<t=j>||ƒdS(NiR/iR0s    ÖÜ¿ñ»¶Ä£°å±íÕÒ²»µ½Ä£°å%s(?RRRRRRRR2R3R4R;R t GetGameWorldtGetGameWorldDictByKeytDef_Notify_WorldKey_ServerDayR‚ttagMCWeekPartyInfotCleartGetOperationActionDateStrt GetStartDatet    StartDatet
GetEndDatetEndtDatet GetIsDayResett
IsDayResett GetResetTypet    ResetTypet
GetLVLimittLimitLVR„R5ttagMCWeekPartyDayInfot TemplateListR[tActCntRŽt    PItemInfoR<ttagMCWeekPartyItemtItemIDtItemCnttIsBindt    NeedPointtPCounttDayCntt
ActionInfotErrLogttagMCWeekPartyActionR‹t GetActionTypet
ActionTypeR\t
TotalTimesR6t SingleTimesR^R‡tItemInfoR~RtTCountR‘R’(R    R)R*R+RDRER{t openServerDaytactInfoRHRGt
dayActListtdayInfoRIRRRURVRWRXt    awardItemRJttInfo((s_.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerWeekParty.pyR6s„   
               %                                                (t__doc__RnR RR2R%RqR‚R‘RRRlR RRR"R'RRwR}R9RR(((s_.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerWeekParty.pyt<module>s*                    
    "    ,5        %
.