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
Sð    hc@s¦ddlZddlZddlZddlZddlZddlZddlZddlZd„Zd„Z    d„Z
d„Z d„Z dd„Z d    „ZdS(
iÿÿÿÿNcCsn|dks|dkrdStjd|ƒ}|s8dS|jƒ}|t|ƒkr`|dn||}|S(NitActRechargePrizeiÿÿÿÿ(tNonet IpyGameDataPYtGetIpyGameDatatGetTemplateIDListtlen(tcfgIDtdayIndextipyDatattemplateIDListt
templateID((sZ.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActRechargePrize.pyt__GetActTemplateIDs &cCsZt|ƒ}|sVtjjtjiƒ}|jtjƒrVt|ƒt|ƒqVndS(N(    t __CheckPlayerRechargePrizeActiont
PyGameDatatg_operationActionDicttgett ShareDefinet!OperationActionName_RechargePrizet ActKey_StatetSync_RechargePrizeActionInfotSync_RechargePrizeInfo(t    curPlayertisResettactInfo((sZ.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActRechargePrize.pyt OnPlayerLogin%s 
cCs[tjƒ}xHt|jƒƒD]4}|j|ƒ}tj|ƒsIqnt|ƒqWdS(N(t    GameWorldtGetPlayerManagertxrangetGetPlayerCounttGetPlayerByIndextIsNormalPlayerR (t playerManagertindexR((sZ.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActRechargePrize.pytRefreshRechargePrizeActionInfo/s c    CsJ|jƒ}tjjtjiƒ}|jtjdƒ}|jtjdƒ}|jt    j
ƒ}||kr†t j d|jƒƒdSt j d|||f|ƒt |jtjdƒ|jtjdƒƒ}tj|t    j
|ƒtjd|ƒ}|r2x1|D]&}tj|t    j|jƒdƒqWnt|ƒt|ƒtS(Nis³äÖµ·µÀû»î¶¯ID²»±ä£¬²»´¦Àí£¡s.³äÖµ·µÀûÖØÖÃ! actID=%s,playerActID=%s,state=%stRechargePrizeTemplate(t GetPlayerIDR RRRRt    ActKey_IDRtNomalDictGetPropertytChConfigtDef_PDict_RechargePrizeIDRtDebugLogR t ActKey_CfgIDtActKey_DayIndext PlayerControltNomalDictSetPropertyRtGetIpyGameDataListtDef_PDict_RechargePrizeCounttGetCTGIDRRtTrue(    RtplayerIDRtactIDtstatet playerActIDR
t ipyDataListR((sZ.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActRechargePrize.pyR 9s$  - '
 
c
Cs’tjjtjiƒ}|s/tjdƒdS|jtjƒsRtjdƒdSt|jtj    dƒ|jtj
dƒƒ}d}t j d|ƒ}|rÍx-|D]"}||jƒkr¤|}Pq¤q¤Wn|sîtjd||fƒdS|jtj|ƒ}|jƒ}||kr7tjd||fƒdS|d7}tj|tj||ƒ|jƒ}    t||ƒtjd||    |fƒ|    S(    NsÎÞ³äÖµ·µÀû»î¶¯s³äÖµ·µÀû»î¶¯Î´¿ªÆôiR"s*¸Ã³äÖµIDÎÞ³äÖµ·µÀû! ctgID=%s,templateID=%ss,ÒÑ´ï³äÖµ·µÀû×î´ó´ÎÊý: ctgID=%s,prizeCount=%sis-³äÖµ·µÀû: ctgID=%s,goldPrize=%s,prizeCount=%s(R RRRRRR(RR R)R*RRR-R/R%R&R.tGetPrizeCountLimitR+R,t GetGoldPrizeR(
RtctgIDRR
t
actIpyDataR5Rt
prizeCounttprizeCountLimitt    goldPrize((sZ.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActRechargePrize.pyt DoAddPlayerActRechargePrizeCountWs:  -    
  ic
CsLtjjtjiƒ}|s"dS|jtjƒs8dSt|jtjdƒ|jtjdƒƒ}|dkr}|g}nEg}t    j
d|ƒ}|rÂx$|D]}|j |j ƒƒq¢Wnt jƒ}g|_xL|D]D}t jƒ}    ||    _|jtj|ƒ|    _|jj |    ƒqÞWt|jƒ|_tj||ƒdS(NiR"(R RRRRRR R)R*RR-tappendR/tChPyNetSendPackttagMCRechargePrizePlayerInfotPlayerInfoListttagMCRechargePrizeInfotCTGIDR%R&R.t
PrizeCountRtCountt NetPackCommont SendFakePack(
RR8RR
t syncCTGIDListR5Rt playerActInfot    syncCTGIDt    prizeInfo((sZ.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActRechargePrize.pyRzs.-              c Cs¼tjjtjiƒ}|s"dS|jtjƒs8dS|jtjƒ}tjd|ƒ}|sfdS|j    ƒ}|s|dSt
j |ƒ\}}t j ƒ}||_||_|jƒ|_|jƒ|_g|_x½|D]µ}tjd|ƒ}|sqÝnt jƒ}    g|    _xW|D]O}
t jƒ} |
jƒ| _|
jƒ| _|
jƒ| _|    jj| ƒqWt |    jƒ|    _!|jj|    ƒqÝWt |jƒ|_"t#j$||ƒdS(NRR"(%R RRRRRR)RRRRtGetOperationActionDateStrR?ttagMCActRechargePrizeInfot    StartDatetEndtDatet
GetLVLimittLimitLVt GetIsDayResett
IsDayResett PrizeDayInfoR-ttagMCActRechargePrizeDayt    PrizeInfottagMCActRechargePrizeR/RCR7t    GoldPrizeR6tPrizeCountLimitR>RtPrizest    PrizeDaysRFRG( RRRRR    t startDateStrt
endDateStrR
R5tdayInfot    prizeDatatprize((sZ.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActRechargePrize.pyR—sH                      (R RR+RR?RFRR&R RR!R R=RR(((sZ.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActRechargePrize.pyt<module>s            
    
    
        #