hxp
2025-06-12 59331b7135fb10c24382d76fb0a3d721dddca7ee
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
Sð    hc@sÙdZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z d„Z d„Z d„Zd„Zd„Zd„Zd    „Zgd
„ZdS( sVersion = 2019-2-12 19:50iÿÿÿÿNcCsZt|ƒ}|sVtjjtjiƒ}|jtjƒrVt|ƒt|ƒqVndS(N(    t __CheckPlayerLuckyTreasureActiont
PyGameDatatg_operationActionDicttgett ShareDefinet!OperationActionName_LuckyTreasuret ActKey_StatetSyncLuckyTreasureInfotSyncLuckyTreasureResultInfo(t    curPlayertisResettactCostRebateInfo((sW.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerLuckyTreasure.pytOnLogin#s 
cCsbtƒtjƒ}xHt|jƒƒD]4}|j|ƒ}tj|ƒsPq&nt|ƒq&WdS(N(t__InitLuckyTreasureRateListt    GameWorldtGetPlayerManagertxrangetGetPlayerCounttGetPlayerByIndextIsNormalPlayerR(t playerManagertiR    ((sW.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerLuckyTreasure.pytRefreshLuckyTreasureAction.s cCsR|jƒ}tjjtjiƒ}|jtjdƒ}|jtjdƒ}|jtjdƒ}|j    t
j ƒ}||kr…dSt tj dgƒ}tjƒjdddd|t|ƒƒtjd||||f|ƒtj|t
j |ƒtj|t
jdƒtj|t
jdƒtj|t
jdƒt|ƒt|ƒtS(NiitDelUniversalGameRecsMÐÒÔ˼ø±¦ÖØÖÃ! LuckyTreasureID=%s,playerLuckyTreasureID=%s,state=%s,worldLv=%s(t GetPlayerIDRRRRRt    ActKey_IDRtActKey_WorldLVtNomalDictGetPropertytChConfigtDef_PDict_LuckyTreasureIDtstrt&Def_UniversalGameRecType_LuckyTreasureRRtGameServer_QueryPlayerResulttlentDebugLogt PlayerControltNomalDictSetPropertytDef_PDict_LuckyTreasureFreetDef_PDict_LuckyTreasurePointtDef_PDict_LuckyTreasureCntRRtTrue(R    tplayerIDtactLuckyTreasureInfotLuckyTreasureIDtstatetworldLVtplayerLuckyTreasureIDtmsgStr((sW.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerLuckyTreasure.pyR8s&  (    
 
c    Cs]tjjtjiƒ}|jtjdƒ}|jtjdƒ}|jtjdƒ}| sl| sl| rpdStj    d|ƒ}|sŒdS|j
ƒ}tj d|ƒ}|s´dSd}ga x–|D]Ž}|j ƒ}    ||    dksÇ||    dkrÿqÇn|jƒ}
|jƒ} |jƒ} |jƒ} || 7}t j||
| | ggƒqÇWdS(NitActLuckyTreasuretLuckyTreasureTemplatei(RRRRRRt ActKey_CfgIDRt IpyGameDataPYtGetIpyGameDatat GetTemplateIDtGetIpyGameDataListtg_itemRateListtGetWorldLVLimitt    GetItemIDt
GetItemCntt    GetIsBindt    GetWeighttappend(R*R,tcfgIDR-t
actIpyDatat
templateIDt ipyDataListttWeighttipyDatat worldLVLimittitemIDtitemCnttisBindtweight((sW.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerLuckyTreasure.pyR Ys4        
 cCststƒntS(N(R7R (((sW.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerLuckyTreasure.pyt__GetRandomRateListvs
cCsjtjƒj|ƒ}tjjtjiƒ}|jtjdƒ}|jtj    dƒ}| se| ridSt
j d|ƒ}|s…dS|j t jƒ}|rËt
jdƒ}    tj|tj|    ƒsËdSnd}
tj|tj|
ƒ} |
| kr    tj|dƒdStƒ} | sdS| dd} |j t jƒ}|j t jƒ}|jƒ}t
jddƒ}|||kr‹| }d}nv|t
jddƒkr¿tj| d dgƒ}ntj| dgƒ}t|ƒdkr÷tjd    ƒdS|d}|| krŽd}|jƒ}tj dd
|| dgƒt!tj"g|jƒgddgƒ}tjƒj#dddd |t|ƒƒn
||}|r½tj$|tj|    t j%ƒntj&|t jdƒtj&|t j|ƒtj&|t j|dƒxS|gD]H\}}}t'j(|||dtjgd t j)t*i| d 6gƒq Wt+||ƒdS(NiR0tLuckyAppraisalitGeRen_chenxin_998371iÿÿÿÿiis'    ¿ªÊ¼ÐÒÔ˼ø±¦ Ëæ»ú¿â½á¹û »ñÈ¡´íÎ󠣡tLuckyAppraisal_1tAddUniversalGameRecteventtisFree(,RRRRRRRRRR2R3R4RRR%t
GetFuncCfgR#t    HaveMoneyt IPY_GameWorldtTYPE_Price_Gold_Moneyt
ItemCommontGetItemPackSpacetrptItemt
NotifyCodeRIR&R't GetLuckyPointtGetResultByRandomListExR!R"tGetNamet WorldNotifyRRR tPayMoneytDef_Cost_LuckyTreasureR$t ItemControlertGivePlayerItemtItemGive_LuckyTreasuretFalseR(tindext
clientDatattickR    tactBossRebornInfoR,R>R?thasFreet    costMoneyt    needSpacet    packSpacetrandomRateListt    greatItemt curLuckyPointt curLuckyCntt maxLuckyPointt singlePointtgiveItemt newLuckyPointtrandomResultListt
playerNameR/REt    itemCountRG((sW.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerLuckyTreasure.pytOnStartLuckyTreasuresj           
  '+
= cCsmtjjtjiƒ}|jtjdƒ}|jtjdƒ}| sP| rTdStjd|ƒ}|spdSt    j
|ƒ\}}t j ƒ}|j ƒ||_||_|jƒ|_|jƒ|_|jƒ|_g|_tƒ}xX|D]P}    |    d\}
} } t jƒ} |
| _| | _| | _|jj| ƒqóWt|jƒ|_tj ||ƒdS(NiR0i(!RRRRRRR2R3R4RtGetOperationActionDateStrtChPyNetSendPackttagMCLuckyTreasureInfotCleart    StartDatetEndtDatet GetResetTypet    ResetTypet
GetLVLimittLimitLVRXt
LuckyPointtItemListRIttagMCLuckyTreasureItemtItemIDtItemCnttIsBindR=R!tCountt NetPackCommont SendFakePack(R    ReR,R>R?t startDateStrt
endDateStrtactInfotrandomItemListtitemInfoRERFRGt wellItemInfo((sW.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerLuckyTreasure.pyRÇs8 
                              cCs„tjƒ}|jƒ|jtjƒ|_|jtjƒ|_|rp|d|_    |d|_
|d|_ nt j ||ƒdS(Niii(RwttagMCLuckyTreasureResultInfoRyRRR&R€R%tHasFreeRƒR„R…R‡Rˆ(R    RtpackInfo((sW.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerLuckyTreasure.pyRçs 
  (t__doc__RRRRR3R#RwR‡RRR^RTR RRR RIRuRR(((sW.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerLuckyTreasure.pyt<module>s&                    
    !             F