hxp
2019-02-13 e2df5f18edad5bd5faf459bfa6838e788b5651a0
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
É}c\c@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((sc.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerLuckyTreasure.pytOnLogin#s 
cCsltƒtjƒ}xRt|jƒƒD]>}|j|ƒ}|dks&|jƒ rZq&nt|ƒq&WdS(N(    t__InitLuckyTreasureRateListt    GameWorldtGetPlayerManagertxrangetGetPlayerCounttGetPlayerByIndextNonet    GetInitOKR(t playerManagertiR    ((sc.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerLuckyTreasure.pytRefreshLuckyTreasureAction.s cCs<|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ƒ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_LuckyTreasurePointRRtTrue(R    tplayerIDtactLuckyTreasureInfotLuckyTreasureIDtstatetworldLVtplayerLuckyTreasureIDtmsgStr((sc.\ServerPython\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((sc.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerLuckyTreasure.pyR Ws4        
 cCststƒntS(N(R7R (((sc.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerLuckyTreasure.pyt__GetRandomRateListts
cCs
tjƒ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
jddƒ}|||kry| }d}nBtj| dgƒ}t|ƒdkr±tjdƒdS|d}|| krHd}|jƒ}tjdd    || dgƒt tj!g|jƒgddgƒ}tjƒj"dddd
|t|ƒƒn
||}|rwtj#|tj|    t j$ƒntj%|t jdƒtj%|t j|ƒxS|gD]H\}}}t&j'||||tjgd t j(t)i| d 6gƒq­Wt*||ƒdS( NiR0tLuckyAppraisalitGeRen_chenxin_998371iÿÿÿÿis'    ¿ªÊ¼ÐÒÔ˼ø±¦ Ëæ»ú¿â½á¹û »ñÈ¡´íÎ󠣡tLuckyAppraisal_1tAddUniversalGameRecteventtisFree(+RRRRRRRRRR2R3R4RRR&t
GetFuncCfgR$t    HaveMoneyt IPY_GameWorldtTYPE_Price_Gold_Moneyt
ItemCommontGetItemPackSpacetrptItemt
NotifyCodeRIR't GetLuckyPointtGetResultByRandomListExR"R#tGetNamet WorldNotifyRR R!tPayMoneytDef_Cost_LuckyTreasureR%t ItemControlertGivePlayerItemtItemGive_LuckyTreasuretFalseR(tindext
clientDatattickR    tactBossRebornInfoR,R>R?thasFreet    costMoneyt    needSpacet    packSpacetrandomRateListt    greatItemt curLuckyPointt maxLuckyPointt singlePointtgiveItemt newLuckyPointtrandomResultListt
playerNameR/REt    itemCountRG((sc.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerLuckyTreasure.pytOnStartLuckyTreasuresb           
  '+
= c Cs˜tjjtjiƒ}|jtjdƒ}|jtjdƒ}| sP| rTdStjd|ƒ}|spdSt    j
ƒj tj ƒd}t jƒ}|jƒt    j|jƒ|ƒ|_t    j|jƒ|ƒ|_|jƒ|_|jƒ|_|jƒ|_g|_tƒ}xX|D]P}|d\}    }
} t jƒ} |    | _|
| _| | _ |jj!| ƒqWt"|jƒ|_#t$j%||ƒdS(NiR0i(&RRRRRRR2R3R4Rt GetGameWorldtGetGameWorldDictByKeytDef_Notify_WorldKey_ServerDaytChPyNetSendPackttagMCLuckyTreasureInfotCleartGetOperationActionDateStrt GetStartDatet    StartDatet
GetEndDatetEndtDatet GetResetTypet    ResetTypet
GetLVLimittLimitLVRXt
LuckyPointtItemListRIttagMCLuckyTreasureItemtItemIDtItemCnttIsBindR=R"tCountt NetPackCommont SendFakePack( R    ReR,R>R?t openServerDaytactInfotrandomItemListtitemInfoRERFRGt wellItemInfo((sc.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerLuckyTreasure.pyR¾s8 
                      cCs„tjƒ}|jƒ|jtjƒ|_|jtjƒ|_|rp|d|_    |d|_
|d|_ nt j ||ƒdS(Niii(RxttagMCLuckyTreasureResultInfoRzRRR'R„R&tHasFreeR‡RˆR‰R‹RŒ(R    RtpackInfo((sc.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerLuckyTreasure.pyRÞs 
  (t__doc__RRRRR3R$RxR‹RRR^RTR RRR RIRtRR(((sc.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerLuckyTreasure.pyt<module>s&                    
                 ?