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
´Ä\c@s<ddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z ddl Z dZdZd„Zd„Zd„Zd„Zd„Zd„Zd    „Zd
„Zd „Zded „Zd „Zd„Zd„Zd„ZdS(iÿÿÿÿNicCst|dtƒdS(NtisLogin(tSycn_EquipWashInfotTrue(t    curPlayer((si.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\Operate_EquipWash.pytOnEquipWashLogin&sc
Cs@t|ƒ}|sdStjd|dƒ}|s6dS|jƒjtjƒ}|j|ƒ}| sp|jƒr…t    j
d|ƒdSt j |ƒ}t |ƒ}||krÊt    j
d|||fƒdS||kr||}|st    j
d|||fƒdS|St|ƒ}    ||    kr(||    S|jtj|ƒdS(NisEquipWashGroup%sis(¸Ã×°±¸Î»Ã»ÓÐ×°±¸,ÎÞ·¨Ï´Á·£¡equipPlace=%ss?¸Ã×°±¸Î»×°±¸½×¼¶=%s < minClassLVCfg(%s),ÎÞ·¨Ï´Á·£¡equipPlace=%ss8¸Ã×°±¸Î»×°±¸½×¼¶=%s,maxWashLV=%s,ÎÞ·¨Ï´Á·£¡equipPlace=%si(tGetEquipWashTypet IpyGameDataPYtGetFuncEvalCfgtGetItemManagertGetPackt IPY_GameWorldtrptEquiptGetAttIsEmptyt    GameWorldtDebugLogt
ItemCommontGetItemClassLVtmintmaxtNomalDictGetPropertytChConfigtDef_PDict_EquipWashLV(
Rt
equipPlacetwashTypet    maxLVDictt    equipPacktcurEquipt equipClassLVt minClassLVCfgt    maxWashLVt maxClassLVCfg((si.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\Operate_EquipWash.pytGetEquipWashMaxLV*s8        
      cCs$tjd|dƒ}|r |SgS(NsEquipWashGroup%si(RR(Rt    placeList((si.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\Operate_EquipWash.pytGetEquipWashPlaceListJscCs>x7tdtdƒD]"}t|ƒ}||kr|SqWdS(Ni(trangetDef_EquipWashMaxTypeR"(RRR!((si.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\Operate_EquipWash.pyRQs
  cCstjd||ƒS(Nt    EquipWash(RtGetIpyGameData(RtwashLV((si.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\Operate_EquipWash.pytGetEquipWashDataYscCs8g}x+tdtdƒD]}|t|ƒ7}qW|S(Ni(R#R$R"(t allPlaceListR((si.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\Operate_EquipWash.pytGetAllEquipWashPlace\sc4 Cs]    tjƒj|ƒ}|jƒ}|j}|j}t|ƒ}t||ƒ}|jt    j
|ƒd}    tj d||||    |f|ƒ|dkr¯tj d||ƒdS|dkr¿dSt||    ƒ}
|
sïtjd||    fƒdSg} x²tdtdƒD]} t|
d| ƒƒ} |jt    j|| fƒ}|jt    j|| fƒ}|dkrŠtj d|| |f|ƒdS|| kr    | j| ƒq    q    W|    |kràt| ƒtkràtj d||ƒdSt| ƒtkr
tj d    ||ƒdS|
jƒ}|
jƒ}tj||ƒ\}}}|||krqtj d
||||f|ƒdS|
jƒ}| s–t|ƒtkršdSi}g}d}i}x tdtdƒD]‹} | | krÞqÆn|jt    j|| fƒ}|td | dƒ@rM|j| ƒt|
d | ƒƒ}t|
d | ƒƒ}n¨d%\}}t|
d| ƒƒ}xN|jƒD]@\}}|d|ko§|dknr||\}}Pq|q|W| rõ| rõtjd|||    | ||fƒdStj d| |||fƒtj||ƒ}||| <|dkrG|d7}n||| <qÆWt|ƒ} d}!t j!ddƒ}"| dkr‹dn || d}#|#}$gdd}%}&}'|#rMtj||"|#ƒ\}%}&}'t"d|#|&|'ƒ}(|(dkrMtj#i|(|"6ƒ}!|!dkr=tjd|"|(|!f|ƒdS|#|(}$qMn|!rŠt$j%|t&j'|!ƒ rŠtj d| |!f|ƒdSd})|    dkrÑt||    dƒ})|)sÑtjd|    dƒdSntj(|||||dƒ|$rtj(||%|&|'|$dƒn|!r\i|d6|d6|    d6| d6}*t$j)|t&j'|!t    j*|*ƒntj d||f|ƒ|tkrd}+d},x¹tdtdƒD]¤} |jt    j|| fƒ}|)sÐdnt|)d| ƒƒ}-t|
d| ƒƒ}.||-t+|.|-ƒ}/tj d| |/fƒ|/|+kr¢|/}+| },q¢q¢Wtjd||,ƒ}0|0||,<tj d|,|+|0|f|ƒnt,}1x£|jƒD]•\} }|jt    j|| fƒ}||}2|)sÞdnt|)d| ƒƒ}-t|
d| ƒƒ} tj d| |||2|-| f|ƒ|2|-krY|-}2tj d|2|ƒn|    |kr”|2| kr”| }2tj d| |2f|ƒn| |kr    t-}1t$j.|t    j|| f|2ƒi|d 6| d!6|d"6|2d#6}3t/j0|t    j1|3ƒtj d$|2|ƒq t$j.|t    j|| f|2ƒq Wt2||ƒ|1rY    t3|ƒndS(&NisN×°±¸Ï´Á·: equipPlace=%s,checkUseGoldAttr=%s,washType=%s,washLV=%s,maxWashLV=%ss¸Ã×°±¸Î»ÎÞ·¨Ï´Á·! equipPlace=%ss+ÕÒ²»µ½¸Ã×°±¸Ï´Á·Êý¾Ý: washType=%s,washLV=%ss GetAttrMax%sisQ»¹ÓÐδѡÔñÊÇ·ñ±£´æµÄÏ´Á·ÊôÐÔ£¬²»¿ÉÏ´Á·£¡equipPlace=%s,attrNum=%s,washValueTemp=%ss:ËùÓÐÏ´Á·ÊôÐÔÒѾ­´ïµ½×î´óÏ´Á·µÈ¼¶Öµ£¬ÎÞ·¨Ï´Á·£¡maxWashLV=%ss@ËùÓÐÏ´Á·ÊôÐÔÒѾ­´ïµ½±¾µÈ¼¶×î´óÖµ£¬ÇëÏÈÉý¼¶ºóÔÙÏ´Á·£¡maxWashLV=%ssY×°±¸Ï´Á·ËùÐèÏûºÄµÀ¾ß²»×㣬ÎÞ·¨Ï´Á·!costItemID=%s,costItemCount=%s,bindCnt=%s,unBindCnt=%sisGetAttrCostGoldMin%ssGetAttrCostGoldMax%ssGetAttrRandDict%ssjÕÒ²»µ½¸Ã×°±¸Î»µ±Ç°Ï´Á·Öµ·¶Î§Ëæ»úÖµ!equipPlace=%s,washType=%s,washLV=%s,attrNum=%s,washValue=%s,randDict=%ss#Ëæ»ú·¶Î§ÊôÐÔ%s, washValue=%s, %s~%stEquipWashMustIDsL×Ô¶¯¹ºÂò±ØÔöµÀ¾ßËùÐèÏÉÓñÒì³££¡needMustID=%s,mustItemLackCount=%s,needGold=%ss2ÏÉÓñ²»×㣬ÎÞ·¨Ï´Á·£¡checkUseGoldCnt=%s,needGold=%ss+ÕÒ²»µ½ÉÏÒ»¼¶Ï´Á·Êý¾Ý£¬ÎÞ·¨Ï´Á·!preWashLV=%sR%t
EquipPlacetWashTypetWashLVtCheckUseGoldCnts,Ëæ»úÏ´Á·: randAttrDict=%s,fixMaxValueDict=%ss"È«¸ºÐÞÕý±ÈÀý: attrNum=%s,curPer=%ssDÈ«¸ºÏ´Á·ÐÞÕý: minPerAttrNum=%s,minPer=%s,fixValue=%s,randAttrDict=%ss\×îÖÕÏ´Á·ÖµÈ·ÈÏ: attrNum=%s,washValue=%s,randValue=%s,tempValue=%s,preMaxValue=%s,maxValue=%ss    ÏÂÏÞÖµÐÞÕý: tempValue=%ss(    ÉÏÏÞÖµÐÞÕý: maxValue=%s,tempValue=%sRtattrNumtoldValuetnewValues    ¹´Ñ¡Ï´Á·£¬Ö±½Ó¸üÐÂÊýÖµ: %s(ii(4RtGetPlayerManagertGetPlayerByIndext GetPlayerIDR,tCheckUseGoldAttrRR RRRRtNonetLogR(tErrLogR#tDef_EquipWashMaxAttrCounttgetattrtDef_PDict_EquipWashValuetDef_PDict_EquipWashValueTemptappendtlent GetCostItemIDtGetCostItemCountRtGetPackItemBindStateIndexInfotGetGoldWashCostListtpowtitemstrandomtrandintRt
GetFuncCfgRtGetAutoBuyItemNeedGoldt PlayerControlt    HaveMoneyR
tTYPE_Price_Gold_MoneytDelCostItemByBindtPayMoneytDef_Cost_EquipWashtfloattFalseRtNomalDictSetPropertytDataRecordPacktCache_FightPowerChangeInfotPowerDownType_EquipWashRtRefreshEquipWashAttr(4tindext
clientDatattickRtplayerIDRtcheckUseGoldAttrRRR'twashDatatmaxValueAttrNumListR0tmaxValuet    washValuet washValueTempt
costItemIDt costItemCounttcostItemIndexListtbindCntt    unBindCnttgoldWashCostItemCountListt randAttrDicttuseGoldAttrNumListtnegativeValueCnttfixMaxValueDictt randValueMint randValueMaxtrandDicttrandKeyt    randRanget    randValuetcheckUseGoldCnttneedGoldt
needMustIDtneedMustIDCounttdelMustIDCounttmustItemIndexListt mustBindCntt mustUnBindCnttmustItemLackCountt preWashDatatinfoDicttminPert minPerAttrNumt preMaxValuet curMaxValuetcurPertfixValuet isRefreshAttrt    tempValuetdataDict((si.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\Operate_EquipWash.pytOnEquipWashAttrls$                                $     
           "" "  
    
"       "$  cCsjtjƒj|ƒ}|jƒ}|j}|j}|jtj|ƒd}t    ||ƒ}tj
d||||f|ƒt |ƒ}    |    dkr˜dS|dkr¨dSt |    |ƒ}
|
sÁdS|dkr:||krítj
d|ƒdSt||||
ƒr&t|ƒt||ƒt|ƒntj
d|ƒdSxtdtdƒD]î} |jtj|| fƒ} | s|qNntj|tj|| fdƒ|dkrN|jtj|| fƒ} tj|tj|| f| ƒi|d6| d6| d    6| d
6}tj|tj|ƒtj
d || | f|ƒqNqNW|dkrYt|ƒnt||ƒdS( Nis<È·ÈÏÏ´Á·½á¹û: equipPlace=%s,isSave=%s,washLV=%s,maxWashLV=%sisÒÑ´ïµ½×î´óÏ´Á·µÈ¼¶£¬²»¿ÉÉý¼¶£¡s'Éý¼¶Ê§°Ü£¬ÓÐÊôÐÔδ´ïµ½×î´óÖµ£¬ÎÞ·¨Éý¼¶!iRR0R1R2s3±£´æÏ´Á·Êý¾Ý: equipPlace=%s,attrNum=%s,tempValue=%s(RR3R4R5R,tIsSaveRRRR RRR7R(tCheckEquipWashLVUpRVRtEquipWashSuccessR#R:R=RJRRR<RSRTRU(RWRXRYRRZRtisSaveR'RRR\R0RƒR1R„((si.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\Operate_EquipWash.pytOnEquipWashAttrChangeOK0sR                  
     "$   c
Cs³xWtdtdƒD]B}|jtj||fƒ}|t|d|ƒƒkrdSqW|d7}tj|tj||dƒt    j
d||f|j ƒƒtj dd|j ƒ|j ƒ||gƒxßtdtdƒD]Ê}t|ƒ}||krqánd}x1|D])}t||jtj|ƒdƒ}qW||kr—tjd||ƒ}    |    r—tj dd|j ƒ|j ƒ||gƒq—ntj|||ƒPqáWtS(    Nis GetAttrMax%ss)×°±¸Ï´Á·µÈ¼¶Éý¼¶: equipPlace=%s,washLV=%sitWashCongratulationiçt EquipWashSpectWashMasterCongratulation(R#R:RRR<R;RJRRRRRR5t WorldNotifyt GetPlayerNameR$R"RRtGetIpyGameDataNotLogt
EventShelltEventRespons_EquipWashR(
RRR'R\R0RƒRR!t    minWashLVtwashSpecLVIpyData((si.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\Operate_EquipWash.pyR‡gs,
 +   ' 1c
Cs~t}tjƒ}|jƒg|_|dkr=tƒ}n    |g}xþ|D]ö}tjƒ}||_|jt    j
|ƒd|_ g|_ xt dtdƒD]{}tjƒ}    |jt    j||fƒ|    _|jt    j||fƒ|    _|j j|    ƒ|    js|    jr¢t}q¢q¢Wt|j ƒ|_|jj|ƒqMWt|jƒ|_|rj| rjdStj||ƒdS(Niÿÿÿÿi(RQtChPyNetSendPackttagMCEquipPartXLAttrInfotCleartInfoListR*ttagMCEquipPartXLAttrR,RRRtXLAttrLVt
XLAttrListR#R:ttagMCEquipPartXLAttrValueR<t XLAttrValueR=t XLAttrChangeR>RR?t    XLAttrCnttCountt NetPackCommont SendFakePack(
RRRthasValuetpackt syncPlaceListtplacet    equipPartR0R_((si.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\Operate_EquipWash.pyR‰s4 
                       cCs*tj|ƒtj|ƒ}|jƒdS(N(tChEquiptRefreshPlayerEquipAttributeRJtRefreshPlayerAttrState(Rt playControl((si.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\Operate_EquipWash.pyRV®s 
c    Cs¿|jtj|ƒd}t|ƒ}|dkr6dSt||ƒ}|sOdSxitdtdƒD]T}t|d|ƒƒ}|jtj    ||fƒ}|rct
j |||ƒqcqcWdS(Nis GetAttrType%s( RRRRR7R(R#R:R;R<RJtCalcAttrDict_Type(    RRt allAttrListR'RR\R0tattrIDt    attrValue((si.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\Operate_EquipWash.pytCalcAttr_EquipWashµs  c CsxtdtdƒD]ë}d}t|ƒ}xM|D]E}||krOd}Pn|jtj|ƒd}t||ƒ}q3W|sˆqntjdd|i|d6ƒ}|s³qn|j    ƒ}    |j
ƒ}
x1t |    ƒD]#\} } t j | |
| |ƒqØWqWdS(NiiçiRŒt
WashLVNeedt WashTypeNeed(R#R$R"RRRRRtInterpolationSearchtGetAddAttrTypetGetAddAttrValuet    enumerateRJR¬( RtequipPlaceListR­Rt
washTypeLVR!RR't washSpecDatat attrTypeListt attrValueListtiR®((si.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\Operate_EquipWash.pytCalcAttr_EquipWashSpecÇs&     cCs³tjtjtjg}x”tdtdƒD]}d}t|ƒ}x7|D]/}|jtj    |ƒd}t
||ƒ}qKW|sŠq,nt j |||dd|gƒq,WdS(Niiç( t ShareDefinetSuccType_EquipWashLV1tSuccType_EquipWashLV2tSuccType_EquipWashLV3R#R$R"RRRRt PlayerSuccesstDoAddSuccessProgress(RtsuccListRR¸R!RR'((si.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\Operate_EquipWash.pyRˆás  %(RRR¡R•RJRÂR
RSR¾RRR¨R‘RFR$R:RR R"RR(R*R…RŠR‡RQRRVR°R½Rˆ(((si.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\Operate_EquipWash.pyt<module>s:                                           Ä    7    "%