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
98
99
100
101
102
û<jc@sÐddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
d„Z d„Z d„Z d„Zd„Zd„Zd„Zd    „ZdS(
iÿÿÿÿNcBCsÝtjƒj|ƒ}|jƒ}|j}td|jƒ}|j}|j}|j    }    tj
d|||||    f|ƒt j d|ƒ}
|
s§tj d|ƒdS|
jƒ} |
jƒ} |
jƒ} |
jƒ}tj| ƒ}tjƒj|ƒ}|stj d|ƒdStj||ƒs]|jƒtjtjgkr]tj|dƒdSntj|tj ƒ}tj
d||f|ƒt!t"j#t$|ƒ|j%ƒƒƒ}tj&|||ƒ}||kr    tj|d|gƒtj
d    |||f|ƒdSd
}|
j'ƒ}|
j(ƒ}|
j)ƒ}|
j*ƒ}|
j+ƒ}| sW|    r`d}n||}|r¡tj,|tj-|ƒ r¡tj
d ||ƒdS|j.ƒj/|ƒ}d%\}}d
}| r”tjƒj| d
ƒ}|sñdStj|tj ƒ} |j.ƒj/| ƒ}tj
d | |ƒ|s9dSt1|||||| |ƒ}!|!sadS|!\}"}#|#r”|s|#n t2||#ƒ}q”n| rftjƒj| d
ƒ}$|$s½dStj|$tj ƒ}%|j.ƒj/|%ƒ}tj
d |%|ƒ|sdSt3||||| ||ƒ}&|&s-dS|&\}'}(}}#|#rf|sQ|#n t2||#ƒ}qfngd
d
})}*}+|rÿt4|ƒdkrÿ|    rÿ|\},}*}+t5||||    |,|*ƒ}-|-sÌdS|-\})}#|#rÿ|sê|#n t2||#ƒ}qÿn|r8tj6|tj-|tj7i|tj86|d6ƒni|d6|d6|d6|d6|d6}.t9}/| r¶|"\}0}1tj:|||0|1|t9tj;|.ƒ}2|2r­t<n|/}/n| rTx•|(j=ƒD]„\}3}4|4\}5}6|'|3\}7}8|5r"t<}/tj:|||7|5t9tj;|.ƒn|6rÉtj:|||8|6t9tj;|.ƒqÉqÉWn|)r‘|)\}9}:tj:|||9|:|*t9tj;|.ƒ}2n|dkr¬|/r¬d}n||+};|rÎt2||;ƒ};ntj
d||+||;f|ƒt>j?}<tj@d|<ƒ}=|=|;k}>tj
d|>|=|;|<f|ƒ||<kr¼i|jƒd6|jAƒd6|d6|d6|>d6id|;||+fd6|=d6|<d6d6|d6}.tBjCd|.|ƒn|>r°tj
d||||f|ƒtD||||||ƒ}?|
jEƒ}@|
jFƒ}A|@d&kr‘|Ad#krl| rl|rltjGd
|@|jHƒ|d
| d
||?gƒq‘tjGd
|@|jHƒ||?gƒntjI|t>jJtjK|ƒn)tj
d$ƒtjI|t>jJtjLd
ƒdS('NisdÎïÆ·ºÏ³É: ID=%s,compoundCnt=%s,unfixedItemIndexList=%s,fixedItemIndexList=%s,incRateItemIndexList=%st ItemCompoundsÕÒ²»µ½¸ÃºÏ³É±íÊý¾ÝÅäÖã¡ ID=%ss²»´æÔڸúϳÉÎïÆ·! makeItemID=%stItemCompoundJoblimitsmakeItemID=%s,packType=%stGeRen_chenxin_676165s6±³°ü¿Õ¼ä²»×㣡packType=%s,needSpace=%s > emptySpace=%sis»õ±Ò²»×ãºÏ³É! totalNeedMoney=%ssunfixedPackType=%ssfixedPackType=%sit CompoundCountt
CompoundIDt
MakeItemIDtitemExpireTimetPackTypesHºÏ³É³É¹¦ÂÊ: successRate=%s,incRate=%s,successRateMax=%s,totalSuccRate=%ss:canHappen=%s,randValue=%s,totalSuccRate=%s,maxRateValue=%stPlayerIDtAccIDtIDt    IsSuccesss    %s(%s+%s)t totalSuccRatet    randValuet maxRateValuetRateInfosKºÏ³É³É¹¦: makeItemID=%s,compoundCnt=%s,compoundBindCnt=%s,itemExpireTime=%st0ts-is
ºÏ³Éʧ°Ü£¡(NN(s0ss-(Mt    GameWorldtGetPlayerManagertGetPlayerByIndext GetPlayerIDR
tmaxt CompoundCnttUnfixedItemIndextFixedItemIndextRateIncreaseItemIndextDebugLogt IpyGameDataPYtGetIpyGameDatatErrLogt    GetMakeIDtGetUnfixedItemIDtGetFixedItemIDtGetFixedItemCounttrandomtchoicet GetGameDatatGetItemByTypeIDt
ItemCommontCheckJobtGetTypetChConfigtDef_ItemType_retPeerlessWeapontDef_ItemType_retPeerlessWeapon2t PlayerControlt
NotifyCodetGetItemPackTypet IPY_GameWorldtrptItemtinttmathtceiltfloatt GetPackCounttGetItemPackSpacetGetUnfixedItemCountt GetNeedMoneytGetSuccessRatetGetSuccessRateMaxtGetSuccessRateIncreaset    HaveMoneytTYPE_Price_Silver_MoneytGetItemManagertGetPacktNonet__CheckUnfixedItemtmint__CheckFixedItemtlent__CheckIncRateItemtPayMoneytDef_Cost_ItemProducetDef_Cost_Reason_SonKeytFalset
ReduceItemtItemDel_ItemCompoundtTruetitemst ShareDefinetDef_MaxRateValuetrandinttGetAccIDtDataRecordPackt SendEventPacktGiveNewCompoundItemt
GetSysMarktGetSysMarkParamTypet WorldNotifytGetNametSyncMakeItemAnswertDef_mitItemCompoundtDef_ComposeState_SucesstDef_ComposeState_Fail(Btindext
clientDatattickt    curPlayertplayerIDt
compoundIDt compoundCnttunfixedItemIndexListtfixedItemIndexListtincRateItemIndexListtipyDatat
makeIDListtunfixedItemIDListtfixedItemIDListtfixedItemCountListt
makeItemIDt makeItemDatatpackTypet    needSpacet
emptySpacetcompoundBindCnttneedUnfixedItemCountt    needMoneyt successRatetsuccessRateMaxtsuccessRateIncreasettotalNeedMoneytitemPacktunfixedItemPackt fixedItemPackRt unfixedItemtunfixedPackTypetunfixedItemCostInfotunfixedItemCostListt
expireTimet    fixedItemt fixedPackTypet fixedItemInfotfixedItemIndexDicttfixedItemNeedCntDicttincRateItemCostListtneedIncRateItemCounttincRatet incRateItemIDtincRateItemInfotdrDictt makeItemBindtbindUnfixedIndexListtunbindUnfixedIndexListthasBindt fixedItemIDt    countInfot
delBindCntt delUnBindCnttbindFixedIndexListtunbindFixedIndexListtbindIncRateItemIndexListtunBindIncRateItemIndexListR RR t    canHappentuserDatatmsgMarkt    paramType((s{D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\Operate_ItemCompound.pytOnItemCompound2s                         %           
   !! !)  %,     
              2)
    3% cCsÉd}d}ggg}    |jƒ}
|jƒ} x\|D]T} | |
krgtjd| |
f| ƒdS|j| ƒ} t| | | ƒs¦tjd|| f| ƒdS| jƒ}||krâtjd|| ||f| ƒdStj| ƒ\}}|r?|s!tjd| |f| ƒdS|s-|n t    ||ƒ}n| j
ƒ}| jƒ}||7}|rz|    dj | ƒn|    dj | ƒq7W||kr¿tjd||||f| ƒdS|    |fS(Nis7¸ÃÎïÆ·¸ñ×ÓË÷Òý²»´æÔÚ!ÎÞ·¨ºÏ³É£¡index=%s,maxPackCount=%ss'¸ÃÎïÆ·²»¿ÉʹÓÃ!ÎÞ·¨ºÏ³É! ID=%s,index=%ssO¸ÃÎïÆ·²»¿ÉÓÃÓںϳÉÄ¿±êÎïÆ·!ID=%s,index=%s,itemID=%s not in unfixedItemIDList=%ss:²»¹Ì¶¨ÏûºÄµÀ¾ßʱЧÎïÆ·ÒÑʧЧ£¬ÎÞ·¨ºÏ³É! index=%s,itemID=%sisj²»¹Ì¶¨ÏûºÄµÀ¾ß²»×㣬ÎÞ·¨ºÏ³É!ID=%s,unfixedItemIDList=%s,needUnfixedItemCount=%s > unfixedItemTotalCount=%s( tGetCountRRtLogtGetAtt__CheckItemCanUseCompoundt GetItemTypeIDR'tGetItemRemainingTimeRCt    GetIsBindtappend(RaRcRnRyReRjRsR€tunfixedItemTotalCountRt maxPackCountRbR^tcurItemtitemIDt isExpireItemt remainingTimetisBindt    itemCount((s{D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\Operate_ItemCompound.pyRBösB             
.     c$    Cs³|jƒ}i}i}    t|ƒt|ƒkrNtjd||f|ƒdSd}
xŸ|D]—} | |kr‹tjd| |f|ƒdS|j| ƒ} t|| | ƒsÊtjd|| f|ƒdS| jƒ} | |krtjd|| | |f|ƒdStj| ƒ\}}|rc|sEtjd| | f|ƒdS|
sQ|n t    |
|ƒ}
n| j
ƒ}| jƒ}|r‡dnd}|    j | ddgƒ}||c|7<||    | <|j | gggƒ}||j | ƒ||| <q[Wtj d||    fƒd    }d    }xät|ƒD]Ö\} } || }||}|    j | ddgƒ\}}||}||kr¤tjd
|| ||||f|ƒdS|d    kr½||}nt    |||ƒ}|d    kré||}q&t    |||ƒ}q&Wtd|ƒ}td|ƒ}t}d}d}d}|||kr„|rht    ||ƒ}||}qžt    ||ƒ}||}n|}|}|||}tj d |||fƒ||7}tj d ||fƒi} x°t|ƒD]¢\} } || }||}|    j | ddgƒ\}}t    |||ƒ}!||!}"|!|"g| | <|!|"}#|#|krìtjd |!|"|#|fƒdSqìWtj d| ƒ|| ||
fS(NsC¹Ì¶¨ÏûºÄÅäÖôíÎó!ÎÞ·¨ºÏ³É£¡fixedItemIDList=%s,fixedItemCountList=%sis7¸ÃÎïÆ·¸ñ×ÓË÷Òý²»´æÔÚ!ÎÞ·¨ºÏ³É£¡index=%s,maxPackCount=%ss'¸ÃÎïÆ·²»¿ÉʹÓÃ!ÎÞ·¨ºÏ³É! ID=%s,index=%ssR¸ÃÎïÆ·²»¿ÉÓÃÓںϳÉÄ¿±êÎïÆ·!ID=%s,index=%s,fixedItemID=%s not in fixedItemIDList=%ss=¹Ì¶¨ÏûºÄµÀ¾ßʱЧÎïÆ·ÒÑʧЧ£¬ÎÞ·¨ºÏ³É! index=%s,fixedItemID=%sis'¹Ì¶¨ÏûºÄÎïÆ·IDË÷Òý:%s, ¸öÊý[°ó,²»°ó]:%siÿÿÿÿsZ¹Ì¶¨ÏûºÄµÀ¾ß²»×㣬ÎÞ·¨ºÏ³É!ID=%s,fixedItemID=%s,totalNeedCount=%s*%s(%s) > itemTotalCnt=%ss%×ܿɺϳÉ: ´¿°ó=%s, ´¿²»°ó=%s, »¹²î=%ss×îÖպϳÉ: °ó=%s, ²»°ó=%ssc×îÖÕ¼ÆËãÏûºÄ×ÜÊýÓëʵ¼ÊËùÐè²»·û!ÎÞ·¨ºÏ³É!costBindCnt(%s) + costUnBindCnt(%s)=%s < totalNeedCount(%s)s×îÖÕÏûºÄ²ÄÁϸöÊý: %s(RRERRžRŸR R¡R'R¢RCR£tgetR¤Rt    enumerateRRMR($RbRcRyRfRkRlRdR¦R„tfixedItemCntDictR€R^R§RR©RªR«R¬t    bindIndextfixedItemCntListtfixedItemIndexinfoListtcanCompoundBindCounttcanCompoundUnBindCountt    needCountttotalNeedCounttbindCntt    unBindCntt itemTotalCntt    bindFirstRrtcompoundUnBindCnttlackCntR…t costBindCntt costUnBindCntt costTotalCnt((s{D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\Operate_ItemCompound.pyRDs®               
 
 
 
           
 
 
 
 
     cCs½d}d}ggg}|jƒ}    x\|D]T}
|
|    kr[tjd|
|    f|ƒdS|j|
ƒ} t||
| ƒsštjd||
f|ƒdS| jƒ} | |krÖtjd||
| |f|ƒdStj| ƒ\} }| r3|stjd|
| f|ƒdS|s!|n t||ƒ}n| j    ƒ}| jƒ}||7}|rn|dj
|
ƒn|dj
|
ƒq+W||kr³tjd||||f|ƒdS||fS(Nis7¸ÃÎïÆ·¸ñ×ÓË÷Òý²»´æÔÚ!ÎÞ·¨ºÏ³É£¡index=%s,maxPackCount=%ss'¸ÃÎïÆ·²»¿ÉʹÓÃ!ÎÞ·¨ºÏ³É! ID=%s,index=%ssO¸ÃÎïÆ·²»¿ÉÓÃÓÚÌáÉýºÏ³ÉÄ¿±êÎïÆ·¸ÅÂÊ!ID=%s,index=%s,itemID=%s != incRateItemID=%ss4ÌáÉý¸ÅÂÊʱЧÎïÆ·ÒÑʧЧ£¬ÎÞ·¨ºÏ³É! index=%s,itemID=%sishÌáÉý¸ÅÂÊÏûºÄµÀ¾ß²»×㣬ÎÞ·¨ºÏ³É!ID=%s,incRateItemID=%s,needIncRateItemCount=%s > incRateItemTotalCount=%s( RRRžRŸR R¡R'R¢RCR£R¤(RbRcRyRgR‰R‡R€tincRateItemTotalCountR†R¦R^R§R¨R©RªR«R¬((s{D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\Operate_ItemCompound.pyRF•s@            
.     cCsvtj|ƒs'tjd||ƒdStj|ƒrNtjd||ƒdS|jƒrrtjd||ƒdStS(Ns!¸ÃÎïÆ·²»¿ÉʹÓÃ!ÎÞ·¨ºÏ³É! index=%ss#¸ÃÎïÆ·ÓÐÏâǶ±¦Ê¯!ÎÞ·¨ºÏ³É! index=%ss¸ÃÎïÆ·ÎªÌ××°!ÎÞ·¨ºÏ³É! index=%s(R'tCheckItemCanUseRRt CheckHasStonet
GetIsSuiteRM(RbR^R§((s{D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\Operate_ItemCompound.pyR »s cCsl||}|dkr4t||||t|ƒ}n|dkr^t||||t|ƒ}n|shdS|S(NiR(t__GivePlayerCompoundItemRMRJ(RaRot    newItemIDR¬RrRR»R™((s{D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\Operate_ItemCompound.pyRUÓs
  c    CsÍ|jƒ}tj||t|d|ƒ}|sNtjd||f|ƒdS|jƒ}tj|ƒj||dt    j
tigƒs¯tjd||f|ƒ|j ƒdStj |i||6dƒ|S(NRas*´´ÔìÎïÆ·Ê§°Ü, give item itemid:%s,count:%stevents,¸øºÏ³ÉÎïÆ·Ê§°Ü, give item itemid:%s,count:%stCompound( Rt ItemControlertGetOutPutItemObjRJRRt GetUserDatatPlayerItemControlert    PutInItemR*tItemGive_ItemCompoundtCleartNotifyGiveAwardInfo(    RaRoRÅR¬R«R€Rbt curSingleItemR™((s{D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\Operate_ItemCompound.pyRÄßs  -
cCsÅtjƒj|ƒ}|jƒ}|j}tjd||ƒ|jƒjtj    ƒ}|dkst||j
ƒkrxdS|j |ƒ}t j |ƒsšdS|jtjƒ}|sÆtjd|ƒdSg}    |jtjdƒ}
|
r|    j|
d|jƒgƒn|dkr­x˜td|ƒddd…D]w} | d|krIPn|jtj| ƒ} |jtj| dƒ} |jtj| dƒ}|    j| | |gƒq/Wnt|    ƒ}t j|tj    |ƒ}||krñtj|dƒdSt j||j
ƒƒ}i|    d6}t j|||j
ƒtd    |d
tƒxL|    D]D\} } }tj|| | dtj    gd d    ti|d 6gƒqEWtjd t |ƒ|ƒtjdt |    ƒ|ƒdS(Ns$Íæ¼Ò²ð½âÎïÆ·: decompoundItemIndex=%sis*    ¸ÃÎïÆ·Ã»ÓмǼ²ð½âÎïÆ·ÐÅÏ¢£¬ÎÞ·¨²ð½â£¡iiitGeRen_lhs_202580t giveItemListtItemDecompoundt    isForceDRRÆtdecompoundItemNoteDicts'²ð½âÎïÆ·³É¹¦: decompoundItemNoteDict=%ss    giveItemList=%s(!RRRRtIndexRR?R@R0R1RRŸR'RÁtGetUserAttrCountROtDef_IudetItemDecompoundtGetUserAttrByIndexR¤R£trangeRER7R-R.tGetItemNoteDicttDelItemRJRMRÈtGivePlayerItemRžtstr(R^R_R`RaRbtdecompoundItemIndexRytcurEquipt    attrCountRÒt giveEquipIDtiR¨R¬R«RpRqRÕt saveDataDict((s{D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\Operate_ItemCompound.pytOnItemDecompound÷sP      #   ((RR'ROR0R-RÈRR*RSR#R3RœRBRDRFR RURÄRå(((s{D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\Operate_ItemCompound.pyt<module>s$               Ä    )    v    &