hxp
2025-05-30 90ec1a24b4f2b2a24c8075084c3e736eee9064db
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
F8hc@sÙddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z ddl Z d„Zd„Zd„Zd„Zd„ZdS(iÿÿÿÿNc Cs©tjƒj|ƒ}|jƒ}|j}tj}|tjkrFdSt    j
di|d6ƒ}|sidS|j ƒ}|j ƒ}    tj|}
|    |
kr²tj d|    |ƒdS|jƒj|ƒ} | j|ƒ} tj| ƒsötjdƒdStj| ƒ} tj||ƒ}|| krAtj d|| f|ƒdS|jƒjtjƒ}|j}|j}|j}t|||    |||||ƒ}|sŸdS|\}}}}|r\|dk}|dkr|jƒ}||    ||||||||g
}tj|d|ƒdS|rz|r&dStj |tj!|ƒsYtjd    ||ƒdSqzn|rztjd
||ƒdSd }t"|||    |||||||ƒ
dS( NtEquipPlaceIndexMapt    GridIndexs<    equipPlace %s not in ChConfig.Pack_EquipPart_CanPlusStars"OnEquipPartStarUp() equip is emptys0OnEquipPartStarUp:curPartStar(%s) >= maxStar(%s)iidtEquipStarAutoBuys&×Ô¶¯¹ºÂò±ØÒªÎïÆ·»õ±Ò²»×㣬ÎÞ·¨ÉýÐÇ! %ss&ȱÉÙ±ØÒªÎïÆ·£¬²»×Ô¶¯¹ºÂò£¬ÎÞ·¨ÉýÐÇ! %si(#t    GameWorldtGetPlayerManagertGetPlayerByIndext GetPlayerIDtEquipPackIndext IPY_GameWorldtrptEquiptChConfigtPack_EquipPart_CanPlusStart IpyGameDataPYtGetIpyGameDataByConditiont
GetClassLVt GetEquipPlacetLogtGetItemManagertGetPacktGetAtt
ItemCommontCheckItemCanUsetDebugLogtGetItemMaxStartChEquiptGetEquipPartStartrptItemtCostEquipIndext CostEquipIDtAutoBuyt__CheckCostInfot GetGoldPapertPlayerAuctionHousetQueryGameServer_AuctionHouset PlayerControlt    HaveMoneytTYPE_Price_Gold_Papert__DoEquipStarUp(t playerIndext
clientDatattickt    curPlayertplayerIDtequipPackIndextpackTypetipyDatatclassLVt
equipPlacet    placeListt    equipPacktcurEquiptmaxStart curPartStartitemPacktcostEquipIndexListtcostEquipIDListtautoBuytcheckCostResulttcurRatetdelEquipGUIDDicttdelItemInfoDicttlackItemCostMoneytisAutoBuyPreviewtplayerGoldPapert    queryDatatbuyEquipCostMoney((sxD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\Operate_EquipStar.pytOnEquipPartStarUp1sh                           !   $
%c CsJ|\    }}}}}}}}    }
t|||||||||    |
ƒ
dS(N(R%( R)tresultR.R/R4R+R:R;R<R=RA((sxD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\Operate_EquipStar.pytGameServer_EquipStarAutoBuyvs!%c
$Cs/|jƒ}
||    } tj|tj| ƒs2dS|d} tj|ƒ} | tjdƒkrid}nt    j
|dƒ}t    j d||||    f|
ƒ|j ƒj tjƒ}x€|jƒD]r\}}|sØqÀntj|||ƒ\}}}}t    j d|||fƒtj||||ttjƒqÀWi}x”|jƒD]†\}}d}|j|ƒ}tj|ƒ sŒ|jƒ|krœ|||<qInt    j d||fƒtj|||dtjƒqIW|r    t    j d|ƒtj|||dtjƒni
|
d    6|jƒd
6|d 6|d 6|d 6|d6| d6| d6|d6|    d6}tj|tj| tj|ƒs€dS|rµtj||| ƒtj||ƒtj }n    tj!}|j"t#j$|ƒt%j&d||ƒt'j(|tj)dƒ|sdStj*||ƒ}t    j d||||f|
ƒt+||ƒtj,||ƒtj|ƒ}|j-ƒ|tj.dƒkr|j ƒj tj/ƒ}|j|ƒ}tj|ƒr|j0ƒ} |j1ƒ}!tj2||ƒ}"|j3ƒ| |!|"|g}#tj4dd|#ƒqnt5j6|tj7dƒdS(NitEquipStarCustomizedidsJ×°±¸ÉýÐÇ×îÖÕ×ܸÅÂÊ: %s, isOK=%s, lackItemCostMoney=%s,buyEquipCostMoney=%ss3    ¿Û³ýµÀ¾ß: delItemID=%s,delCount=%s,indexList=%ss    ¿Û³ý×°±¸: index=%s, %st
recordNames&    ¿Û³ý×°±¸Î»ÖôíÎó£¬Í¨¹ýGUID²¹¿Û! %stPlayerIDtAccIDR.R/t    IsSuccessR:tnextStarttotalEquipStarsR=RAt EquipStarUpsF    ×°±¸ÉýÐÇ equipPackIndex=%s result=%s,curPartStar=%s,updPartStar=%stEquipPartStarNotifyit StarLevelUp(8RR"R#RR$RtGetTotalEquipStarsR t
GetFuncCfgRt    CanHappenRRRRtitemsRtGetItem_FromPack_ByID_ExExt
ReduceItemtTrueR
tItemDel_EquipStarUpRRtGetGUIDtDelItemt DelItemByGUIDtGetAccIDtPayMoneytDef_Cost_EquipStartSetEquipPartStartNotifyEquipPartStartDef_ComposeState_SucesstDef_ComposeState_FailtSync_MakeItemAnswert ShareDefinetDef_mitEquipStarUptDataRecordPackt SendEventPacktPlayerTongTianLingtAddTongTianTaskValuetTTLTaskType_StarRtEquipStarSuccesstRefreshPlayerEquipAttributetRefreshPlayerAttrStatetGetFuncEvalCfgR    t GetItemTypeIDt GetUserDatatCacheNotifyEquipDetailInfot GetPlayerNamet WorldNotifytPlayerWeekPartytAddWeekPartyActionCnttDef_WPAct_Star($R)R.R/R4R+R:R;R<R=RAR*tcostMoneyTotalRJRKtisOKR5t    delItemIDtdelCountt    hasEnought    indexListtfindItemIsBindtlackCnttdelItemByGUIDDicttindextitemGUIDtdelCntR2tdrDictRCt updPartStart playControlR1titemIDtuserDatatguidt msgParamList((sxD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\Operate_EquipStar.pyR%|s| 
 
        !#"
 ,!       
  c+ Csº|d}tjd|||ƒ}    |    s,dS|    jƒ}
|    jƒ} |    jƒ} |    jƒ} i}tj|ƒ}|
s€d}nãd}tjddƒ}tjddƒ}tjddƒ}t    |ƒdksòt    |ƒdksòt    |ƒdkrt
j dƒdSx]t |ƒD]O\}}|j |ƒ}| s>|jƒrBdS|jƒ}|||kr€t
j d    ||||fƒdS|jƒ}|jƒ}|| kr¨dS|| kr¸dS| rÕtj||ƒ rÕdS|jƒrü|    jƒ}|\}}n|    jƒ}|\}}t
jd
||||fƒ|}tj|ƒ}||kr®|d||}ttjt|d|d dƒƒƒ}t
jd ||||fƒnh||kr|d||}ttjt|d|d dƒƒƒ}t
jd ||||fƒnt|t||ƒƒ}||7}t
jd||fƒ|jƒ||<qWi} d}!|    j ƒ}"|"rkxç|"j!ƒD]Ö\}#}$tj"|#||$ƒ\}%}&}'}(|%sT|sât
jd|#|(fƒdStj#|#t$j%ƒ})|)st
jd|#|(fƒdS|!|)|(7}!|$|(}*t
jd|#|)|(|)|(fƒn|$}*|*| |#<qŽWn|tj&dƒkr‰d}n|tj&ddƒkrªd}n||| |!fS(NiRLidit EquipStarRateiisÉýÐDz»Í¬½×¸ÅÂÊÅäÖôíÎó£¡sX   ×°±¸ÉýÐÇ ¿Í»§¶Ë·¢µÄÎïÆ·Ë÷ÒýÓëʵ¼ÊÎïÆ·ID²»¶ÔÓ¦  index=%s,eatItemID=%s,wantEatItemID=%ss,equipID=%s,baseRate=%s,minRate=%s,maxRate=%sgY@sI    Í̸߽נcostClassLV=%s,classLV=%s,diffClassChangeRatePer=%s,addRate=%ssI    Í̵ͽנcostClassLV=%s,classLV=%s,diffClassChangeRatePer=%s,addRate=%ss%    ±¾¼þ×°±¸Ôö¼Ó¸ÅÂÊ=%s,µ±Ç°×ܸÅÂÊ=%ss2    È±ÉÙ±ØÒªÎïÆ·£¬²»×Ô¶¯¹ºÂò£¡itemID=%s,lackCnt=%ss4    ÕÒ²»µ½ÎïÆ·×Ô¶¯¹ºÂòÏûºÄ»õ±Ò£¡itemID=%s,lackCnt=%ss6    È±ÉÙ±ØÒªÎïÆ·: itemID=%s,lackMoney(%s)*Count(%s)=%sREi('R tGetIpyGameDatatGetCostEquipCnttGetCostEquipPlacetGetCostEquipColort GetIsJobLimitRRORltlenRtErrLogt    enumerateRtIsEmptyRmt GetItemColorRRtCheckJobt
GetSuiteIDt GetSuitRatet GetUnSuitRateRtGetItemClassLVtinttmathtceiltroundtmaxtminRWtGetCostItemDictRRRStGetShopItemPriceRR$RP(+R)R.R/R4R6R7R5t    isAutoBuyRJR-t costEquipCnttcostEquipPlaceListtcostEquipColorListt
isJobLimitR;RKR:tdiffClassChangeRatePerInfotunSuitRateRanget suitRateRangetiR~t    costEquiptequipIDtcostEquipColortcostEquipPlacetbaseRatetminRatetmaxRatetaddRatet costClassLVtdiffClassChangeRatePerR<R=t costItemDictR„titemCntRyRzR{R|t itemGoldPaperRx((sxD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\Operate_EquipStar.pyRÐsž
        6           *  * 
 !
$        c
Csøtjdi|d6tƒ}|s&dStj|ƒ}d}i}xh|D]`}|jƒ}tj||ƒ}|sxqHn||f}    |j|    dƒd||    <||7}qHWtj    |t
j |ƒtj |t
j |ƒtj |t
j||gƒdS(NRtClassLVii(R R RURROt GetGridIndexRtgett PlayerSuccesst!UpdateSuccessProgressByConditionsRbtSuccType_EquipStartUptateSuccessProgresstSuccType_EquipStarTotaltSuccType_EquipStarClass(
R)R.t ipyDataListt totalStarLVt classStarLVt starCountDictR-R~t    equipStart conditionKey((sxD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\Operate_EquipStar.pyRi3s$   (RRbR"RRdR RfRrR R¹RR
RR™RBRDR%RRi(((sxD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Event\EventSrc\Operate_EquipStar.pyt<module>s$                  E        T    c