cehua_lyf
2019-03-06 3c8ee0a8a524a6251d7d5aae2372e76fd8a99b9c
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
¾e\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 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((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 Ys4        
 cCststƒntS(N(R8R (((sc.\ServerPython\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(||||tjgd t j)t*i| d 6gƒq Wt+||ƒdS(NiR1tLuckyAppraisalitGeRen_chenxin_998371iÿÿÿÿiis'    ¿ªÊ¼ÐÒÔ˼ø±¦ Ëæ»ú¿â½á¹û »ñÈ¡´íÎ󠣡tLuckyAppraisal_1tAddUniversalGameRecteventtisFree(,RRRRRRRRRR3R4R5RRR&t
GetFuncCfgR$t    HaveMoneyt IPY_GameWorldtTYPE_Price_Gold_Moneyt
ItemCommontGetItemPackSpacetrptItemt
NotifyCodeRJR'R(t GetLuckyPointtGetResultByRandomListExR"R#tGetNamet WorldNotifyRR R!tPayMoneytDef_Cost_LuckyTreasureR%t ItemControlertGivePlayerItemtItemGive_LuckyTreasuretFalseR(tindext
clientDatattickR    tactBossRebornInfoR-R?R@thasFreet    costMoneyt    needSpacet    packSpacetrandomRateListt    greatItemt curLuckyPointt curLuckyCntt maxLuckyPointt singlePointtgiveItemt newLuckyPointtrandomResultListt
playerNameR0RFt    itemCountRH((sc.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerLuckyTreasure.pytOnStartLuckyTreasuresj           
  '+
= 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(NiR1i(&RRRRRRR3R4R5Rt GetGameWorldtGetGameWorldDictByKeytDef_Notify_WorldKey_ServerDaytChPyNetSendPackttagMCLuckyTreasureInfotCleartGetOperationActionDateStrt GetStartDatet    StartDatet
GetEndDatetEndtDatet GetResetTypet    ResetTypet
GetLVLimittLimitLVRYt
LuckyPointtItemListRJttagMCLuckyTreasureItemtItemIDtItemCnttIsBindR>R"tCountt NetPackCommont SendFakePack( R    RfR-R?R@t openServerDaytactInfotrandomItemListtitemInfoRFRGRHt 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(RzttagMCLuckyTreasureResultInfoR|RRR'R†R&tHasFreeR‰RŠR‹RRŽ(R    R’tpackInfo((sc.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerLuckyTreasure.pyRçs 
  (t__doc__RSRRR4R$RzRRRR_RUR RRR RJRvRR(((sc.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerLuckyTreasure.pyt<module>s&                    
    !             F