hxp
2025-08-25 b7154533a3f9db72d0dfc28f21b19ee4aadf1b51
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
¯”hc@sÜddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z d„Z d„Z d„Zd„Zd„Zd„Zd„Zd    „ZdS(
iÿÿÿÿNc=CsLtjƒ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|t'j(gkrtj|d|gƒtj
d    |||f|ƒdSd
}|
j)ƒ}|
j*ƒ}|
j+ƒ}|
j,ƒ}|
j-ƒ}| si|    rrd}n||}|r³tj.|tj/|ƒ r³tj
d ||ƒdS|j0ƒj1|ƒ}d
}| rRtjƒj| d
ƒ}|s÷dSt2|||||| |ƒ}|sdS|\}} | rR|s=| n t3|| ƒ}qRn| r¹t4||||| ||ƒ}!|!s€dS|!\}"}#}} | r¹|s¤| n t3|| ƒ}q¹ngd
d
}$}%}&|rRt5|ƒd krR|    rR|\}'}%}&t6||||    |'|%ƒ}(|(sdS|(\}$} | rR|s=| n t3|| ƒ}qRn|r‹tj7|tj/|tj8i|tj96|d 6ƒni|d6|d6|d 6|d6|d6})t:}*| r    |\}+},tj;|||+|,|t:tj<|)ƒ}-|-rt=n|*}*n| r§x•|#j>ƒD]„\}.}/|/\}0}1|"|.\}2}3|0rut=}*tj;|||2|0t:tj<|)ƒn|1rtj;|||3|1t:tj<|)ƒqqWn|$rä|$\}4}5tj;|||4|5|%t:tj<|)ƒ}-n|dkrÿ|*rÿd}n||&}6|r!t3||6ƒ}6ntj
d||&||6f|ƒt'j?}7tj@d|7ƒ}8|8|6k}9tj
d|9|8|6|7f|ƒ||7kri|jƒd6|jAƒd6|d6|d6|9d6id|6||&fd6|8d6|7d6d6|d6})tBjCd|)|ƒn|9rtj
d||||f|ƒtD||||||ƒ}:|
jEƒ};|
jFƒ}<|;d#krä|<d!kr¿| r¿|r¿tjGd
|;|jHƒ|d
| d
||:gƒqätjGd
|;|jHƒ||:gƒntjI|t'jJtjK|ƒtLjM|t'jN||gƒn)tj
d"ƒtjI|t'jJtjOd
ƒ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=%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
ºÏ³Éʧ°Ü£¡(s0ss-(Pt    GameWorldtGetPlayerManagertGetPlayerByIndext GetPlayerIDR
tmaxt CompoundCnttUnfixedItemIndextFixedItemIndextRateIncreaseItemIndextDebugLogt IpyGameDataPYtGetIpyGameDatatErrLogt    GetMakeIDtGetUnfixedItemIDtGetFixedItemIDtGetFixedItemCounttrandomtchoicet GetGameDatatGetItemByTypeIDt
ItemCommontCheckJobtGetTypetChConfigtDef_ItemType_retPeerlessWeapontDef_ItemType_retPeerlessWeapon2t PlayerControlt
NotifyCodetGetItemPackTypet IPY_GameWorldtrptItemtinttmathtceiltfloatt GetPackCounttGetItemPackSpacet ShareDefinet rptDogzItemtGetUnfixedItemCountt GetNeedMoneytGetSuccessRatetGetSuccessRateMaxtGetSuccessRateIncreaset    HaveMoneytTYPE_Price_Silver_MoneytGetItemManagertGetPackt__CheckUnfixedItemtmint__CheckFixedItemtlent__CheckIncRateItemtPayMoneytDef_Cost_ItemProducetDef_Cost_Reason_SonKeytFalset
ReduceItemtItemDel_ItemCompoundtTruetitemstDef_MaxRateValuetrandinttGetAccIDtDataRecordPackt SendEventPacktGiveNewCompoundItemt
GetSysMarktGetSysMarkParamTypet WorldNotifytGetNametSyncMakeItemAnswertDef_mitItemCompoundtDef_ComposeState_Sucesst PlayerSuccesstDoAddSuccessProgresstSuccType_CompoundItemExtDef_ComposeState_Fail(=tindext
clientDatattickt    curPlayertplayerIDt
compoundIDt compoundCnttunfixedItemIndexListtfixedItemIndexListtincRateItemIndexListtipyDatat
makeIDListtunfixedItemIDListtfixedItemIDListtfixedItemCountListt
makeItemIDt makeItemDatatpackTypet    needSpacet
emptySpacetcompoundBindCnttneedUnfixedItemCountt    needMoneyt successRatetsuccessRateMaxtsuccessRateIncreasettotalNeedMoneytitemPackRt unfixedItemtunfixedItemCostInfotunfixedItemCostListt
expireTimet 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.pytOnItemCompound3s                         %          
  !! !)  %,     
              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'tGetItemRemainingTimeRDt    GetIsBindtappend(RdRfRqR|RhRmRvR€tunfixedItemTotalCountRt maxPackCountReRatcurItemtitemIDt isExpireItemt remainingTimetisBindt    itemCount((s{D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\Operate_ItemCompound.pyRCð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›RFRRœRRžRŸR'R RDR¡tgetR¢Rt    enumerateRRNR($ReRfR|RiRnRoRgR¤R‚tfixedItemCntDictR€RaR¥RŽR§R¨R©Rªt    bindIndextfixedItemCntListtfixedItemIndexinfoListtcanCompoundBindCounttcanCompoundUnBindCountt    needCountttotalNeedCounttbindCntt    unBindCntt itemTotalCntt    bindFirstRutcompoundUnBindCnttlackCntRƒt costBindCntt costUnBindCntt costTotalCnt((s{D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\Operate_ItemCompound.pyREs®               
 
 
 
           
 
 
 
 
     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 RDR¡R¢(ReRfR|RjR‡R…R€tincRateItemTotalCountR„R¤RaR¥R¦R§R¨R©Rª((s{D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\Operate_ItemCompound.pyRGs@            
.     cCsvtj|ƒs'tjd||ƒdStj|ƒrNtjd||ƒdS|jƒrrtjd||ƒdStS(Ns!¸ÃÎïÆ·²»¿ÉʹÓÃ!ÎÞ·¨ºÏ³É! index=%ss#¸ÃÎïÆ·ÓÐÏâǶ±¦Ê¯!ÎÞ·¨ºÏ³É! index=%ss¸ÃÎïÆ·ÎªÌ××°!ÎÞ·¨ºÏ³É! index=%s(R'tCheckItemCanUseRRt CheckHasStonet
GetIsSuiteRN(ReRaR¥((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__GivePlayerCompoundItemRNRK(RdRrt    newItemIDRªRuRR¹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 ƒdS|S(NRds*´´ÔìÎïÆ·Ê§°Ü, give item itemid:%s,count:%stevents,¸øºÏ³ÉÎïÆ·Ê§°Ü, give item itemid:%s,count:%s( Rt ItemControlertGetOutPutItemObjRKRRt GetUserDatatPlayerItemControlert    PutInItemR*tItemGive_ItemCompoundtClear(    RdRrRÃRªR©R€Ret 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(!RRRRtIndexRRARBR0R1R›RR'R¿tGetUserAttrCountR8tDef_IudetItemDecompoundtGetUserAttrByIndexR¢R¡trangeRFR7R-R.tGetItemNoteDicttDelItemRKRNRÅtGivePlayerItemRœtstr(RaRbRcRdRetdecompoundItemIndexR|tcurEquipt    attrCountRÎt giveEquipIDtiR¦RªR©RsRtRÑt saveDataDict((s{D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\Operate_ItemCompound.pytOnItemDecompoundðsP      #   ((RR'R8R0R-RÅRR*R]RSR#R3RšRCRERGRžRURÂRá(((s{D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\Operate_ItemCompound.pyt<module>s&                ½    )    v    &