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
83
84
85
86
87
88
89
90
91
92
93
¹¼€\c@s]dZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z ia edƒ\ZZZd„Zd„Zd„Zd„Zd„Zd    „Zd
„Zdd „Zd „Zd „Zd„Zed„Zd„Zd„Z d„Z!d„Z"d„Z#d„Z$dS(sVersion = 2018-10-18 19:50iÿÿÿÿNicCsl|jtj||fƒ}|jtj||fƒ}|d|dd|d}}}||||fS(Nidi
(tNomalDictGetPropertytChConfigtDef_PDict_WishingWellItemtDef_PDict_WishingWellItemCnt(t    curPlayertwellTypetititemDatatitemCnttitemIDtisBindt    isSpecial((sqE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerWishingWell.pyt__GetItemInfoByData-s$cCsit||ƒ}|d|d|}tj|tj||f|ƒtj|tj||f|ƒdS(Nidi
(t__GetJobItemIDt PlayerControltNomalDictSetPropertyRRR(RRRR    RR
R R((sqE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerWishingWell.pyt __SetItemData4s
  cCsBt|ƒtkr|St|ƒtkr,dS|j|jƒdƒS(Ni(ttypetinttdicttgettGetJob(RR    ((sqE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerWishingWell.pyR <s
cCs}t|ƒ}|sytjjtjiƒ}|jtjƒrSt|ƒt|ƒqyt    |t
dƒdryt|ƒqyndS(Ni( t__CheckPlayerWishingWellActiont
PyGameDatatg_operationActionDictRt ShareDefinetOperationActionName_WishingWellt ActKey_StatetSyncWishingWellInfotSyncWishingWellPlayerInfoR t WellType_Get(RtisResettactCostRebateInfo((sqE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerWishingWell.pytOnLoginDs 
 cCs`tjjtjiƒ}|jtjƒs\tj|tj    dƒt
|t t j ƒƒƒndS(Ni( RRRRRRRRRtDef_PDict_WishingWellFreeTimet__SendWishingWellMailRttime(RR ((sqE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerWishingWell.pytOnDayPs
cCsltƒtjƒ}xRt|jƒƒD]>}|j|ƒ}|dks&|jƒ rZq&nt|ƒq&WdS(N(    t__InitWishRateListt    GameWorldtGetPlayerManagertxrangetGetPlayerCounttGetPlayerByIndextNonet    GetInitOKR(t playerManagerRR((sqE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerWishingWell.pytRefreshWishingWellActionWs cCs9|jƒ}tjjtjiƒ}|jtjdƒ}|jtjdƒ}|jtjdƒ}|jtj    dƒ}|j
t j ƒ}||kršdSt jd||||f|ƒt||pÕttjƒƒ|ƒtj|t j |ƒ|r+tj|t jdƒt|dtƒt|ƒnt|ƒtS(NisGÐíÔ¸³ØÖØÖÃ! WishingWellID=%s,playerWishingWellID=%s,state=%s,worldLv=%si(t GetPlayerIDRRRRRt    ActKey_IDRt ActKey_CfgIDtActKey_WorldLVRRtDef_PDict_WishingWellIDR'tDebugLogR#RR$RRtDef_PDict_WishingWellRefreshCntt__DoActWishingRefreshtTrueRR(RtplayerIDtactWishingWellInfot WishingWellIDtstatetcfgIDtworldLVtplayerWishingWellID((sqE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerWishingWell.pyRbs&      " 
c    Cs‰|jtjƒ}|sA|dkr=tj|tj|ƒndStjd||||fƒ||d}|dkr}dSt}tj    ddƒ}g}g}xmt
|ƒD]_}    t |t |    ƒ\}
} } } |
r®|j |
| | gƒt|t |    ddddƒq®q®Wd}xÐt
|ƒD]Â}    t |t|    ƒ\}
} } } |
sTq$n|dkr›t|t ||
| | | ƒ|j |
| | gƒt}n%|dkrÀ|j |
| | gƒnt|t|    ddddƒ|d7}q$W|dkrÿt}ntj|tj|rdn|ƒ|r_tjd|jƒg|ƒ|dkr_t|ƒq_ntjd    ||||f|jƒƒdS(
Niÿÿÿÿs@ÐíÔ¸³ØÎ´ÁìÈ¡µÄ½±ÀøÓʼþ·¢·Å¼ì²é lastAwardTime=%s,state=%s,pass=%si€QitWishingWellCfgiitWishPoolsCÐíÔ¸³Ø¾àÀëʱ¼ä passDay=%s,mailItemList=%s,saveItemList=%s,isOver=%s(RRtDef_PDict_WishingWellAwardTimeRRR'R5R8t IpyGameDataPYt
GetFuncCfgR)R RtappendRtWellType_ResulttFalset SendMailByKeytGetIDR(RtcurTimeR<t lastAwardTimetpassDaytisOvertcountt mailItemListt saveItemListRR    RR
R tj((sqE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerWishingWell.pyR#†sP  #           " &c CsÉtjjtjiƒ}|jtjdƒ}|jtjdƒ}|jtjdƒ}| sl| sl| rpdStj    d|ƒ}|sŒdS|j
ƒ}tj d|ƒ}|s´dSia i}xñ|D]é}|j ƒ}    ||    dksÇ||    dkrÿqÇn|jƒ}
|jƒ} |jƒ} |jƒ} |jƒ}|jƒ}|jƒ}|j|
dƒ|||
<|
t kr†gt |
<nt |
j||
| | | ||ggƒqÇWtjdt ƒdS(NitActWishingWellt WishingWellis(    ³õʼÐíÔ¸³ØËæ»ú¿â g_randomWellDict=%s(RRRRRRR2R3RCtGetIpyGameDatat GetTemplateIDtGetIpyGameDataListtg_randomWellDicttGetWorldLVLimitt    GetIsFreet    GetItemIDt
GetItemCntt    GetIsBindt    GetWeighttGetMarktGetRareRER'R5(R:R<R=R>t
actIpyDatat
templateIDt ipyDataListt
weightDicttipyDatat worldLVLimittisFreeR    RR
tweighttmarktrare((sqE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerWishingWell.pyR&³s@             .cCs tstƒntj|gƒS(N(RWR&R(Rf((sqE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerWishingWell.pyt__GetRandomRateListÚs
cCstjƒj|ƒ}tjjtjiƒ}|jtjdƒ}|jtj    dƒ}| se| ridS|j
}t ||ƒt |ƒdS(Ni( R'R(R+RRRRRRR2tIsFreeR7R(tindext
clientDatattickRtactBossRebornInfoR<R=Rf((sqE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerWishingWell.pytOnActWishingRefreshçs     
c    CsCt|ƒ}|s#tjdƒdS|jƒ}tjd||fƒ|r½|s|jtjƒ}ttjƒƒ}t    j
dƒ}|||krºtjd|||f|ƒdSqnS|jtj ƒ}i|d6}    t t    j ddƒƒ}
tj|tj|
ƒsdSt    j
ddƒ} tj|| gƒ} t| ƒ| krdtjd| | fƒdS|s¦tj|tj|
tj|    ƒtj|tj |d    ƒn+|sÑtj|tjttjƒƒƒnxQt| ƒD]C\} }|\}}}}}|}t|t| ||||ƒqÞWtjd
|| f|ƒdS( Ns(    ÐíÔ¸³Ø»î¶¯Ë¢Ð½±³Ø Ëæ»ú¿â»ñÈ¡´íÎ󠣡s isFree=%s, randomRateList=%sR@sAÐíÔ¸³Ø»î¶¯Ãâ·Ñˢн±³Ø£¬ Ãâ·ÑCDδµ½£¡ freeCountCD=%s, passTime=%st
refreshCntiisN    ÐíÔ¸³Ø»î¶¯Ë¢Ð½±³Ø Ëæ»ú¿â½á¹û »ñÈ¡´íÎ󠣡randomCnt=%s, randomResultList=%sis. ÐíÔ¸³Ø»î¶¯Ë¢Ð isFree=%s, randomResultList=%s(RjR'R5RIRRR"RR$RCRDR6tevaltGetFuncCompileCfgRt    HaveMoneyt IPY_GameWorldtTYPE_Price_Gold_MoneytGetResultByRandomListExtlentPayMoneytDef_Cost_WishingWellRt    enumerateRtWellType_Select(RRftisSystemtrandomRateListR9t freeStartTimeRJt freeCountCDRqtinfoDictt    costMoneyt    randomCnttrandomResultListRtinfoR    RR
RhRiR ((sqE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerWishingWell.pyR7õsF   
 % c    Csw|j}|j}|j}|j}|ttgksH|ttgkrLdS||kr\dStjƒj|ƒ}|j    ƒ}t
|||ƒ\}    }
} } |    s¿tj d||f|ƒdSt
|||ƒ\} }}}t ||||    |
| | ƒ| rt |||| |||ƒnt |||ddddƒtj d|||    fƒt |||g||ggƒdS(Ns?ÐíÔ¸³Ø»î¶¯ÍÏ×§ÎïÆ· À´Ô´Î»ÖÃûÓÐÎïÆ· srcWellType=%s, srcIndex=%sis:ÐíÔ¸³Ø»î¶¯ÍÏ×§ÎïÆ· desWellType=%s,desIndex=%s,srcitemID=%s(t SrcWellTypetSrcIndext DesWellTypetDesIndexR|RFR'R(R+RIR R5RtSyncWellItemChange(RlRmRnt srcWellTypetsrcIndext desWellTypetdesIndexRR9t    srcitemIDt
srcitemCntt    srcisBindt srcisSpecialt    desitemIDt
desitemCntt    desisBindt desisSpecial((sqE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerWishingWell.pytOnActWishingDrag)s,                $  c
CsÂtjƒ}g|_x„|D]|\}}t|||ƒ\}}}}tjƒ}    ||    _||    _||    _||    _||    _    ||    _
|jj |    ƒqWt |jƒ|_ tj||ƒdS(N(tChPyNetSendPackttagMCActWishingDragResulttInfoListR ttagMCPlayerWishingDragInfotWellTypetIndextItemIDtItemCnttIsBindt    IsSpecialRERxtCntt NetPackCommont SendFakePack(
Rt
changeListtpackDataRRlR    RR
R t
changeInfo((sqE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerWishingWell.pyRŠCs                              c
    CsJtjddƒ}g}xQt|ƒD]C}t|t|ƒ\}}}}|r%|j|||gƒq%q%W|sŒtjd|jƒƒdSt    |ƒ}t
j |t j |ƒ}    ||    krÐtj|dƒdSx6|D].\}}}tj|||dt j gƒq×Wx0t|ƒD]"}t|t|ddddƒqWt|ƒdS(NR@isÁìÈ¡ÐíÔ¸³Ø½±Àø Ã»Óн±Àø¿ÉÁìÈ¡£¡tGeRen_chenxin_998371i(RCRDR)R RRER'tLogRIRxt
ItemCommontGetItemPackSpaceRutrptItemRt
NotifyCodet ItemControlertGivePlayerItemRR(
RRNt giveItemListRR    RR
R t    needSpacet    packSpace((sqE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerWishingWell.pytDoGetWishingAwardTs(  # 
cCs³tjjtjiƒ}|jtjdƒ}|jtjdƒ}| sP| rTdStjd|ƒ}|spdSt    j
ƒj tj ƒd}t jƒ}|jƒt    j|jƒ|ƒ|_t    j|jƒ|ƒ|_|jƒ|_|jƒ|_|jƒ|_g|_tdƒ}xp|D]h}|d\}    }
} } } t jƒ}|    |_|
|_| |_ | |_!| |_"|jj#|ƒq!Wt$|jƒ|_%t&j'||ƒdS(NiRRi((RRRRRRR2RCRTR't GetGameWorldtGetGameWorldDictByKeytDef_Notify_WorldKey_ServerDayR˜ttagMCActWishingWellInfotCleartGetOperationActionDateStrt GetStartDatet    StartDatet
GetEndDatetEndtDatet GetIsDayResett
IsDayResett GetResetTypet    ResetTypet
GetLVLimittLimitLVt WellItemInfoRjttagMCWishingWellItemRžRŸR tMarktRareRERxtCountR£R¤(RRoR<R=R`t openServerDaytactInfotrandomItemListtitemInfoR    RR
RhRit wellItemInfo((sqE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerWishingWell.pyRms< 
                           c
Cs·tjƒ}|jtjƒ}|sûtjjtj    iƒ}|jtj
dƒ}t j d|ƒ}|rût jƒjtjƒd}t j|jƒ|ƒ}|jƒ}|dkrÂd|}    n
d|}    t j|    dtjƒ}t jd|    ƒqûn||_|jtjƒ|_g|_t||jtƒt|jƒ|_g|_t||jt ƒt|jƒ|_!g|_"t||j"t#ƒt|j"ƒ|_$t%j&||ƒdS(NiRRis %s 05:00:00s %s 00:00:00t
timeFormats"ÐíÔ¸³Ø»î¶¯¿ªÊ¼Ê±¼ä startDayDate=%s('R˜ttagMCActWishingWellPlayerInfoRRR"RRRRRR2RCRTR'R´RµR¶R¹RºRÀtChangeTimeStrToNumtTYPE_Time_FormatR5t FreeStartTimeR6tWishCntRÄt__AddWishingWellItemPackInfoR|Rxt WellItemCnttCurAwardItemInfoRFt CurAwardCnttLastAwardItemInfoRt LastAwardCntR£R¤(
RR¦RRoR=R`RÉt    startDatet    resetTypet startDayDate((sqE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerWishingWell.pyRs8    
                c
Cs©|tkr!tjddƒ}ntjddƒ}xot|ƒD]a}t|||ƒ\}}}}tjƒ}    ||    _||    _||    _    ||    _
|j |    ƒq@WdS(NR@ii( R|RCRDR)R R˜ttagMCPlayerWishingWellItemRžRŸR R¡RE(
RtitemListRRNRR    RR
R R¦((sqE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerWishingWell.pyRÔ³s                  (%t__doc__RuR'RRCRR˜R£RRR®RªR$RWtrangeR|RFRR RR R!R%R/RR#R&RjRpRGR7R—RŠR³RRRÔ(((sqE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerWishingWell.pyt<module>s@                                          $ -    '          4                "    $