cehua-TT
2018-10-25 082a399d9c44c0847592e414b57a9b41dea8fc80
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
âÐ[c@scdZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z ia iaedƒ\ZZZd„Zd„Zd„Zd„Zd„Zd    „Zd
„Zdd „Zd „Zd „Zd„Zed„Zd„Z d„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((sa.\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((sa.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerWishingWell.pyt __SetItemData4s
  cCsBt|ƒtkr|St|ƒtkr,dS|j|jƒdƒS(Ni(ttypetinttdicttgettGetJob(RR    ((sa.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerWishingWell.pyR <s
cCsZt|ƒ}|sVtjjtjiƒ}|jtjƒrVt|ƒt|ƒqVndS(N(    t__CheckPlayerWishingWellActiont
PyGameDatatg_operationActionDictRt ShareDefinetOperationActionName_WishingWellt ActKey_StatetSyncWishingWellInfotSyncWishingWellPlayerInfo(RtisResettactCostRebateInfo((sa.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerWishingWell.pytOnLoginDs 
cCsJtjjtjiƒ}|jtjƒsFt|ttjƒƒƒndS(N(    RRRRRRt__SendWishingWellMailRttime(RR((sa.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerWishingWell.pytOnDayNscCsetjƒ}xRt|jƒƒD]>}|j|ƒ}|dks|jƒ rSqnt|ƒqWdS(N(t    GameWorldtGetPlayerManagertxrangetGetPlayerCounttGetPlayerByIndextNonet    GetInitOKR(t playerManagerRR((sa.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerWishingWell.pytRefreshWishingWellActionTs cCs/|jƒ}tjjtjiƒ}|jtjdƒ}|jtjdƒ}|jtjdƒ}|jtj    dƒ}|j
t j ƒ}||kršdSt jd||||f|ƒt||pÕttjƒƒ|ƒtj|t j |ƒ|r+iaiat|dtƒt|ƒt|ƒntS(NisGÐíÔ¸³ØÖØÖÃ! WishingWellID=%s,playerWishingWellID=%s,state=%s,worldLv=%si(t GetPlayerIDRRRRRt    ActKey_IDRt ActKey_CfgIDtActKey_WorldLVRRtDef_PDict_WishingWellIDR$tDebugLogR!RR"RRtg_randomWellDicttg_specialMarkDictt__DoActWishingRefreshtTrueRR(RtplayerIDtactWishingWellInfot WishingWellIDtstatetcfgIDtworldLVtplayerWishingWellID((sa.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerWishingWell.pyR_s(      "
 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$Wtj|tj|rdn|ƒ|r1tjd|jƒg|ƒntjd    ||||f|jƒƒdS(
Niÿÿÿÿs@ÐíÔ¸³ØÎ´ÁìÈ¡µÄ½±ÀøÓʼþ·¢·Å¼ì²é lastAwardTime=%s,state=%s,pass=%si€QitWishingWellCfgiitWishPoolsCÐíÔ¸³Ø¾àÀëʱ¼ä passDay=%s,mailItemList=%s,saveItemList=%s,isOver=%s(RRtDef_PDict_WishingWellAwardTimeRRR$R2R6t IpyGameDataPYt
GetFuncCfgR&R t WellType_GettappendRtWellType_ResulttFalset SendMailByKeytGetID(RtcurTimeR:t lastAwardTimetpassDaytisOvertcountt mailItemListt saveItemListRR    RR
R tj((sa.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerWishingWell.pyR!ƒsH  #      "&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|
dƒ|||
<|
t krzgt |
<nt |
j||
| | | |ggƒ|d|d}}|tj|dƒdkrÇ|t|<qÇqÇWtjdt tfƒdS(NitActWishingWellt WishingWelliids>    ³õʼÐíÔ¸³ØËæ»ú¿â g_randomWellDict=%s, g_specialMarkDict=%s(RRRRRRR/R0RAtGetIpyGameDatat GetTemplateIDtGetIpyGameDataListR3tGetWorldLVLimitt    GetIsFreet    GetItemIDt
GetItemCntt    GetIsBindt    GetWeighttGetMarkRDR4R$R2(R8R:R;R<t
actIpyDatat
templateIDt ipyDataListt
weightDicttipyDatat worldLVLimittisFreeR    RR
tweighttmarktgroupIDtrowID((sa.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerWishingWell.pyt__InitWishRateList­sD            'cCs tstƒntj|gƒS(N(R3RhR(Rc((sa.\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(RRRRRRR/tIsFreeR5R(tindext
clientDatattickRtactBossRebornInfoR:R;Rc((sa.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerWishingWell.pytOnActWishingRefreshãs     
c    CsXt|ƒ}|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ƒƒƒnxft| ƒD]X\} }|\}}}}|tjƒkrd    nd
}t|t| ||||ƒqÞWtjd || f|ƒdS( Ns(    ÐíÔ¸³Ø»î¶¯Ë¢Ð½±³Ø Ëæ»ú¿â»ñÈ¡´íÎ󠣡s isFree=%s, randomRateList=%sR>sAÐíÔ¸³Ø»î¶¯Ãâ·Ñˢн±³Ø£¬ Ãâ·ÑCDδµ½£¡ freeCountCD=%s, passTime=%st
refreshCntiisN    ÐíÔ¸³Ø»î¶¯Ë¢Ð½±³Ø Ëæ»ú¿â½á¹û »ñÈ¡´íÎ󠣡randomCnt=%s, randomResultList=%siis. ÐíÔ¸³Ø»î¶¯Ë¢Ð isFree=%s, randomResultList=%s(RiR$R2RHRRtDef_PDict_WishingWellFreeTimeRR"RARBtDef_PDict_WishingWellRefreshCnttevaltGetFuncCompileCfgRt    HaveMoneyt IPY_GameWorldtTYPE_Price_Gold_MoneytGetResultByRandomListExtlentPayMoneytDef_Cost_WishingWellRt    enumerateR4tvaluesRtWellType_Select(RRctisSystemtrandomRateListR7t freeStartTimeRIt freeCountCDRptinfoDictt    costMoneyt    randomCnttrandomResultListRtinfoR    RR
ReR ((sa.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerWishingWell.pyR5ñ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~RER$R%R(RHR R2RtSyncWellItemChange(RkRlRmt srcWellTypetsrcIndext desWellTypetdesIndexRR7t    srcitemIDt
srcitemCntt    srcisBindt srcisSpecialt    desitemIDt
desitemCntt    desisBindt desisSpecial((sa.\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    IsSpecialRDRytCntt NetPackCommont SendFakePack(
Rt
changeListtpackDataRRkR    RR
R t
changeInfo((sa.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerWishingWell.pyRŒ?s                              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||||t j gƒq×Wx0t|ƒD]"}t|t|ddddƒqWt|ƒdS(NR>isÁìÈ¡ÐíÔ¸³Ø½±Àø Ã»Óн±Àø¿ÉÁìÈ¡£¡tGeRen_chenxin_998371i(RARBR&R RCRDR$tLogRHRyt
ItemCommontGetItemPackSpaceRvtrptItemRt
NotifyCodet ItemControlertGivePlayerItemRR(
RRMt giveItemListRR    RR
R t    needSpacet    packSpace((sa.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerWishingWell.pytDoGetWishingAwardPs(  # 
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ƒ}xd|D]\}|d\}    }
} } t jƒ} |    | _|
| _| | _ | | _!|jj"| ƒq!Wt#|jƒ|_$t%j&||ƒdS(NiRQi('RRRRRRR/RARSR$t GetGameWorldtGetGameWorldDictByKeytDef_Notify_WorldKey_ServerDayRšttagMCActWishingWellInfotCleartGetOperationActionDateStrt GetStartDatet    StartDatet
GetEndDatetEndtDatet GetIsDayResett
IsDayResett GetResetTypet    ResetTypet
GetLVLimittLimitLVt WellItemInfoRittagMCWishingWellItemR R¡R¢tMarkRDRytCountR¥R¦(RRnR:R;R]t openServerDaytactInfotrandomItemListtitemInfoR    RR
Ret wellItemInfo((sa.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerWishingWell.pyRis: 
                       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(NiRQis %s 05:00:00s %s 00:00:00t
timeFormats"ÐíÔ¸³Ø»î¶¯¿ªÊ¼Ê±¼ä startDayDate=%s('RšttagMCActWishingWellPlayerInfoRRRqRRRRRR/RARSR$R¶R·R¸R»R¼RÂtChangeTimeStrToNumtTYPE_Time_FormatR2t FreeStartTimeRrtWishCntRÆt__AddWishingWellItemPackInfoR~Ryt WellItemCnttCurAwardItemInfoREt CurAwardCnttLastAwardItemInfoRCt LastAwardCntR¥R¦(
RR¨RRnR;R]RÊt    startDatet    resetTypet startDayDate((sa.\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~RARBR&R RšttagMCPlayerWishingWellItemR R¡R¢R£RD(
RtitemListRRMRR    RR
R R¨((sa.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerWishingWell.pyRÕ®s                  (&t__doc__RvR$RRARRšR¥RRR°R¬R"R3R4trangeR~RERCR RR R R#R,RR!RhRiRoRFR5R™RŒRµRRRÕ(((sa.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerWishingWell.pyt<module>sB                            
             $ *    )          4                !    $