hxp
2025-06-12 a59a408cfa838cddcec4fc9fa47d3f6c66b75f9f
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
Sð    hc@s¯ddlZddlZddlZddlZddlZddlZddlZddlZddlZd„Z    d„Z
d„Z d„Z d„Z d„Zd„ZdS(    iÿÿÿÿNcCswd}tjd|ƒ}|s"dStj|tj|ƒtj|tjdƒtjd|ƒt    |ƒt
|ƒt S(NitLianTiisÁ¶Ì幦ÄÜ¿ªÆô! lianTiLV=%s( t IpyGameDataPYtGetIpyGameDatat PlayerControltNomalDictSetPropertytChConfigtDef_PDict_LianTiLVtDef_PDict_LianTiEatItemCountt    GameWorldtDebugLogtSyncLianTiInfotRefreshLianTiAttrtTrue(t    curPlayertlianTiLVtipyData((sP.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerLianTi.pyt DoLianTiOpens
 
cCs$|jtjƒsdSt|ƒdS(N(tNomalDictGetPropertyRRR
(R ((sP.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerLianTi.pyt OnPlayerLogin+s
c    Cs=tjƒj|ƒ}|j}|j}|jtjƒ}|jtjƒ}|sUdSt    j
d|ƒ}|sqdS|j ƒ}    |    s˜tj d|ƒdS||    krÂtj d|||    fƒdSt    j ddƒ}
|
sâ| rædStj||
|ƒ\} } } || | }|dkrI| rItj d|
|| | |fƒdS|}|dkr½t    j ddƒ}|swdSi|
tj6}tj|i||
6|tj|ƒs°dS||8}n|råtj|| | | |tjƒn||}tj d    |||||    fƒtj|tj|ƒt|ƒt|ƒdS(
NRsÁ¶ÌåÒÑÂú¼¶£¡ lianTiLV=%ss1±¾¼¶ÒѳÔÂú£¡ lianTiLV=%s,curEatItemCount=%s >= %st LianTiUpItemiisYµÀ¾ß²»×㣬ÎÞ·¨ÌáÉýÁ¶Ìå! costItemID=%s,costItemCount=%s,bindCnt=%s,unBindCnt=%s,lackCnt=%sis\Á¶ÌåÌáÉý: lianTiLV=%s,curEatItemCount=%s,costItemCount=%s,updEatItemCount=%s,needEatCount=%s(RtGetPlayerManagertGetPlayerByIndext
UseItemCntt    IsAutoBuyRRRRRRtGetNeedEatCountR    t
GetFuncCfgt
ItemCommontGetPackItemBindStateIndexInfotDef_Cost_Reason_SonKeytFunctionNPCCommontPayAutoBuyItemtDef_Cost_LianTitDelCostItemByBindtItemDel_LianTiRRR
R (tindext
clientDatattickR t costItemCountt    isAutoBuyRtcurEatItemCountRt needEatCountt
costItemIDtcostItemIndexListtbindCntt    unBindCnttlackCnttdelCnttautoBuyMoneyTypetinfoDicttupdEatItemCount((sP.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerLianTi.pyt
OnLianTiUp9sX               % "
    
 
c
Csdtjƒj|ƒ}|jtjƒ}|jtjƒ}|sCdStjd|ƒ}|s_dS|j    ƒ}|s†tj
d|ƒdS||kr°tj
d|||fƒdS|j ƒ}| sÕt |ƒdkrÙdS|\}    }
|     só|
r÷dSt j||    |
ƒ\} } } |
| | }|dkrStj
d|    |
| | |fƒdS|d}tjd|ƒ}|sydS|jƒ}||kr¬tj
d||fƒdSt j|| | | |
tjƒ||}|jƒ}tj
d    ||||||fƒtj|tj|ƒtj|tj|ƒ|rLtj||gƒnt|ƒt|ƒdS(
NRsÁ¶ÌåÒÑÂú¼¶£¡ lianTiLV=%ssDÁ¶ÌåÅàÑøÎïÆ·¸öÊý²»×㣬ÎÞ·¨Í»ÆÆ£¡ lianTiLV=%s,curEatItemCount=%s < %siisYµÀ¾ß²»×㣬ÎÞ·¨Í»ÆÆÁ¶Ìå! costItemID=%s,costItemCount=%s,bindCnt=%s,unBindCnt=%s,lackCnt=%sis:Á¶ÌåÍ»ÆÆ²»Äܳ¬¹ýµ±Ç°¾³½ç! nextLianTiLv=%s > curRealmLV(%s)snÁ¶ÌåÍ»ÆÆ: lianTiLV=%s,curEatItemCount=%s,needEatCount=%s,updEatItemCount=%s,nextLianTiLv=%s,activateSkillID=%s(RRRRRRRRRRR    tGetLVUpCostItemInfotlenRRtGetIpyGameDataNotLogtGetOfficialRankR R!tGetActivateSkillIDRRt SkillCommontGivePlayerSkillByJobSkillR
R (R"R#R$R RR'RR(t costItemInfoR)R%R*R+R,R-t nextLianTiLvt nextIpyDatat
curRealmLVR1tactivateSkillID((sP.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerLianTi.pyt OnLianTiLVUpzs^         
 
     
 
cCs!t|ƒtj|ƒjƒdS(N(tCalcLianTiAttrRtRefreshPlayerAttrState(R ((sP.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerLianTi.pyR ¹s
cCsL|jtjƒ}|sdSgtdƒD] }i^q)}tjƒ}xèt|jƒƒD]Ô}|j|ƒ}|j    ƒ}||kr‹Pn|j
ƒ}||krÁt |jtj ƒ|ƒ}n|j ƒ}    |jƒ}
xOt|    ƒD]A\} } t|
ƒ| kr|
| nd} tj| | |ƒqæW|jƒ}|rÄ|rÄ|jƒ}|jƒ}||}x\t|ƒD]K\} } t|ƒ| krš|| nd} | |9} tj| | |ƒqrWn|jƒ}|jƒ}xOt|ƒD]A\} } t|ƒ| kr|| nd} tj| | |ƒqéWqZWtj|tj|ƒdS(Nii(RRRtrangeRtIPY_DatatxrangetGetLianTiCounttGetLianTiByIndext GetLianTiLVRtminRtGetFixedAttrTypetGetFixedAttrValuet    enumerateR4RtCalcAttrDict_TypetGetEatPerCounttGetEatItemAttrTypetGetEatItemAttrValuetGetPlusAttrTypetGetPlusAttrRatetSetCalcAttrListValuetDef_CalcAttrFunc_LianTi(R Rt_t allAttrListt
ipyDataMgrR"t lvupIpyDatatdataLVt upItemCounttfixedAttrTypeListtfixedAttrValueListtitattrIDt    attrValuetupItemPerCounttupItemAttrTypeListtupItemAttrValueListt attrMultipletplusAttrTypeListtplusAttrRateList((sP.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerLianTi.pyR@¾sD       "    
"
  "cCsJtjƒ}|jtjƒ|_|jtjƒ|_tj    ||ƒdS(N(
tChPyNetSendPackttagMCLianTiInfoRRRtLianTiLVRt EatItemCountt NetPackCommont SendFakePack(R t
clientPack((sP.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerLianTi.pyR
ós
 (RRRRReRiRRR8RRR2R?R R@R
(((sP.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerLianTi.pyt<module>s                     A    ?        5