cehua-HWJ35
2019-03-07 0a005f6c7b55396a0beb0a64634e6e7c91cc19ec
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
81
82
3¼€\c@sÛddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z ddl Z ddlZddlZddlZddlZddlZedƒ\ZZZedƒ\ZZZZedƒ\ZZd„Zd„Zd„Zd„Z d    „Z!d
„Z"d „Z#d „Z$d „Z%d„Z&d„Z'd„Z(d„Z)d„Z*d„Z+d„Z,d„Z-d„Z.d„Z/d„Z0dS(iÿÿÿÿNiiicCs't||ƒs tjdƒdStjd|ƒ}tj|tjƒ}|t    }||krrt
j |dƒdSt ||t ƒs‰dS|t}|jƒdkrÄt
jd||jƒgƒn|jƒ}||jƒ|dg}t
jdd|ƒt||ƒtj||ƒt|ƒdS(Nsreturn can not Get GoldGift!!!sGoldGiftInfo_%stGeRen_chenxin_998371tiitGeRen_liubo_927007(t__CheckCanGetGiftt    GameWorldtDebugLogt ReadChConfigtGetEvalChConfigt
ItemCommontGetItemPackSpacet IPY_GameWorldtrptItemt Def_NeedSpacet PlayerControlt
NotifyCodet__GiveGoldGiftt Def_GiftInfotDef_NotifyMarktstript WorldNotifyt GetPlayerNametGetVIPLvt__UpdateLVAwardGetRecordtDataRecordPacktDR_GoldGiftGiveItemtSync_GoldGiftGetRecordInfo(t    curPlayertgiftNumt goldGiftInfot    packSpacet    needSpacet
notifyMarktvipLVt msgParamList((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGoldGift.pytGetPlayerGoldGiftSs* 
 
 
cCsdS(N((R((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGoldGift.pyR~sc
 
Cs‰t||ƒ}|stSxi|D]a}|t}|t}|t}d}t|ƒtkri|t}n|dkr{q n|tkr²tj    |||dt
j gt dt ƒq |t kr tjdƒjdt|ƒƒ}tjd|ƒ|stjd||fƒq nt|ƒdkrKtjd||t|ƒfƒq n|d}    t|ƒ|    d    <tj||    t dt ƒq q Wt S(
Nit showSysInfotAppointItemListt    ItemIndexs__GiveGoldGift itemData=%ss1__GiveGoldGift()itemType=%s,ItemIndex=%s not dataisA__GiveGoldGift()itemType=%s,ItemIndex=%s,recordCount=%s !=1 errortIsBind(t__GetGoldGiftInfoListtFalsetDef_InfoIndex_ItemTypetDef_InfoIndex_ItemCounttDef_InfoIndex_ItemIDtlentDef_InfoIndex_IsBindtDef_ItemType_CommonItemt ItemControlertGivePlayerItemR
R tTruetDef_ItemType_AppointItemt
PyMapTablet GetPyMapTablet    GetRecordtstrRRtErrLogtGivePlayerEquip(
RtgoldGiftInfoDicttgoldGiftInfoListtgiftInfotitemTypet    itemCounttitemIDtisBindtitemDatat itemDictData((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGoldGift.pyR‰s8 
 
 
   + !    
 cCsGd}|jƒ}x*|jƒD]}||kr|}PqqW||S(N((tGetJobtkeys(RR9tinfoKeytjobtkey((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGoldGift.pyR'¹s  cCsI|jtjdtjƒ}|d|>B}tj|tj|tjƒdS(Nii(tNomalDictGetPropertytChConfigtDef_PDict_GoldGiftGetRecordtDef_PDictType_GoldGiftR tNomalDictSetProperty(RRtcurValue((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGoldGift.pyRÈs  
cCsÁtjdƒ}|dks-|t|ƒkrBtjd|ƒtS|jƒ}tjƒ|}|||kr”tj    dd||||fƒtS|j
t j dt j ƒ}|td|ƒ@ S(NtNeedGoldCntListis)__CheckCanGetGift() error£ºnot giftNum=%ss-__CheckCanGetGift() curChangeGold not enough s$giftNum=%s,needGold=%s,changeGold=%si(RRR,RR7R(tGetChangeCoinPointTotalt
PlayerCoint GetCoinRateRRGRHRIRJtpow(RRtneedGoldCntListt curChangeCoint curChangeGoldRL((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGoldGift.pyRÖs      cCsr|jƒrdStjddƒ}|s,dStj|tj|ƒtj|tjtt    j    ƒƒƒt
|ƒdS(Nt    FirstGoldi( RNt IpyGameDataPYt
GetFuncCfgR RKRHtDef_PDict_FirstGoldRemainTimetDef_PDict_FirstGoldTipStartTimetintttimetSync_FirstGoldTime(Rt showSysTime((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGoldGift.pytDoFirstGoldOpenïs "
cCsÞtj|ƒrdS|jtjƒ}|s/dS|jƒrjtj|tjdƒtj|tjdƒnpt    t
j
ƒƒ}|jtjƒ}t d|||ƒ}tj|tj|ƒ|sÚtj|tjdƒndS(Ni( t    PlayerTJGtGetIsTJGRGRHRXRNR RKRYRZR[tmax(Rt
remainTimetcurTimet    startTime((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGoldGift.pytUpdateFirstGoldTimeüs cCsO|jtjƒ}|sdStjƒ}|jƒ||_tj||ƒdS(N(    RGRHRXtChPyNetSendPackttagMCFirstGoldTimetCleartFirstGoldRemainTimet NetPackCommont SendFakePack(RR]tsendPack((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGoldGift.pyR\s 
    c
Cs²|jtjƒ}|r2tjd|jƒƒdS|jƒsXtjd|jƒƒdStjddƒ}t    |j
ƒƒ}||kr¦tj d||jƒƒdS||}|sºdSt |ƒ}t j|tj|ƒ}||krþtj|dƒdStj|tjdƒx6|D].\}}}    tj|||dtjgƒqWt |ƒd    kr”tjdd
|jƒ|dd|ddgƒntj|d ƒt|ƒdS( sÁìÈ¡Íæ¼ÒÊ׳佱Àø
    sÒѾ­ÁìÈ¡¹ýÊ׳佱Àø£¡NsûÓгäÖµ¹ý£¬ÎÞ·¨ÁìÈ¡Ê׳佱Àø!RUis#ûÓÐÅäÖøÃÖ°Òµ¶ÔÓ¦µÄÊ׳佱Àø!job=%sRiitFirstPayReward1t FirstGoldGift(RGRHtDef_PDict_GoldGiftFirstRecordRRt GetPlayerIDRNRVtGetFuncEvalCfgR6RBR7R,RR    R
R R RRKR/R0RRRRtSync_FirstGoldInfo(
RtisGettfirstGoldRewardDicttjobStrtrewardItemListRRR>R=R?((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGoldGift.pytGetPlayerGoldGiftFirsts8  
  #5
cCstj|tjdƒdS(Ni(R RKRHtDef_PDict_DailyChargeState(R((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGoldGift.pytOnDayNscCsOt|ƒt|ƒ|jtjƒrKtj|tjtt    j    ƒƒƒndS(N(
RrR\RGRHRXR RKRYRZR[(R((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGoldGift.pytOnLogings
 
 
%cCs|jtjƒ}||}tj|tj|ƒ|jtjdƒ}|r|jtjdƒ}|dkrt|dƒqnt|ƒdS(Nii(    RGRHtDef_PDict_DailyGoldChargeCntR RKtDef_PDict_DailyGoldChargeStatet$Def_PDict_DailyGoldChargePrizeRecordtUpdateDailyGoldRecordt__GiveGoldGiftByMail(RtaddGoldt dailyGoldCnttupdDailyGoldCnttdailyGoldStatetdailyGoldRecord((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGoldGift.pytOnPlayerChargeGoldts
 
cCs˜|jƒ}tjƒ|}tjd|ƒ|dkr=dStjdƒ}|jƒ}x9t|ƒD]+\}}|d}|d}|d}    |d}
|d} |j    t
j dt
j ƒ} | t d|ƒ@rîtjd||fƒqen||krqentj|    |
| |g|ƒs$qen| t d|ƒB} tj|t
j | t
j ƒtjd    ||t|ƒ| fƒtj|d
||fƒqeWdS( NsÓʼþ·¢ËͳäÖµºÀÀñ£ºgoldTotal=%sitGoldGiftByMailiiiis,Óʼþ·¢ËͳäÖµºÀÀñ£ºÒÑ·¢Ë͹ý£¡i=%s,needGold=%ssCÓʼþ·¢ËͳäÖµºÀÀñ£ºi=%s,needGold=%s,giftItemList=%s,updMailRecord=%ssGoldGiftSendMail_%s_%s(RNRORPRRRRRpt    enumerateRGRHtDef_PDict_GoldGiftMailRecordRJRQR tSendMailRKR6RR(RtcoinPointTotalt    goldTotaltgoldGiftByMailListtplayerIDtiR;tneedGoldt giftItemListt    mailTitlet mailContenttgetDayst curMailRecordt updMailRecord((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGoldGift.pyRŒs:   
 
 
 
 
 
    cCsë|jtjdƒ}|dkr6tjd|ƒdStjdƒ}tj|t    j
ƒ}|t }||kr„t j |dƒdSt||tƒs›dS|t}|rÊt jd||jƒgƒnt|dƒtj|dƒdS(NiisÌìÌìÊ׳䲻¿ÉÁ죡µ±Ç°×´Ì¬=%stGoldGiftInfoFirstDailyRitdailyFirstGoldPrize(RGRHR}RRRRRR    R
R R R RRRRRRR~RR(RR„tdailyFirstGoldPrizeInfoRRR((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGoldGift.pytGetPlayerDailyGoldChargeGift·s$ 
 
 cCsdS(N((Rtrecord((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGoldGift.pyR~ÛscCsTtjƒ}|jƒ|jtjƒ|_|jtjƒ|_t    j
||ƒdS(N( RfttagMCFirstGoldInfoRhRGRHRotFirstGoldRewardStatetDef_PDict_FirstGoldTryt FirstGoldTryRjRk(RRl((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGoldGift.pyRràs  
c CsÈtjƒj|ƒ}|jtjƒdkr1dStjddiƒ}|j|j    ƒdƒ}|shdSt
j }|j ƒj tjƒ}|j|ƒ}tj|ƒrMtj|tjƒ}    |    dkrtj|ƒ}
tjd|jƒg|
gƒtj||dtƒqMtj|ƒj||    ƒ} | sMtjd|jƒƒdSntj|ƒ} t j!|| tj"| ƒ|ƒr–tj#|tjdƒn$|j$ƒtjd||jƒƒt%|ƒdS(    NitFirstGoldTryItemiiÿÿÿÿRs#    ÊÔÓÃÊ׳äÎäÆ÷ Ð¶ÏÂÔ­×°±¸Ê§°Ü£¡£¡is)    ÊÔÓÃÊ׳äÎäÆ÷ ÊÔ´©Ê§°Ü£¡£¡tryItemID=%s(&RtGetPlayerManagertGetPlayerByIndexRGRHRRVRqtgetRBt ShareDefinet    retWeapontGetItemManagertGetPackR
trptEquiptGetAtRtCheckItemCanUseR/tGetItemPackSpaceIndexR tGetMailItemDictR t SendMailByKeytGetIDtDelItemR(tPlayerItemControlert UnEquipItemtLogtGetOutPutItemObjtChEquiptDoPlayerEquipItemtGetEquipPackIndexRKtclearRr( tindext
clientDatattickRt tryItemDictt    tryItemIDt
equipPlacetcurPacktcurItemt
spaceIndextitemObjtresultttryItem((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGoldGift.pytOnTryFirstGoldItemðs6     !
 
c    Csyt}tj|ƒ}xÂtjtjgD]®}|jƒj|ƒ}xtd|j    ƒƒD]y}|j
|ƒ}t j |ƒsƒqYn|j ƒtjkržqYnt j|ƒs³qYn|j|tƒsËqYnt}PqYWq(W|sutjddiƒ}|j|jƒdƒ}|sdStjd||jƒƒtj||ddtjgtƒsutjd||jƒƒqundS(NiRŸis6Ê׳äÊÔÓÃÎïÆ·¹ýÆÚÁË ±³°ü²Ö¿âûÎäÆ÷ÔòËÍÒ»°ÑgiveItemID=%sisCÊ׳äÊÔÓÃÎïÆ·¹ýÆÚÁË ±³°ü²Ö¿âûÎäÆ÷ÔòËÍÒ»°Ñ Ã»¸ø³É¹¦£¡£¡giveItemID=%s(R(R/R¯R
R t rptWarehouseR¥R¦trangetGetCountR¨RR©t GetEquipPlaceR£R¤tCheckItemCanUseByExpireTimetPlayerCanEquipItemR1RVRqR¢RBRRR­R0(    Rt    haveEquiptplayerItemControlt    packIndexR½RŽR¾t giveItemDictt
giveItemID((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGoldGift.pytFirstGoldTryItemOutTimes2    $ cCsF|jtjƒdkrdStj|tjdƒtj|dƒdS(Nii(RGRHRxR RKtPlayerFamilyRedPackettCreatRedPacketByID(R((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGoldGift.pytDayChargeRedPackAward2s
(1RR
RR/RHRR R£RRfRÐRjR3RORVR_R³R[tFunctionNPCCommonRÅRR RR)R+R*R-R.R2R"RRR'RRR^ReR\RwRyRzR…RR™R~RrRÃRÏRÒ(((snE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerGoldGift.pyt<module>%sR                       +         0                              3                 +    $            #