cehua_wcy
2018-12-21 990c5a5f6e1867b657efea302f1a8f21b0ea9983
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
88
89
90
91
92
93
94
95
96
97
T\c@sµddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z ddl Z ddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZdd„Zd„Zd„Zed„Zd„Z ed„Z!d    „Z"d
„Z#d d&d „ƒYZ$d d'd„ƒYZ%e%ƒZ&d„Z'd„Z(d„Z)d„Z*d„Z+d„Z,d„Z-d„Z.gd„Z/d„Z0ed„Z1ged„Z2d„Z3d„Z4d„Z5ge6d„Z7d„Z8d „Z9ed!„Z:d"„Z;ed#„Z<ge6d$„Z=d%„Z>dS((iÿÿÿÿNicCs|j||tjƒS(N(tNomalDictGetPropertytChConfigtDef_PDictType_Success(t    curPlayertkeyt defaultValue((s].\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerSuccess.pyt GetPDictValue6scCstj|||tjƒdS(N(t PlayerControltNomalDictSetPropertyRR(RRtvalue((s].\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerSuccess.pyt SetPDictValue=scCstj|tj|ƒS(N(t    GameWorldtGetDictValueByBitRtDef_PDict_Success_FinishTime(RtsuccID((s].\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerSuccess.pytGetSuccIsFinishAscCstj|tj||ƒS(N(R tSetDictValueByBitRR (RRtfinish((s].\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerSuccess.pyt SetSuccFinishEscCstj|tj|ƒS(N(R R RtDef_PDict_Success_AwardRecord(RR((s].\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerSuccess.pyt GetSuccHasGotIscCs‚t||ƒ|krdStj|tj||ƒ|r~t||dƒt||gtƒtj    ||ƒt
j ||ƒndS(Ni( RR RRRRtSync_SuccTypeIndexAwardRecordtTruetPlayerMagicWeapontActiveMagicWeapont
EventShelltEventRespons_SuccessFinish(RRthasGot((s].\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerSuccess.pyt SetSuccHasGotMscCs'tj||f}t|||ƒdS(N(RtDef_PDict_Success_CntValueR
(RtsuccTypet    conditionR    R((s].\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerSuccess.pytSetSuccFinishValue]scCs tj||f}t||ƒS(N(RRR(RRRR((s].\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerSuccess.pytGetSuccFinishValuecst SuccessDatacBseZd„ZRS(cCspd|_d|_d|_g|_g|_i|_i|_d|_i|_t    |_
d|_ i|_ dS(Ni( RRtneedCntt preSuccIDListRt awardItemDictt    moneyDicttexptattrDictRthasAwardt redPacketIDtmagicWeaponExp(tself((s].\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerSuccess.pyt__init__ms                                                (t__name__t
__module__R-(((s].\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerSuccess.pyR"kstSuccessDataMngcBs,eZd„Zd„Zd„Zd„ZRS(cCsi|_i|_dS(N(tsuccTypeConditionDicttsuccessDataDict(R,((s].\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerSuccess.pyR-ƒs        c     CsÝ||jkrdStjdi|d6ttƒ}|s<dSi}i}x|D]y}tƒ}|jƒ|_||_|j    ƒ|_
t |j ƒƒ|_ t |jƒƒ|_|jƒ|_|jƒ|_|jƒ|_|jƒ|_|jƒ|_|jƒ}|jƒ}|r.|r.||j|<nt|jpd|jpd|jpd|jpd|jpd|jƒ|_|||j<t|jƒ|kr«|jg|t|jƒ<qO|t|jƒj |jƒqOW||j|<dS(NtSuccesstType(!R2t IpyGameDataPYtGetIpyGameDataByConditionRtFalseR"tGetIDRRt
GetNeedCntR#tlistt GetPreSuccessR$t GetConditionRt GetAwardItemR%tGetMoneyR&tGetExpR't GetAwardAttrR(tGetRedPacketIDR*tGetMagicWeaponIDtGetMagicWeaponExpR+tboolR)ttupletappend(    R,RtsuccessDataListtsuccessDataObjDictt conditionDicttsuccessIpyDatatsuccDatat magicWeaponIDR+((s].\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerSuccess.pyt__LoadSuccessData‹s<            ? ! cCs8||jkr|j|ƒn|jj|iƒjƒS(N(R2t _SuccessDataMng__LoadSuccessDatatgettvalues(R,R((s].\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerSuccess.pytGetSuccDataByType³scCsctjd|ƒ}|sdS|jƒ}||jkrG|j|ƒn|jj|iƒj|ƒS(NR3(R5tGetIpyGameDataNotLogtGetTypeR2RNRO(R,Rt succIpyDataR((s].\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerSuccess.pytGetSuccessDataÄs (R.R/R-RNRQRU(((s].\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerSuccess.pyR0~s        (    cCstS(N(t g_succDataMng(((s].\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerSuccess.pytGetSuccDataMngÖscCsdt|ƒt|ƒt|ƒx?tjD]4}tƒj|ƒ}|sLq(nt|||ƒq(WdS(N(tSync_SuccessInfoRt__CheckOldPlayerSuccesst ShareDefinetSuccessTypeListRWRQt__DoCheckSuccessFinish(RRt succInfoList((s].\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerSuccess.pyt SuccOnLoginÜs
 
 
c'Csk    tjƒjtjƒ}tjtjtjtjtj    tj
tj tj tj tjtjtjtjtjtjtjtjtjtjtjtjtjtjtjtjtjtjtj tj!tj"g}t#|t$j%ƒ}||kr
tj&d|j'ƒƒdStj&d|ƒt(j)ƒ}x|D]û}|tjkræxãt*|j+ƒƒD]‰}|j,|ƒ}|j'ƒ}t-j.||ƒ}    |    s•qVn|j/t$j0|ƒ}
x1t*|
dƒD]} t1||d|| gƒq¼WqVWq.|tjkr#|j/t$j2ƒ} t1|tjd| gƒq.|tjkrž|j3|j4ƒdƒj5ƒ} xÕt*d| dƒD]2}|j/t$j6|ƒ}t7||||gƒqeWq.|tjkrWt8||ƒxlt*|j9ƒƒD]ƒ}|j:|ƒ}|j;ƒ}|j/t$j<|dt$j=ƒ} | sqÍnx4t*d| dƒD]}t1||d||gƒq-WqÍWq.|tj>krðt8||ƒx³t$j?j@ƒD]f\}}xW|D]O}tAjB|||ƒ}x1t*d|dƒD]}t1||d|gƒqÅWq–WqƒWq.|tj    tj
tj tjgkr!tC|ƒq.|tj tj gkrItDjE|ƒq.|tj!tj"gkrqtFjG|ƒq.|tjkr™t7|||jHƒƒq.|tjkrjt8||ƒ|jIƒjJtjKƒ}xYtL|jMƒƒD]ƒ}|jN|ƒ}|jOƒrqàn|jPtjQƒ}|jPtjRƒ}x5t*|dƒD]#} t1||d|| dgƒq<WqàWq.|tjtjtjgkr˜tSjT|ƒq.|tjkrÒ|j/t$jUƒ}t1||d|gƒq.|tjtjtjgkrtVjW|ƒq.|tjkr–|jXƒ}x tLd|jYƒƒD]^}|jZ|ƒ}|j[ƒt$j\t$j]gkr1|j^ƒ}t7||||j_ƒgƒq1q1Wq.|tjkrµt`ja|ƒq.|tjkr%t(jbddiƒ}|jcƒ} xA| D]2}!|j/t$jd|!ƒ}"t7|||"|!gƒqìWq.|tjkrY|j/t$jeƒ}#t7|||#ƒq.|tjkr‡t1||d|jfƒgƒq.|tjkrt8||ƒxƒt*|jgƒƒD]R}|jh|ƒ}tji|t$jj|j'ƒƒr¶t1||d|jkƒgƒq¶q¶Wq.|tjkr„xt*|jlƒƒD]L}|jm|ƒ}tji|t$jn|ƒr1t1||d|joƒgƒq1q1Wq.|tjkr¼t8||ƒt1||tpjq|ƒƒq.|tj kr.trƒjs|ƒ}$xI|$D]>}%|%jtd}&tujv||&ƒrät1||d|&gƒqäqäWq.q.Wtwjx|ƒty|t$j%|ƒtj&d||j'ƒƒdS(sK ³É¾Í°æ±¾¸üÐÂÀÏÍæ¼Ò¼ì²é  Ã¿´ÎÆô¶¯·þÎñºó Íæ¼ÒµÚÒ»´ÎÉÏÏß¼ì²é³É¾ÍÍê³ÉÇé¿ö
    s*    ±¾´Î¿ªÆô·þÎñÆ÷´¦Àí¹ý³É¾Í¼ì²é,²»ÔÙ´¦Àí Ns(¸üÐÂÀÏÍæ¼ÒÉÏÏß¼ì²é³É¾ÍcurCheckVersion=%siitFamilyTechNeedLVs)¸üÐÂÀÏÍæ¼ÒÉÏÏß¼ì²é³É¾ÍupdCheckVersions=%s(zR t GetGameWorldtGetGameWorldDictByKeyRZt%Def_Notify_WorldKey_InitGameWorldTimetSuccType_GetMagicWeapontSuccType_PassRuneTowertSuccType_GodWeapontSuccType_HorseAllLVtSuccType_EquipColorItemtSuccType_EquipArmortSuccType_EquipWeapontSuccType_InlayRunetSuccType_RuneLvUptSuccType_RealmlvUptSuccType_PetClassLVtSuccType_InlayStone1tSuccType_InlayStone2tSuccType_XJMJGetExptSuccType_EquipWashLV1tSuccType_EquipWashLV2tSuccType_EquipWashLV3tSuccType_EquipWingtSuccType_MWSkillUptSuccType_EquipSuittSuccType_FamilyTechLVtSuccType_AlchemyLVtSuccType_VIPLVtSuccType_StoneTotalLVt SuccType_XBXZtSuccType_DogzBattletSuccType_DogzEquipPlustSuccType_MainTaskNodetSuccType_InlayGatherSoultSuccType_GatherSoulLvUpRRtDef_PDict_Success_CheckVersiontDebugLogR8R5tIPY_DatatxrangetGetTreasureCounttGetTreasureByIndexRtGetIsActiveMagicWeaponRtDef_PDict_MagicWeaponLVtDoAddSuccessProgresst!Def_Player_Dict_TrialTower_PassLVtGetGodWeaponByIndextGetGodWeaponCountRStDef_PDict_GodWeaponLVtUptateSuccessProgresstResetSuccessByTypet GetHorseCounttGetHorseByIndext
GetHorseIDtDef_PDict_Horser_LVtDef_PDictType_HorsetSuccType_EquipPlusLVtPack_EquipPart_CanPlusStartitemstChEquiptGetEquipPartStarLVtDoEquipSuccessLogict
PlayerRunetDoRuneSuccessLogictPlayerGatherSoultDoGatherSoulSuccessLogictGetOfficialRanktGetItemManagertGetPacktrptPettrangetGetCounttGetAttIsEmptyt GetUserAttrtDef_IudetPet_NPCIDtDef_IudetPet_ClassLVtOperate_EquipStonetDoStoneSuccesst!Def_PDict_BZZD_TotalFightExpPointtOperate_EquipWashtEquipWashSuccesstGetSkillManagert GetSkillCounttGetSkillByIndext GetFuncTypetDef_SkillFuncType_FbSkilltDef_SkillFuncType_FbSPSkillt
GetSkillLVtGetSkillTypeIDtOperate_EquipSuitComposetDoSuiteSuccesstGetFuncEvalCfgtkeystDef_Player_Dict_FamilyTechLVtDef_PDict_AlchemyLVtGetVIPLvt GetXBXZCounttGetXBXZByIndexR tDef_PDict_XBXZAwardRecordtGetMWIDt GetDogzCounttGetDogzByIndextDef_PDict_DogzFightStatet    GetDogzIDt
PlayerDogztGetFightDogzTotalPlusLvRWRQRt QuestCommontGetHadFinishMainMissiontDataRecordPacktDR_CheckOldPlayerSuccessR
('RtinitGameWorldTimetNeedCheckSuccTypeListtcurCheckVersiont
ipyDataMgrRtittreasureIpyDataRLtisActivetcurMWLVtlvtpasslvtmaxTypetweaponLVtipyDatatindextrlvtpTypet    indexListtequipPartStarLVtpluslvt petDataPackt petDataIndextpetItemtpetNPCIDtclassLVtexpPointRecordt skillManagertcurSkillt
curSkillLVttechNeedLVDictt
techIDListttechIDttechLVt    alchemyLVR]RKt    missionID((s].\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerSuccess.pyRYñs     $  $  %$   (  &   &&   $ cCsýg}tjdƒ}x¸|D]°}tƒj|ƒ}|s@qnx‰|D]}|j}|j}t|||ƒswqGnt|||dƒt||t    ƒt
||t    ƒ|j |ƒt j d|ƒqGWqW|rùt||tƒt||tƒndS(NtWeekResetSuccTypeis"    OnWeek ÖØÖóɾÍÀàÐÍ: succID=%s(R5R¹RWRQRRR!R RR7RRFR R‚RRRX(Rt    resetListtweekResetSuccTypeListRR]t succDataObjRR((s].\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerSuccess.pytOnWeek”s(           c    Csg}tjƒjtjƒ}tjd|ƒxÄtjD]¹}tƒj|ƒ}|s]q9nx’|D]Š}|j    }|j
}t ||ƒ}|dks¦t ||ƒr¹tjdƒqdnt |||ƒrdt|||dƒ|j|ƒqdqdWq9W|rt||tƒndS(NsÁ¬ÐøÀàÐͳɾ͹ýÌì...serverDay=%sis        ÒÑÍê³ÉµÄ²»ÔÙ¼ì²é(R R`RaRZtDef_Notify_WorldKey_ServerDayR‚tContinueSuccessTypeListRWRQRRRRt__DoCheckResetContinueR RFRXR(    RRït    serverDayRR]RñRRt
finishTime((s].\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerSuccess.pyt    SuccOnDay­s(          cCs·tj|}t||ƒ}|dkr,dSttjƒƒ}tj|tjƒ}tj|tjƒ}||tj    dƒkr’tj
dƒdSt ||dƒtj
d|ƒt S(Nièis,        ×òÌìÓиüеIJ»´¦Àí£¬Ö¤Ã÷»¹ÊÇÁ¬Ðø×´Ì¬is    ÖØÖóɾÍÁ¬ÐøÀàÐÍ: succID=%s( RtDef_PDict_Success_LastDayRtintttimeR tChangeTimeNumToDatetimetTYPE_Time_Format_Daytdatetimet    timedeltaR‚R
R(RRöRt
lastDayKeytlastDayttick((s].\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerSuccess.pyRõÐs   cCs†tƒj|ƒ}|sdSxc|D][}|j}|j}t||ƒ}|dks#t||ƒrkq#nt|||dƒq#WdS(Ni(RWRQRRRRR (RRR]RñRRR÷((s].\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerSuccess.pyRæs         cCs´t|tjƒt|tjƒt|tjƒtj}|jƒj|ƒ}x_t    |j
ƒƒD]K}|tj kr|qan|j |ƒ}|j ƒrqan|jtjƒ}|sÄ|jƒ}n|jƒ}tj|ƒ}|tjtjtjgkrt|tjd||gƒn|tjkrMt|tjd|||gƒqa|tjkr~t|tjd|||gƒqa|tjkrat|tjd||gƒqaqaWdS(Ni(RRZRgRhRit IPY_GameWorldtrptEquipR R¡R„R¤t RoleEquipTypeR¥R¦R§tDef_IudetItemColort GetItemColortGetItemQualityt
ItemCommontGetItemClassLVtretWingtretGuardtretHorseR‰RtBaseEquipPlace_WeapontBaseEquipPlace_ArmorRt(RtpackTypet playerEquipt
equipIndextcurEquipt    itemColort itemQualityRã((s].\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerSuccess.pyRš÷s2      ""#cCs±|tjkrdStƒj|ƒ}|s/dSd}x<|D]4}t|||ƒsZq<nt|||jƒ}Pq<W|dkr„dS||kr­t|||||tƒndS(Niÿÿÿÿ(    RZR[RWRQt__CheckCanAddSuccessR!RR‰R7(Rt successTypetnewCntRR]tcurCntRK((s].\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerSuccess.pyRŽs    c Cs‘|j}|j}|j}|tjk}|tjk}t||ƒsWt||ƒr[dS|j}x2|D]*}    t||    ƒ rkt||    ƒ rkdSqkWt    |ƒdkr|rÈ|d|krŠdSq|tj
kr|d|doþ|d|ddksŠdSqt    |ƒt    |ƒkr$dS|r:||kr:dS|st }
x4t |ƒD]&\} } | || krSt }
PqSqSW|
rŠdSqnt S(Ni(RRRRZtUnDownCheckSuccessTypeListtContainSuccessTypeListRRR$tlentMultipleSuccessTypeListR7t    enumerateR( RRñRRRtcondt isUnDownCheckt    isContainR$t    preSuccIDtisbreakRÐtnum((s].\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerSuccess.pyR1s>                  *
cCs¼|sF||jtjƒtjtjkr0dS|jtj|ƒn|jƒ}|tjkredStjj|ƒ}x>|j    ƒD]0\}}t
||d|t |dƒt ƒq„WdS(Nii( t GetTickByTypeRtTYPE_Player_Tick_SuccesstTYPE_Player_Tick_Timet SetTickByTypeR8t
PyGameDatatg_delaySuccessDicttpopR—R‰R:R7(RRtisFinishtplayerIDt successDictt
sucessInfotcnt((s].\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerSuccess.pytFinishDelayAddSuccessProgress]s (c    Cs‚|jƒ}|r|tjkr|tjkr@itj|<n|t|ƒf}|tj|kry|tj||<n tj|||tj||<dS|rÖt|ƒtgƒkrÖtjdt|fƒdS|tj    krédSt
ƒj |ƒ}|stj d|ƒdSd}g}    g}
g} t tjƒƒ} x»|D]³} | j}| j}t|| |ƒswqGn|
j|ƒ| j| ƒ| j}||    kr¶|    j|ƒn||krË|}n|tjkrGtj|}t||| ƒqGqGW|     s|dkrdSxF|    D]>}t|||ƒ}t|||ƒ}t||||ƒqWt||
tƒt||| ƒdS(Ns1DoAddSuccessProgress type=%s, condition=%s ´íÎó£¡s     ÕÒ²»µ½³É¾ÍÊý¾ÝsuccessType=%si(R8RZtNeedResetSuccessTypeListR)R*REttypeR tErrLogR[RWRQR‚RúRûRR#RRFRRôRRùR
R!tminR RXR7R\(RRtaddCntRt    delayCalcR-t successTupleR]tmaxCnttupdConditionListt    updIDListtupdsuccDataListRRñRR#t curConditionRRtupdCnt((s].\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerSuccess.pyR‰ys^                         c CsY|tjtjgk}tjtjƒƒ}|jƒ}x|D]}|j}|j}t    ||ƒ}    |    dks@t
||ƒrˆq@nt |||j ƒ}
|
|kr@t ||ƒ|jsÏt||ƒnt|||ƒ|rtjdd||gƒnx0|jjƒD]} tj|| |tjƒqWtjd|||fƒq@q@WdS(NitAncientBattlefield_1s&    Íê³É³É¾ÍsuccID=%s, type=%s,time=%s(RZtSuccType_ElderBattlefieldKillt SuccType_ElderBattlefieldConKillR tChangeTimeStrToNumtGetCurrentDataTimeStrtGetNameRR#RRR!RRR)RtNotify_FinishSuccessRt WorldNotifyR+Rºt EventReporttWriteEvent_MWSuccessRt CME_Log_StartR‚( RRR]t    isNeedSystcurTimet
playerNameRñRR#R÷RtmwID((s].\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerSuccess.pyR\Ðs,                    c Cs(gtdƒD] }i^q }i}tjƒ}x™t|jƒƒD]…}|j|ƒ}|jƒ}|jƒ}|s}qDnt||ƒs’qDnx4|j    ƒD]&\}    }
|j
|    dƒ|
||    <qŸWqDWt j d|ƒx-|j    ƒD]\}    }
t j|    |
|ƒqëWt j|tj|ƒdS(Niis    ³É¾ÍÔö¼ÓÊôÐÔ attrDict=%s(R£R5RƒR„tGetSuccessCounttGetSuccessByIndexR8R@RR—ROR R‚RtCalcAttrDict_TypetSetCalcAttrListValueRtDef_CalcAttrFunc_Success( Rt_t allAttrListR(RÏRÐRØRt attrAwardDicttattrIDt    attrValue((s].\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerSuccess.pytCalcSuccessAttrþs$   "cCs!t|ƒtj|ƒjƒdS(N(RXRtRefreshPlayerAttrState(R((s].\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerSuccess.pytRefreshSuccessAttrs
cCs=tjƒ}|jƒg|_|r.|}nWg}tjƒ}xBt|jƒƒD].}|j|ƒ}|j    ƒ}|j
|ƒqSWi}    xæ|D]Þ}t ƒj |ƒ}
|
s¶q’n|
j } |
j} t|| | ƒ} t||ƒ}| r    | dkr    | r    q’nt||ƒrq’n| |    kr@| | gg|    | <q’| | g|    | kr’|    | j
| | gƒq’q’W|    s~dSx–|    jƒD]ˆ\}}xy|D]q\} }tjƒ}|jƒ||_| rÛt| ƒnd|_t|jƒ|_||_|jj
|ƒqžWq‹Wt|jƒ|_tj||ƒdS(Nis[0](tChPyNetSendPackttagMCSuccessInfoListtCleartSuccessInfoListR5RƒR„RNROR8RFRWRURRR!RRR—ttagMCSuccessInfotSuccTypetstrt    ConditionRtLentCntValuetcountt NetPackCommont SendFakePack(Rt
succIdListt
isSendZerotsuccInfoListPackt
syncIdListRÏRÐRØRt syncTypeDictRKRRRdtisfinishtsTypet conditionListtcntValuetsuccInfo((s].\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerSuccess.pyRX sT 
                     
        cCs3tjƒ}|jƒ||_tj||ƒdS(N(R[ttagMCSuccessFinishR]tSuccIDRfRg(RRR÷tsuccFinishPack((s].\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerSuccess.pyREYs
 
    cCsvg}xi|D]a}tƒj|ƒ}xF|D]>}|j}t||ƒr,t||ƒ r,|j|ƒq,q,Wq W|S(N(RWRQRRRRF(RtsuccessTypeListtsuccListRR]RñR((s].\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerSuccess.pytGetCanGetAwardSuccByTypebs      cCspi}xc|D][}t|||ƒ}|s1q nx4|jƒD]&\}}|j|dƒ|||<q>Wq W|S(Ni(t__DoGetSuccTypeIndexAwardR—RO(Rt
succIDListt
isGiveItemt    awardDictRR%titemIDtitemCnt((s].\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerSuccess.pyt GiveSuccAwardms "cCs/tjƒj|ƒ}|j}t||ƒdS(N(R tGetPlayerManagertGetPlayerByIndexRsRx(RÙt
clientDataRRR((s].\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerSuccess.pytOnGetSuccessAward‚s     cCsctjd|ƒtƒj|ƒ}|s>tjd|ƒdSt||ƒ}|dkrjtjdƒdSt||ƒrŠtjdƒdS|js¤tjdƒdS|j}|r÷tj    |t
j ƒ}t |ƒ}||kr÷t j|dƒdSnt||ƒ|rTxG|jƒD]6\}}    tj|||    dt
j t
jgtƒ}
qWnx0|jjƒD]\} } t j|| | ƒqdW|jr¬t j |ƒj|jƒn|jrÂt|ƒn|jrêtj||jtj|ƒn|jrExO|jjƒD];\} }t j!|| |ƒt"j#|| |t$j%dƒqWntjd    ||jfƒ|S(
NsÁìÈ¡³É¾Í½±ÀøsuccID=%ss    ³É¾ÍÊý¾Ý²»´æÔÚ£¡succID=%sis    ¸Ã³É¾ÍδÍê³É£¡s    ¸Ã³É¾Í½±ÀøÒѾ­ÁìÈ¡¹ý£¡s    ¸Ã³É¾ÍûÓÐÅäÖý±Àø£¡tGeRen_chenxin_998371is%    OK! awardItemDict=%s moneyDict=%s(&R R‚RWRURRR)R%R    tGetItemPackSpaceRtrptItemRRt
NotifyCodeRR—t ItemControlertGivePlayerItemt rptAnyWhereRR&t    GiveMoneyR'tAddExpR(RZR*tPlayerFamilyRedPackettCreatRedPacketByIDt State_NoGotR+RtAddMagicWeaponUpExpRGRHRt CME_Log_End(RRRzRKR÷titemDictt    packSpacet    needSpaceR|R}tisPutInt    moneyTypeR    RMtaddExp((s].\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerSuccess.pyRx‹sR                                #c Cs.|r1g}xq|D]}|j|dƒqWnOtjƒ}|jƒ}|sSdS|j|dƒjƒ}t|ddƒ}tjƒ}|j    ƒg|_
xf|D]^}    |j t j |    ƒ}
| rÖ|
rÖq¦ntjƒ} |    | _|
| _|j
j| ƒq¦Wt|j
ƒ|_tj||ƒdS(Nii(RFR5RƒRNROR8R£R[t!tagMCSuccessFinishAwardRecordListR]t
RecordListRRRttagMCSuccessFinishAwardRecordt RecordIndextRecordRt    RecordCntRfRg( RRyt
isSyncZerotrecordIndexListRRÏtsuccCntt    maxSuccidt succFARPackRÐt awardRecordt
recordInfo((s].\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerSuccess.pyRÜs0    
              cCsN|tjkr%t|tj|ƒn%|tjkrJt|tj|ƒndS(N(RtDef_FBMapID_BZZDR‰RZt SuccType_BZZDtDef_FBMapID_IceLodetSuccType_IceLode(RtmapIDtaddCount((s].\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerSuccess.pytAddEnterFBSuccessús
(((?RZRR R[RfR    RRR‡RRŒRR5RR)RGRþRûtmathR˜R›RªR­R·RÆRÈRÊRR
RRRRRR R!R"R0RVRWR^RYRòRøRõRRšRŽRR1R‰R\RXRZR7RXRERwR~R‚RxRRª(((s].\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerSuccess.pyt<module>sx                                                  R                £        #            '     , W    .         9                      Q