hxp
2025-05-30 3f3ecbc0329d3d14b80f261827c7522f63d2fcef
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
Sð    hc@sëddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
d„Z d„Z d„Z d„Zd„Zd„Zd„Zd    „Zd
„Zd „Zd „ZdS( iÿÿÿÿNcCsOxHtjjtjiƒjƒD](}|jtjdƒ}t||ƒqWdS(Ni(t
PyGameDatatg_operationActionDicttgett ShareDefinetOperationActionName_GodGifttvaluest ActKey_ActNumt__CheckPlayerGodGiftAction(t    curPlayertactInfotactNum((sT.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActGodGift.pyt OnPlayerLogins%cCs^tjƒ}xKt|jƒƒD]7}|j|ƒ}tj|ƒsIqnt||ƒqWdS(N(t    GameWorldtGetPlayerManagertxrangetGetPlayerCounttGetPlayerByIndextIsNormalPlayerR(R
t playerManagertindexR((sT.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActGodGift.pytRefreshGodGiftActionInfo&s c    Cs|jƒ}tjtj|ƒ}|jtjdƒ}|jtjdƒ}|jtjdƒ}|j    t
j |ƒ}||krŸtj d||f|ƒn<|jtj dƒ}t|ƒ}    tj d|||||||    f|ƒtj|t
j ||ƒtj|t
j||ƒtj|t
j|dƒtj|t
j|dƒ|    ritjd|    ƒng}
|
rÛxc|
D]X} | jƒ} | jƒ} x7| jƒD])}tj|t
j|| |fdƒq§Wq|Wn|rþt||ƒt||ƒntS(Nis.ÌìµÛÀñ°ü»î¶¯ID²»±ä£¬²»´¦Àí£¡actNum=%s,actID=%ss]ÌìµÛÀñ°üÖØÖÃ! actNum=%s,actID=%s,playerActID=%s,state=%s,cfgID=%s,actWorldLV=%s,templateID=%stActGodGiftAward(t GetPlayerIDR t
GetActInfoRRRt    ActKey_IDt ActKey_Statet ActKey_CfgIDtNomalDictGetPropertytChConfigtDef_PDict_GodGiftIDtDebugLogtActKey_WorldLVt__GetActTemplateIDt PlayerControltNomalDictSetPropertytDef_PDict_GodGiftWorldLVtDef_PDict_GodGiftResetCounttDef_PDict_GodGiftAwardPoolt IpyGameDataPYtGetIpyGameDataListtGetAwardLibTypetGetLibItemInfotkeystDef_PDict_GodGiftItemStatetSync_GodGifActionInfotSync_GodGiftPlayerInfotTrue(RR
tplayerIDR    tactIDtstatetcfgIDt playerActIDt
actWorldLVt
templateIDtawardIpyDataListt awardIpyDatatlibTypetlibItemInfoDicttnum((sT.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActGodGift.pyR0s6           . cCsÉ|jtjdƒ}|jtjdƒ}|jtjdƒ}|dksW|dkr[dStjd|ƒ}|swdS|jƒ}t    j
||ƒ}|sŸdS|t |ƒkr»|dn||}|S(Nit
ActGodGiftiÿÿÿÿ( RRRtActKey_DayIndexRtNoneR&tGetIpyGameDatatGetTemplateIDInfoR tGetDictValueByRangeKeytlen(R    R2tdayIndextworldLVtipyDatattemplateIDInfottemplateIDListR5((sT.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActGodGift.pyR Ws &cCsR|jtj|||fƒ}|d}||dd}|d}|||fS(Nidi
(RRR+(RR
R8R:t    itemStatet chooseTimestisChoosetisGot((sT.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActGodGift.pytGetGodGiftItemStategs
 
 
cCs=|d|d|}tj|tj|||f|ƒ|S(Nidi
(R!R"RR+(RR
R8R:RHRIRJt updItemState((sT.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActGodGift.pytSetGodGiftItemStatens#c Cstjƒj|ƒ}|jƒ}|j}d„|jDƒ}tjtj|ƒ}|j    tj
dƒ}|j    tj dƒ}    t |ƒ}
tj d|||    |
|f|ƒ| sÀ|     sÀ|
rÔtj d|ƒdS|jtj|ƒrþtj d|ƒdS|
rtjd|
ƒng} | s&dSg} xd| D]\} | jƒ}|j    |gƒ}| jƒ}| jƒ}gg}}x{|jƒD]m\}}|d}t||||ƒ\}}}|rÓ|j|ƒq‰| sæ||kr‰|j|ƒq‰q‰Wtj d||f|ƒtj d    ||t|ƒf|ƒt|ƒ}||krvtj d
||ƒ| j|ƒq3nx|D]}||kr¯tj d ||f|ƒq}n||krÞtj d |||f|ƒq}nt||||ƒ\}}}|d 7}d }t|||||||ƒ}tj d||||||f|ƒ|j|ƒ|d 7}||ksz| r}| j|ƒPq}q}Wq3W| rÞt| ƒt| ƒkrÞtj d|ƒtj|tj|d ƒntj d| |ƒt||ƒdS(NcSsi|]}|j|j“qS((t ItemNumListt ItemLibType(t.0tinfo((sT.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActGodGift.pys
<dictcomp>ˆs    isPÌìµÛÀñ°üÑ¡ÔñÎïÆ·: actNum=%s,state=%s,cfgID=%s,templateID=%s,chooseItemNumDict=%ssÌìµÛÀñ°ü»î¶¯×´Ì¬Òì³£!s'ÌìµÛÀñ°ü½±³ØÒѾ­Ñ¡ÔñÍê±Ï£¬ÎÞ·¨Öظ´Ñ¡Ôñ!Ris3ÌìµÛÀñ°üÑ¡Ôñ¿â½±Æ·! libType=%s,chooseItemNumList=%ss>    needChooseCount=%s,hadChooseNumList=%s,canChooseNumList=%ss"    ¸Ã¿âÒѳ¬¹ýÑ¡ÔñÍê±Ï! libType=%ss    Òѱ»Ñ¡Ôñ! libType=%s,num=%ss)    ²»¿ÉÑ¡Ôñ! libType=%s,num=%s not in %sisS    Ñ¡Ôñ½±Æ·! libType=%s,num=%s,chooseTimes=%s,isChoose=%s,isGot=%s,updItemState=%ssÌìµÛÀñ°üÉú³É½±³ØOK!s*ÌìµÛÀñ°ü½±³ØÎ´Ñ¡ÔñÍê±Ï! chooseOKLibList=%s( R R RRtActNumtChooseItemListRRRRRRR RRRR%R&R'R(R)tGetChooseItemCounttitemsRKtappendtstrRARMtremoveR!R"R,(Rt
clientDatattickRR/R
tchooseItemNumDictR    R1R2R5R6tchooseOKLibListR7R8tchooseItemNumListR9tneedChooseCountthadChooseNumListtcanChooseNumListR:titemInfotcanChooseTimesRHRIt_thadChooseCountRJRL((sT.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActGodGift.pytOnActGodGiftChooseItem„s€               
#      
     
   c'Csútjƒj|ƒ}|jƒ}|j}tjtj|ƒ}|jtj    dƒ}|jtj
dƒ}t |ƒ}    tj d||||    f|ƒ| sª| sª|     r¾tj d|ƒdS|j tj|ƒsètj d|ƒdStjd|ƒ}
|
sdS|
jƒ} |
jƒ} |
jƒ} |
jƒ}|    rLtjd|    ƒng}|s\dSg}g}xå|D]Ý}|jƒ}|jƒ}|jƒ}x°|jƒD]¢\}}|d \}}}}t||||ƒ\}}}|r|j||gƒq¦n|sq¦n||k}|j||||||||||g
ƒq¦WqoW|sjtj d|ƒdSt|ƒ} | t| ƒkr’| | n| d    }!| t|ƒkr¸|| n|d    }"tj|| |!ƒsÛdSt j!|t"j#t$ƒs÷dStj d
| |f|ƒtj d |!|"f|ƒtj d ||ƒtj%|ƒ}#|#sXdS|#\    }}}}}}}}}tj d ||||||||f|ƒi|d6| d6}$tj&|| |!tj'|$ƒsÛdSd}t(|||||||ƒ}%tj d|||%f|ƒt)||ƒi|d6| d6}&tj*|| |"tj+|&ƒt,j-||||t"j#gddt.igƒr·|r·tj/dd|j0ƒ||gƒq·nt|ƒdkrötj1|tj|dƒtj d|ƒndS(Nis;ÌìµÛÀñ°ü»î¶¯³é½±: actNum=%s,state=%s,cfgID=%s,templateID=%ssÌìµÛÀñ°ü»î¶¯×´Ì¬Òì³£!s!ÌìµÛÀñ°ü½±³ØÎ´Ñ¡ÔñÍê±Ï£¬ÎÞ·¨³é½±!R;Ris±¾´Î½±³ØÒѳéÍê!iÿÿÿÿs&    Òѳé¿â,±àºÅÁбí: awardCount=%s, %ss(    costMoneyValue=%s,prizeMoneyValue=%ss    randItemWeightList=%ss`    ³éÖÐ: libType=%s,num=%s,itemID=%s,itemCount=%s,isBind=%s,chooseTimes=%s,isChoose=%s,isGot=%sR
t
awardCountis9    ¸üпâ±àºÅÎïÆ·×´Ì¬: libType=%s,num=%s,updItemState=%steventtActGodGiftNotifyis    ½±³ØÒѱ»³éÍê!(2R R RRRRRRRRRRR RRRR%R&R>tGetUseMoneyTypetGetUseGoldListtGetPrizeMoneyTypetGetPrizeMoneyListR'R(R)tGetNotifyItemNumListRURKRVRAR!t    HaveMoneyt
ItemCommontCheckPackHasSpacet IPY_GameWorldtrptItemR.tGetResultByWeightListtPayMoneytDef_Cost_ActGodGiftRMR-t    GiveMoneytDef_GiveMoney_ActGodGiftt ItemControlertGivePlayerItemtFalset WorldNotifyt GetPlayerNameR"('RRYRZRR/R
R    R1R2R5RDt CostMoneyTypetcostMoneyValueListtPrizeMoneyTypetprizeMoneyValueListR6t gotAwardListtrandItemWeightListR7R8R9tnotifyItemNumListR:RatweighttitemIDt    itemCounttisBindRHRIRJtisNotifyRftcostMoneyValuetprizeMoneyValuet randItemInfotinfoDictRLt addDataDict((sT.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActGodGift.pytOnActGodGiftlotteryØs–                3 &&!    # 0(c Cs\tjƒj|ƒ}|jƒ}|j}tjtj|ƒ}|jtj    dƒ}|jtj
dƒ}t |ƒ}    tj d||||    f|ƒ| sª| sª|     r¾tj d|ƒdSt jd|ƒ}
|
sÚdS|
jƒ} |
jƒ} |jtj|ƒ} | | kr5tj d|| | f|ƒdS|    rMt jd|    ƒng}|s]dS|jtj|ƒdkr d}xn|D]f}|jƒ}|jƒ}xE|jƒD]7}t||||ƒ\}}}|r±|d7}q±q±Wq†W|| kr0tj d    ||| f|ƒdSntj d
|ƒx¹|D]±}|jƒ}|jƒ}x|jƒD]‚}t||||ƒ\}}}| rš| ršqbnd \}}t|||||||ƒ}tj d ||||f|ƒqbWq7W| d}tj|tj||ƒtj|tj|dƒtj d ||ƒt||ƒt||ƒdS(Nis;ÌìµÛÀñ°üÖØÖý±³Ø: actNum=%s,state=%s,cfgID=%s,templateID=%ssÌìµÛÀñ°ü»î¶¯×´Ì¬Òì³£!R;s<ÌìµÛÀñ°üÒѳ¬¹ý×î´óÖØÖý±³Ø´ÎÊý! cfgID=%s,resetCount=%s >= %sRiisAÌìµÛÀñ°üÒѳ齱´ÎÊý²»×㣬ÎÞ·¨ÖØÖý±³Ø! cfgID=%s,awardCount=%s < %ss!½±³ØÒѳéÍê£¬ÖØÖÃʱ²»ÐèÒªÅжϴÎÊý!sD    ÖØÖÿ⽱Ʒ״̬: libType=%s,num=%s,chooseTimes=%s,updItemState=%ss"    ÖØÖý±³Ø³É¹¦: updResetCount=%s(ii(R R RRRRRRRRRRR RR&R>tGetResetLimitTimestGetResetCountMaxRRR$R'R%R(R)R*RKRMR!R"R,R-(RRYRZRR/R
R    R1R2R5RDtresetLimitTimest resetCountMaxt
resetCountR6RfR7R8R9R:RcRJRHRIRLt updResetCount((sT.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActGodGift.pytOnActGodGiftReset>sl                      
  cCsótjtj|ƒ}|jtjdƒ}|jtjdƒ}| sM| rQdSt|ƒ}|sgdStj    d|ƒ}|sƒdStj
|ƒ\}}t j ƒ}    ||    _ ||    _||    _|jƒ|    _|jƒ|    _|jƒ|    _|jƒ|    _t|    jƒ|    _|jƒ|    _|jƒ|    _t|    jƒ|    _|jƒ|    _ |j!ƒ|    _"g|    _#|r|tj$d|ƒng}
|
r´x)|
D]} | j%ƒ} | j&ƒ} | j'ƒ}t j(ƒ}| |_)||_*g|_+x¨| j,ƒD]š\}}|\}}}}}t-||| |ƒ\}}}t j.ƒ}||_/||_0||_1||_2||_3||_4||_5|j+j6|ƒqíWt|j+ƒ|_7|    j#j6|ƒqWnt|    j#ƒ|    _8|j9t:j;|ƒ|    _<t=j>||    ƒdS(NiR;R(?R RRRRRRR R&R>tGetOperationActionDateStrtChPyNetSendPackttagMCActGodGiftInfoRRt    StartDatetEndtDatet GetIsDayResett
IsDayResett
GetLVLimittLimitLVRiR}RjtCostMoneyValueListRAtCostMoneyValueCountRkRRltPrizeMoneyValueListtPrizeMoneyValueCountRtResetLimitTimesRt ResetCountMaxt ItemLibListR'R(R)RTttagMCActGodGiftItemLibROtNeedChooseCounttGodGiftItemListRURKttagMCActGodGiftItemtItemNumtItemIDt    ItemCounttIsBindtCanChooseTimest ChooseTimestIsChooseRVtGodGiftItemCountt ItemLibCountRRR%t IsAwardPoolOKt NetPackCommont SendFakePack(RR
R    R1R2R5RDt startDateStrt
endDateStrt
clientPackR6R7R8R9R^titemLibR:RaRcR…R†R‡RbRHRItitem((sT.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActGodGift.pyR,sn                                                                cCsftjtj|ƒ}|jtjdƒ}|s4dSt|ƒ}|sJdStjƒ}||_    |j
t j |ƒ|_ g|_|r™tjd|ƒng}|r@x˜|D]}|jƒ}|jƒ}    xl|    jƒD]^}
t||||
ƒ\} } } | sq×ntjƒ} || _|
| _|jj| ƒq×Wq¬Wnt|jƒ|_tj||ƒdS(NiR(R RRRRRR R—ttagMCActGodGiftPlayerInfoRRRRR$t
ResetCountt AwardItemListR&R'R(R)R*RKttagMCActGodGiftAwardItemRORªRVRAtAwardItemCountR´Rµ(RR
R    R1R5R¸R6R7R8R9R:RcRJt    awardItem((sT.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActGodGift.pyR-Às6                      (RRR!R&RxR—R´RqRoR RR RRR RKRMReRŽR•R,R-(((sT.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActGodGift.pyt<module>s*                   
    '                T    f    C    ?