hzr
20 小时以前 f6d3d3bd9b136407c1983ca3638afe3cb77ad1f2
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
[vEgc@sôddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z d„Z d„Zdd„Zd„Zd„Zd„Zd„Zd    „Zd
„ZdS( iÿÿÿÿNc    CsAt|ƒ|tjkrdSxtjjtjiƒjƒD]ý}|jtjƒsZq<n|jtj    dƒ}|jtj
dƒ}|j t j |ƒs q<ntjd|ƒ}|s¾q<n|jƒ}|sÖq<n|j t j|ƒ}x#|D]}tj||dƒ}qóWtj|t j||ƒt||ƒq<WdS(NitActBuyCountGift(tOnCheckRelateFuncActt ShareDefinetDef_OnEventTypet
PyGameDatatg_operationActionDicttgett OperationActionName_BuyCountGifttvaluest ActKey_Statet ActKey_ActNumt ActKey_CfgIDtNomalDictGetPropertytChConfigtDef_PDict_BuyCountGiftIDt IpyGameDataPYtGetIpyGameDatatGetCTGCountDayResetListtDef_PDict_BuyCountGiftAwardt    GameWorldt SetBitValuet PlayerControltNomalDictSetPropertytSync_BuyCountGiftPlayerInfo(    t    curPlayert onEventTypetactInfotactNumtcfgIDtipyDatatCTGCountDayResetListt awardRecordtbuyCount((suE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActBuyCountGift.pytOnDay s,
%  cCsx–tjjtjiƒjƒD]v}|jtjdƒ}t||ƒ}| r|jtjƒr|j    t
j |ƒrt ||ƒt ||ƒqqWdS(Ni(RRRRRRR
t__CheckPlayerBuyCountGiftActionR    R R RtSync_BuyCountGiftActionInfoR(RRRtisReset((suE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActBuyCountGift.pyt OnPlayerLogin:s%/ cCsÜxÕtjjtjiƒjƒD]µ}|jtjƒs=qn|jtjƒ}tj    d|ƒ}|smqnt
|dƒs‚qn|j ƒ}|sšqn|r²||kr²qn|jtj dƒ}t ||ƒqWdS(NRtGetRelateFuncIDi(RRRRRRR    R RRthasattrR&R
R"(RtopenFuncIDListRRRt relateFuncIDR((suE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActBuyCountGift.pyRFs"% cCs^tjƒ}xKt|jƒƒD]7}|j|ƒ}tj|ƒsIqnt||ƒqWdS(N(RtGetPlayerManagertxrangetGetPlayerCounttGetPlayerByIndextIsNormalPlayerR"(Rt playerManagertindexR((suE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActBuyCountGift.pytRefreshBuyCountGiftActionInfo[s c
Csk|jƒ}tjtj|ƒ}|jtjdƒ}|jtjdƒ}|jtjdƒ}|j    t
j |ƒ}tj |d||ƒ}|r­|\}    }|    s­dSn||kràtj d|||f|jƒƒdStj d|||||f|ƒtj|t
j ||ƒtj|t
j|dƒ|rgt||ƒt||ƒt||ƒntS(NiRs<¹ºÂò´ÎÊýÀñ°ü»î¶¯ID²»±ä£¬²»´¦Àí£¡ actNum=%s,cfgID=%s,actID=%ssI¹ºÂò´ÎÊýÀñ°ü»î¶¯ÖØÖÃ! actNum=%s,cfgID=%s,actID=%s,playerActID=%s,state=%s(t GetPlayerIDRt
GetActInfoRRRt    ActKey_IDR    R R R RtGetActRelateFuncInfotDebugLogRRRt__ResetCTGIDCountR#RtTrue(
RRtplayerIDRtactIDtstateRt playerActIDt funcActInfotisInAct((suE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActBuyCountGift.pyR"fs,   ##  cCsy|jtjƒ}tjd|ƒ}|s.dS|jƒ}tj|d|ƒ|jƒ}|rut    j
||gƒndS(NR( RRR RRt GetCTGIDListt
PlayerCointDoResetCTGCountByIDListtGetActShopTypetFunctionNPCCommontResetShopItemBuyCountByShopType(RRRRtresetCTGIDListtshopType((suE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActBuyCountGift.pyR7Šs  c CsÓ|jƒ}tj|dƒ}|dkrBtjd||ƒdStjtj|ƒ}|jtjƒstjd||ƒdS|j    t
j |ƒs›dS|jtj ƒ}t jd|ƒ}|sÉdS|jƒ}|jƒ}||krtjd|||f|ƒdS||}    |j    t
j|ƒ}
|
td|ƒ@retjd||||
f|ƒdSd} x(|D] } | |j    t
j| ƒ7} qrW| |krÉtjd|||| |f|ƒdStj||    ƒsßdS|
td|ƒO}
tj|t
j||
ƒt||ƒxE|    D]=\} }}tj|| ||tjgd    dtigƒq Wtj||    dƒi|d
6|d 6|d 6t|    ƒd 6}t j!|d|ƒtjd||||    f|ƒdS(Nis!ûÓÐÖ¸¶¨ÁìÈ¡µÄ»î¶¯±àºÅ! actNum=%ss+¹ºÂò´ÎÊýÀñ°ü·Ç»î¶¯ÖÐÎÞ·¨ÁìÈ¡½±Àø! actNum=%sRs>¹ºÂò´ÎÊýÀñ°üûÓиôÎÊýÀñ°ü½±Àø! actNum=%s,cfgID=%s,buyCount=%sisO¹ºÂò´ÎÊýÀñ°ü»î¶¯ÒѾ­ÁìÈ¡¹ý¸Ã½±Àø! actNum=%s,cfgID=%s,buyCount=%s,awardRecord=%sse¹ºÂò´ÎÊýÀñ°ü»î¶¯ÀۼƹºÂò´ÎÊý²»×㣬ÎÞ·¨Ãâ·ÑÁìÈ¡! actNum=%s,cfgID=%s,CTGIDList=%s,totalBuyCount=%s < %steventRRR t awardItemListsI¹ºÂò´ÎÊýÀñ°ü»î¶¯ÁìÈ¡½±Àø! actNum=%s,cfgID=%s,buyCount=%s,awardItemList=%s("R2RtToIntDefR6R3RRRR    R R RR RRR?tGetCTGCountAwardInfoRtpowtLogtDef_PDict_CTGGoodsBuyCountt ItemControlertCheckPackSpaceEnoughRRRtGivePlayerItemt IPY_GameWorldtrptItemtFalsetNotifyGiveAwardInfotstrtDataRecordPacktDR_FuncGiveItem(RR RR9RRRt    CTGIDListtCTGCountAwardInfoRHRt totalBuyCounttctgIDtitemIDt    itemCountt isAuctionItemt addDataDict((suE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActBuyCountGift.pytOnGetBuyCountGiftAward—s\     
           2(    cCsBtjƒ}||_|jtj|ƒ|_tj||ƒdS(N(    tChPyNetSendPackttagMCActBuyCountGiftPlayerInfotActNumR R RtGiftAwardRecordt NetPackCommont SendFakePack(RRt
clientPack((suE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActBuyCountGift.pyRÓs
     cCsItjtj|ƒ}|jtjƒs+dS|jtj|ƒ}|sKdS|jtj    ƒ}t
j d|ƒ}|sydS|j ƒ}t |dƒr¾|jƒr¾tj||tƒ\}}ntj|ƒ\}}|jtj|ƒ}    tjƒ}||_|    |_||_|jƒ|_|jƒ|_|jƒ|_|jƒ|_|j ƒ|_!t"|j!ƒ|_#g|_$x«|j%ƒD]\}
} tj&ƒ} |
| _'g| _(xN| D]F\} }}tj)ƒ}| |_*||_+||_,| j(j-|ƒq³Wt"| j(ƒ| _.|j$j-| ƒq‚Wt"|j$ƒ|_/t0j1||ƒdS(NRR&(2RR3RRRR    R R RR RRRJR'R&tGetActRelateFuncDateR8tGetOperationActionDateStrtActKey_StartDateSyncRattagMCActBuyCountGiftInfoRct    StartDatetEndtDatet
GetLVLimittLimitLVt GetIsDayResett
IsDayResett GetResetTypet    ResetTypeRBtShopTypeR?RXtlent
CTGIDCounttBuyCountGiftListtitemsttagMCActBuyCountGiftt NeedBuyCountt AwardItemListttagMCActBuyCountGiftItemtItemIDt    ItemCounttIsBindtappendtCountt    GiftCountReRf(RRRR<RRRYt startDateStrt
endDateStrt startDateSyncR RHtgiftbagR\R]R^tgiftItem((suE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActBuyCountGift.pyR#ÛsR                                        (RRRRRaRCRVReRNRQR@RR R!R%tNoneRR1R"R7R`RR#(((suE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActBuyCountGift.pyt<module>s*                               $         <