hwj35
10 小时以前 f21a8eeb9514e20285c7c98fdfb91740cbf845a9
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
֒Fgc@s    ddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z ddl Z d„Zd„Zd„Zd„Zed„Zd„Zd„Zd    „Zd
„Zd „ZdS( iÿÿÿÿNcCst|ƒdS(N(t__CheckPlayerDailyGiftbagAction(t    curPlayer((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerDailyGiftbag.pyt OnPlayerLogin!s
cCs[tjƒ}xHt|jƒƒD]4}|j|ƒ}tj|ƒsIqnt|ƒqWdS(N(t    GameWorldtGetPlayerManagertxrangetGetPlayerCounttGetPlayerByIndextIsNormalPlayerR(t playerManagertindexR((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerDailyGiftbag.pytRefreshDailyGiftbagActionInfo%s c
Cs>|jƒ}tjjtjiƒ}|jtjdƒ}|jtjdƒ}|jtjdƒ}| sq| rudS|j    t
j ƒ}t j d|ƒ}|s£dS|jƒ}t}    ||kr t}    t||ƒtj|t
j |ƒtjd||||f|ƒn#tjd|jƒƒt||ƒt|ƒ|    S(NitActDailyGiftbags=ÿÈÕÀñ°üÖØÖÃ! actID=%s,playerActID=%s,state=%s,giftbagType=%ssÿÈÕÀñ°ü»î¶¯ID²»±ä£¬²»´¦Àí£¡(t GetPlayerIDt
PyGameDatatg_operationActionDicttgett ShareDefinet OperationActionName_DailyGiftbagt    ActKey_IDt ActKey_Statet ActKey_CfgIDtNomalDictGetPropertytChConfigtDef_PDict_DailyGiftbagIDt IpyGameDataPYtGetIpyGameDatatGetGiftbagTypetFalsetTruet__ResetGiftbagItemBuyCountt PlayerControltNomalDictSetPropertyRtDebugLogtSyncDailyGiftbagBuyCounttSync_DailyGiftbagActionInfo(
RtplayerIDtactInfotactIDtstatetcfgIDt playerActIDt
cfgIpyDatat giftbagTypetisReset((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerDailyGiftbag.pyR/s,    # 
cCsktjdi|d6ttƒ}|s)dSx.|D]&}tj|tj|jƒdƒq0Wt||ƒdS(Nt DailyGiftbagt GiftbagTypei(    RtGetIpyGameDataByConditionRRR RtDef_PDict_DailyGiftbagBuyCountt GetGiftbagIDR"(RR+tgiftbagIpyDataListt giftIpyData((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerDailyGiftbag.pyRNs $ cCsWtjjtjiƒ}|s>|r:tj|d|ƒndS|jtjdƒ}|sy|rutj|d|ƒndS|jtjdƒ}t    j
d|ƒ}|sÆ|rÂtj|d|ƒndS|j ƒ}t    j
d||ƒ}    |    s|rtj|d||f|ƒndS|jtj dƒ}
t |    jƒ|jƒ|
ƒ} |ji|d6|d    6| d
6ƒ|    jƒ} |jtj|ƒ} | rè|ji| d 6| d 6ƒ| | krè|rátj|d | | f|ƒndSntj|tj|| dƒ| rF|sdntj}tj|| dd|t|gƒnt||ƒtS(Ns!DailyGiftbag action info is null!isDailyGiftbag state is 0!R s!DailyGiftbag GiftbagType is null!R-s7DailyGiftbag giftbagType=%s giftbagID=%s can not found!R+t    giftbagIDt giftItemListt buyCountLimittbuyCounts:DailyGiftbag Pay count limit !buyCount=%s,buyCountLimit=%sittevent(RRRRRtDataRecordPackt DR_CTGErrorRRRRRtActKey_WorldLVt__GetJobItemListtGetGiftItemListtGetJobtupdatetGetBuyCountLimitRRR0t
PlayerCointExchangePayCoinRR t ItemGive_CTGt ItemControlertGivePlayerItemOrMailRR"(RR4t    addDRDicttisCTGR%R'R(R*R+tgiftbagIpyDatat
actWorldLVR5R6R7t    eventName((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerDailyGiftbag.pytOnPlayerOrderDailyGiftbagYsR  "   % cCs#d}i}t|||tƒdS(Ni(RLR(RR4RG((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerDailyGiftbag.pytOnGetDailyFreeGiftbagŠscCs¥g}t|tƒr-tj||gƒ}n|}xk|D]c\}}}t|ƒtkrt|j|||gƒq:||kr:|j||||gƒq:q:W|S(N(t
isinstancetdictRtGetDictValueByRangeKeyttypetinttappend(t giftItemInfotjobtworldLVt jobItemListtitemListtitemIDtitemCnttisBind((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerDailyGiftbag.pyR=‘s !cCs×tjdi|d6ttƒ}|s)dStjƒ}g|_xp|D]h}|jƒ}|jtj    |ƒ}|dkrqEntj
ƒ}||_ ||_ |jj |ƒqEWt|jƒ|_tj||ƒdS(NR-R.i(RR/RtChPyNetSendPackttagMCDailyGiftbagPlayerInfot BuyCountListR1RRR0ttagMCDailyGiftbagBuyCountt    GiftbagIDtBuyCountRStlentCountt NetPackCommont SendFakePack(RR+R2tgiftbagBuyInfoR3R4tbuyCntt buyCountInfo((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerDailyGiftbag.pyR"žs"                 cCsQtjjtjiƒ}|s"dS|jtjƒs8dS|jtjdƒ}|sWdStjd|ƒ}|ssdS|j    ƒ}tj
di|d6t t ƒ}|s¨dS|jtj dƒ}t j|ƒ}tjƒ}g|_|jƒ|_x8|D]0}    |    jƒ}
t|
|ƒ} tjƒ} |
| _| s9dn    | jƒ| _t| jƒ| _|    jƒ| _| sudntj| j ƒƒ| _!g| _"x]t#|    j$ƒ|j%ƒ|ƒD]=\} }}tj&ƒ}| |_'||_(| j"j)|ƒqµWt| j"ƒ| _*|    j+ƒ| _,|jj)| ƒq÷Wt|jƒ|_-t.j/||ƒdS(NiR R-R.R8(0RRRRRRRRRRR/RR<RtGetPlayerPlatformR\ttagMCDailyGiftbagInfot GiftbagInfot
GetLVLimittLimitLVR1tGetGiftbagIDOrderInfoIpyDatattagMCDailyGiftbagtGiftIDt GetOrderInfot    OrderInfoRbt OrderInfoLenRAt BuyCountLimittCommFunct    RMBToCoint GetPayRMBNumtRMBtItemInfoR=R>R?ttagMCDailyGiftbagItemtItemIDt    ItemCountRSt GiftItemCountt GetDiscounttDiscountt GiftbagCountRdRe(RR%R(R*R+R2RJtappIDtpackInfoR3R4t orderIpyDatatgiftBagRYt    itemCountR[titem((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerDailyGiftbag.pyR#´sR             $    .         cCs­d}tj|ƒ}|sši}tjƒ}xWt|jƒƒD]C}|j|ƒ}|jƒsgq@n|||jƒ|jƒf<q@Wtj||ƒn|j    ||fƒS(NtGiftbagIpyDataDict(
Rt GetConfigExtIPY_DataRtGetOrderInfoCounttGetOrderInfoByIndexR1tGetAppIDt SetConfigExR(R4RtkeyR‡t
ipyDataMgrtitipyData((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerDailyGiftbag.pyRnés   (RRRRRdR\R:REt IPY_GameWorldt
ItemCommonRRRuRBRR RRRRLRMR=R"R#Rn(((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerDailyGiftbag.pyt<module>s.                      
         1                 5