hzr
2018-08-09 3346f8aae7f8abbd4b27c4564cbb802e7e717cc9
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
¸yd[c@sâddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z d„Z d„Z d„Zd„Zd„Zggd„Zd„Zd    „ZdS(
iÿÿÿÿNcCsot|ƒ}|sktjjtjiƒ}|jtjƒrkt|d|jtjgƒƒt    |ƒqkndS(NtgiftbagTypeList(
t__CheckPlayerFlashGiftbagActiont
PyGameDatatg_operationActionDicttgett ShareDefinet OperationActionName_FlashGiftbagt ActKey_StatetSyncFlashGiftbagBuyCounttActKey_GiftbagTypeListtSync_FlashGiftbagActionInfo(t    curPlayertisResettactInfo((sq.\ProjectSServer\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFlashGiftbag.pyt OnPlayerLogin s cCs^tjƒ}xKt|jƒƒD]7}|j|ƒ}|jƒdkrLqnt|ƒqWdS(Ni(t    GameWorldtGetPlayerManagertxrangetGetPlayerCounttGetPlayerByIndextGetIDR(t playerManagertindexR ((sq.\ProjectSServer\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFlashGiftbag.pytRefreshFlashGiftbagActionInfo*s cCsì|jƒ}tjjtjiƒ}|jtjdƒ}|jtjdƒ}|jtjgƒ}|j    t
j ƒ}||kr›t j d|jƒƒdStj|t
j |ƒt||ƒt j d||||f|ƒt|ƒtS(NisÏÞʱÀñ°ü»î¶¯ID²»±ä£¬²»´¦Àí£¡sAÏÞʱÀñ°üÖØÖÃ! actID=%s,playerActID=%s,state=%s,giftbagTypeList=%s(t GetPlayerIDRRRRRt    ActKey_IDRR    tNomalDictGetPropertytChConfigtDef_PDict_FlashGiftbagIDRtDebugLogt PlayerControltNomalDictSetPropertytResetGiftbagItemBuyCountR
tTrue(R tplayerIDR tactIDtstateRt playerActID((sq.\ProjectSServer\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFlashGiftbag.pyR4s    
cCsÖg}tjƒ}x§t|jƒƒD]“}|j|ƒ}|jƒsLq%n|jƒ|krdq%ntj|j    ƒ}|j
|ƒdkr’q%nt j ||dƒ|j |j    ƒƒq%W|rÒt||ƒndS(Ni(t IpyGameDataPYtIPY_DataRtGetFlashGiftbagCounttGetFlashGiftbagByIndextGetBuyCountLimittGetGiftbagTypeRtDef_PDict_FlashGiftbagBuyCountt GetGiftbagIDRRRtappendR(R Rt
syncIDListt
ipyDataMgrtitgiftbagt    buyCntKey((sq.\ProjectSServer\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFlashGiftbag.pyR Os   c CsRtjjtjiƒ}|s5tj|d|ƒdStjjtjiƒ}|jtjdƒ}|stj|d|ƒdS|jtjgƒ}|s±tj|d|ƒdS|t    |ƒkrÍ|dn ||d}t
j di|d6t t ƒ}g}d}    x=|D]5}
|j|
jƒƒ|
jƒ|kr |
}    Pq q W|    sptj|d    |||f|ƒdS|    jƒ} |    jƒ} |ji| d
6| d 6ƒ|    jƒ} |jtj| ƒ}| r|ji| d 6|d 6ƒ|| krtj|d|| f|ƒdSntj|tj| |dƒ| r×t    | ƒ}tj|tj|ƒ}||kr‰tjd|jƒg| ƒq×xK| D]@\}}}tj||||tjgdtj t |gƒqWn|    j!ƒ}|r>t"| ƒ}|sdnt#|j$ƒƒ}tj%d||j&ƒ||    j'ƒgƒnt(|| gƒt S(Ns!FlashGiftbag action info is null!isFlashGiftbag state is 0!s%FlashGiftbag GiftbagTypeList is null!iÿÿÿÿit FlashGiftbagt GiftbagTypes^OrderInfo giftbagIDList=%s can not found actGiftbagID in actGiftbagIDList=%s,actGiftbagType=%st    giftbagIDt giftItemListt buyCountLimittbuyCounts:FlashGiftbag Pay count limit !buyCount=%s,buyCountLimit=%sttevent()RRRRRtDataRecordPackt DR_CTGErrorRR    tlenR&tGetIpyGameDataByConditionR!tNoneR.R-tGetGiftItemListtupdateR*RRR,RRt
ItemCommontGetItemPackSpacet IPY_GameWorldtrptItemt SendMailByKeyRt ItemControlertGivePlayerItemt ItemGive_CTGt GetNotifyKeyt!GetFlashGiftbagIDOrderInfoIpyDatatintt GetPayRMBNumt WorldNotifyt GetPlayerNamet GetMainItemIDR(R t giftbagIDListt    addDRDictR R$RtactGiftbagTypetgiftbagIpyDataListtactGiftbagIDListtgiftbagIpyDatatipyDataR6R7R8R9t    needSpacet
emptySpacetitemIDt    itemCounttisBindt    notifyKeyt orderIpyDatatrmb((sq.\ProjectSServer\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFlashGiftbag.pytOnPlayerOrderGiftbagbsj*           +c
Csctjƒ}g|_|rsx|D]J}|jtj|ƒ}tjƒ}||_||_|jj    |ƒq"WnÊt
j ƒ}x»t |j ƒƒD]§}|j|ƒ}    |    jƒs¹q’n|r×|    jƒ|kr×q’n|    jƒ}|jtj|ƒ}|dkr q’ntjƒ}||_||_|jj    |ƒq’Wt|jƒ|_tj||ƒdS(Ni(tChPyNetSendPackttagMCFlashGiftbagPlayerInfot BuyCountListRRR,ttagMCFlashGiftbagBuyCountt    GiftbagIDtBuyCountR.R&R'RR(R)R*R+R-R>tCountt NetPackCommont SendFakePack(
R R/RtgiftbagBuyInfotgiftIDtbuyCntt buyCountInfoR0R1R2((sq.\ProjectSServer\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFlashGiftbag.pyR¢s6                            cCsptjjtjiƒ}|s"dS|jtjƒs8dS|jtjdƒ}|jtjdƒ}| sp| rtdStj    d|ƒ}|sdS|j
ƒ}|j ƒ}t |ƒt |ƒkrÕt jd|ƒdStjƒ}|jƒ|_|jƒ|_g|_xLt|ƒD]>\}}    tjƒ}
|    |
_|||
_|jj|
ƒqWt |jƒ|_|jƒ|_|jƒ|_g|_ x·|D]¯} tj!di| d6t"t"ƒ} | sÈq—ntj#ƒ} g| _$xD| D]<}|j%ƒ}t&|ƒ}tj'ƒ}||_(|s#dn    |j)ƒ|_*t |j*ƒ|_+|j,ƒ|_-|s_dnt.|j/ƒƒ|_0|j1ƒ|_2g|_3xo|j4ƒD]a\}}}tj5ƒ}||_6||_7||_8t.||j9ƒkƒ|_:|j3j|ƒq™Wt |j3ƒ|_;| j$j|ƒqäWt | j$ƒ| _<|j j| ƒq—Wt |j ƒ|_=t>j?||ƒdS(NitActFlashGiftbags%ÏÞʱÀñ°ü¿ª¹ØÊ±¼äʱ·ÖÅäÖôíÎó!cfgID=%sR4R5R:(@RRRRRRt ActKey_CfgIDR    R&tGetIpyGameDatatGetStartTimeListtGetEndTimeListR>RtErrLogRbttagMCFlashGiftbagInfot GetStartDatet    StartDatet
GetEndDatetEndtDatet ActivityTimet    enumeratettagMCFlashGiftbagTimet    StartTimetEndtTimeR.tActivityTimeCountt GetIsDayResett
IsDayResett
GetLVLimittLimitLVtGiftbagTypeInfoR?R!ttagMCFlashGiftbagTypet GiftbagInfoR-RLttagMCFlashGiftbagtGiftIDt GetOrderInfot    OrderInfot OrderInfoLenR*t BuyCountLimitRMRNtRMBtGetOriginalRMBt RMBOriginaltItemInfoRAttagMCFlashGiftbagItemtItemIDt    ItemCounttIsBindRQt
IsMainItemt GiftItemCountt GiftbagCounttGiftbagTypeCountRiRj(R R tcfgIDRtflashGiftbagIpyDatat startTimeListt endTimeListtpackInfoR1t    startTimettimeInfot giftbagTypeRUtgiftTypet giftIpyDataR6R_tgiftBagR[R\R]titem((sq.\ProjectSServer\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFlashGiftbag.pyR
Ász                               !                 cCs¿d}tj|ƒ}|s²i}tjƒ}tjƒ}xct|jƒƒD]O}|j|ƒ}|jƒ|kryqLn|j    ƒs‹qLn|||j    ƒ<qLWtj
||ƒn|j |ƒS(NtFlashGiftbagIDRMB( R&t GetConfigExRt GetPlatformR'RtGetOrderInfoCounttGetOrderInfoByIndextGetAppIDR-t SetConfigExR(R6tkeytFlashGiftbagIDRMBDicttappIDR0R1RX((sq.\ProjectSServer\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFlashGiftbag.pyRL s   (RRRR&RiRbR<RHRERCRRRRRR RaRR
RL(((sq.\ProjectSServer\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFlashGiftbag.pyt<module>s&                
    
            @    K