cehua-HWJ35
2019-03-07 0a005f6c7b55396a0beb0a64634e6e7c91cc19ec
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
¶¼€\c@s6dZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z ddl Z ddlZddlZd„Zd„Zd„Zd„Zdeeed„Zd    „Zd
„Zd „Zdd „Zddd „Zd„ZdS(sVersion = 2018-07-12 16:50iÿÿÿÿNcCsZt|ƒ}|sVtjjtjiƒ}t|ƒ|jtjƒrVt|ƒqVndS(N(    t__CheckPlayerWeekPartyActiont
PyGameDatatg_operationActionDicttgett ShareDefinetOperationActionName_WeekPartytSyncWeekPartyInfot ActKey_StatetSyncWeekPartyPlayerInfo(t    curPlayertisResettactCostRebateInfo((soE:\SnxxServerCode\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    ((soE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerWeekParty.pyt RefreshOperationAction_WeekParty1s cCsª|jƒ}tjjtjiƒ}|jtjdƒ}|jtjdƒ}|jt    j
ƒ}|ròt |t    j |t tt ƒt |t    jdt t ƒt |t    jtj|ƒt tt ƒt |t    jtj|ƒt tt ƒt|ƒn|jt    jdt    jƒ}||krdSt|ƒ|r=t||ƒn|sctjdƒ|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_TowertFalsetTruetDef_WPAct_LogintDef_WPAct_StonetOperate_EquipStonetGetTotalStoneLVtDef_WPAct_GodWeapontPlayerGodWeapontGetGodWeaponTotalLVRtDef_PDict_WeekPartyIDtDef_PDictType_WeekPartytCheckWeekPartyActionCntt__SendWeekPartyMailR tDebugLogtClearNomalDictt PlayerControltNomalDictSetPropertyR(R    tplayerIDtactWeekPartyInfotstatetcfgIDtpasslvtplayerWeekPartyID((soE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerWeekParty.pyR;s0 %%  
 
cCs~tjd|ƒ}|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ÞWtj|||ƒqXWq)W|s0dSg|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_WeekPartyAwardRecordtpowRtDataRecordPacktDR_WeekPartyPointR-t SendMailByKeytGetID(R    R2tactBossIpyDatattemplateIDListt totalItemDicttdayttidListttidtipyDatat singleTimestcurTimestgotTimest    canGotCnttitemDictt    awardDictt    pointListRtpointtcurPointt awardRecordtitemListtitemIDtitemCnttisBindt totalItemList((soE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerWeekParty.pyR*asN   %% 
 
.icCs—tj||||||ƒ|s&dStjjtjiƒ}|jtjdƒ}|jtjdƒ}|srdS| rŒ|t    j
krŒdSt j d|ƒ}    |    s¨dS|    j ƒ}
|jtjdƒ} | t|
ƒkrßdS|t    j
kr¬t} x¨t|
| ƒD]–\} }d}x(|D] }|d|kr|}PqqW|sNqnt j d|ƒ}|slqn|jƒ}||krŠqn| | } t} PqW| s¬dSn|
| }d}x(|D] }|d|krÃ|}PqÃqÃW|sñdSt j d|ƒ}|s dS|jƒ}|jt    j| |fdt    jƒ}|r†|dkrV|nt|||ƒ}|dkrydS||}n&| r||krdSt||ƒ}||}|dkrÆdStj|t    j| |f|t    jƒ|jƒ}|||||jƒ}|jt    j| dt    jƒ}||}tj|t    j| |t    jƒtjd| |||fƒ|r“t|| |ƒntS(sÔö¼ÓÖÜ¿ñ»¶Ïà¹Ø»î¶¯Íê³É´ÎÊýNiR5idR6sP   Ôö¼ÓÖÜ¿ñ»¶Ïà¹Ø»î¶¯Íê³É´ÎÊý dayIndex=%s, findTid=%s, realAddCnt=%s,addPoint=%s( tPlayerFeastWeekPartytAddFeastWeekPartyActionCntRRRRRRRRtAheadFinishWPActListR8R9R:tActKey_DayIndextlenRR;t GetTotalTimesRRR=R(tminR-R.R<tGetPointRER R+R(R    tactionIDtaddCnttisAddt isCompatibletisSyncR0R1R2RLRMtdayIndextisFindROt
dayTidListtfindTidRQRRt
totalTimesRTtupdTimest
realAddCntRStaddPointR[tupdPoint((soE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerWeekParty.pyRŽs    
 
  %%  
 & 
 cCs^tjƒ}xKtjD]@}|tjkr¡x(t|jƒƒD]\}|j|ƒ}|jƒ}|j    tj
|dtj ƒ}|r>t |||t ƒq>q>Wq|tjkr.|jƒjtjƒ}x‹t|jƒƒD]L}|j|ƒ}    |    jƒrqÛn|    jtjƒ}
t |||
t ƒqÛWq|tjkr xt|jƒƒD]I}|j|ƒ}tj|tj|ƒrPt |||jƒt ƒqPqPWq|tj krtj!ddƒ} x’td| dƒD]z} |j    tj"| dƒ} | sqÕnt#j$| ƒ}tj%ƒj&|ƒ}|s0qÕn|j'ƒ}t |||t ƒqÕWqqWdS(Nit
RuneUnlockii((R8tIPY_DataRRdtDef_WPAct_HorseRt GetHorseCounttGetHorseByIndext
GetHorseIDRtDef_PDict_Horser_LVtDef_PDictType_HorseRRt Def_WPAct_PettGetItemManagertGetPackRtrptPettrangetGetCounttGetAttIsEmptyt GetUserAttrtDef_IudetPet_NPCIDtDef_WPAct_Dogzt GetDogzCounttGetDogzByIndexR tGetDictValueByBittDef_PDict_DogzFightStatet    GetDogzIDtDef_WPAct_Runet
GetFuncCfgtDef_PDict_Rune_Datat ItemControlert GetRuneItemIDt GetGameDatatGetItemByTypeIDt GetItemColor(R    t
ipyDataMgrt
actionTypeRRRtindextlvt petDataPackt petDataIndextpetItemtpetNPCIDt runeHoleCnttholeNumtruneDatat
runeItemIDtitemDatat    itemColor((soE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerWeekParty.pyR)àsF   # 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ÁìÈ¡ÖÜ¿ñ»¶»î¶¯½±ÀøiR6NtGeRen_chenxin_998371(R tToIntDefR8R9R<RRR=R(R>R?Rft
ItemCommontGetItemPackSpacet IPY_GameWorldtrptItemR-t
NotifyCodeR.RBR“tGivePlayerItemR( R    ROt
templateIDRRRSRTRURXt    needSpacet    packSpacet newGotTimesR^R_((soE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerWeekParty.pytGetWeekPartyActionAwards* %%  
&#cCs#tj|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|||dtjgƒqÍWt ||ƒt!j"|||ƒdS(NiR5is0 ÁìÈ¡ÖÜ¿ñ»¶»ý·Ö½±Àø£¬ ÒÑÁìÈ¡ day=%s, getPoint=%sR¦(#R R§RRRRRRRR8R9RRRER(RARCRDRšRFRGtLogRfR¨R©RªR«R-R¬R.R“R­RRHRI(R    ROtgetPointR0R1R2RLR[tpointAwardDictRYtgetIndexR\R]R¯R°R^R_R`((soE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerWeekParty.pytGetWeekPartyPointAward$sD  
 
  -# cCs\i}xO|jƒD]A\}}}| s| r6qn|j|dƒ||||<qW|S(Ni(t    GetRewardR(R    RRttimesRXR^R_tisbind((soE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerWeekParty.pyR?Js "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(NiR5iÿÿÿÿR6($RRRRRRRR8R9R:RfR„tChPyNetSendPackttagMCWeekPartyPlayerInfot DayInfoListttagMCWeekPartyDayPlayerInfotDayIndexRRRER(tPointRFt AwardRecordtTaskListttagMCWeekPartyTaskInfot
TemplateIDR=tCurTimesR>tGotTimestappendtACounttCountt NetPackCommont SendFakePack(R    ROR®R0R1R2RLRMt syncDayListtpackDatatcdayttiemInfottIDttipyDatattaskInfo((soE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerWeekParty.pyRTsP              ""         ((cCs¶tjjtjiƒ}|jtjdƒ}|jtjdƒ}|sLdStjd|ƒ}|shdS|j    ƒ}|s~dS|j
ƒ}t j ƒj tjƒd}tjƒ}|jƒt j|jƒ|ƒ|_t j|jƒ|ƒ|_|jƒ|_|jƒ|_|jƒ|_|jƒ|_g|_g}    xt |ƒD] \}
} tj!ƒ} | | _"t#| ƒ| _$x*| D]"} | |    kr|    j%| ƒqqWg| _&x€|j|
iƒj'ƒD]f\}}xW|D]O\}}}tj(ƒ}||_)||_*||_+||_,| j&j%|ƒqÜWqÉWt#| j&ƒ| _-|jj%| ƒqJWt#|jƒ|_.g|_/x|    D]} tjd| ƒ}|s°t j0d| ƒq{ntj1ƒ}| |_2|j3ƒ|_4|j5ƒ|_6|j7ƒ|_8|j9ƒ|_:g|_;x]|j<ƒD]O\}}}tj(ƒ}||_)||_*||_+d|_,|j;j%|ƒqWt#|j;ƒ|_=|j/j%|ƒq{Wt#|j/ƒ|_>t?j@||ƒdS(NiR5iR6s    ÖÜ¿ñ»¶Ä£°å±íÕÒ²»µ½Ä£°å%s(ARRRRRRRR8R9R:RAR t GetGameWorldtGetGameWorldDictByKeytDef_Notify_WorldKey_ServerDayR»ttagMCWeekPartyInfotCleartGetOperationActionDateStrt GetStartDatet    StartDatet
GetEndDatetEndtDatetGetAdvanceMinutestAdvanceMinutest GetIsDayResett
IsDayResett GetResetTypet    ResetTypet
GetLVLimittLimitLVR½R;ttagMCWeekPartyDayInfot TemplateListRftActCntRÇt    PItemInfoRBttagMCWeekPartyItemtItemIDtItemCnttIsBindt    NeedPointtPCounttDayCntt
ActionInfotErrLogttagMCWeekPartyActionRÄt GetActionTypet
ActionTypeRgt
TotalTimesR<t SingleTimesRiRÀtItemInfoR¸RÉtTCountRÊRË(R    R0R1R2RLRMRµt openServerDaytactInfoRPROt
dayActListtdayInfoRQRZR]R^R_R`t    awardItemRRttInfo((soE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerWeekParty.pyR‚s†   
               %                                                (t__doc__RªR RR8R-R“R»R"RbRHR%RÊRRR¨R RRR*RRRR)R²R·R?RR(((soE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerWeekParty.pyt<module>s4                        
    &    -R    %        &
.