CeHua_ZWJ
2018-11-22 f0a230af3a2f7e7a618de86fc9eedd3e01e43291
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
94
ˆÿÖ[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
cCs}t|ƒ}|sytjjtjiƒ}|jtjƒrSt|ƒt|ƒqyt    |t
dƒdryt|ƒqyndS(Ni( t__CheckPlayerWishingWellActiont
PyGameDatatg_operationActionDictRt ShareDefinetOperationActionName_WishingWellt ActKey_StatetSyncWishingWellInfotSyncWishingWellPlayerInfoR t WellType_Get(RtisResettactCostRebateInfo((sa.\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 ((sa.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerWishingWell.pytOnDayPs
cCsetjƒ}xRt|jƒƒD]>}|j|ƒ}|dks|jƒ rSqnt|ƒqWdS(N(t    GameWorldtGetPlayerManagertxrangetGetPlayerCounttGetPlayerByIndextNonet    GetInitOKR(t playerManagerRR((sa.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerWishingWell.pytRefreshWishingWellActionWs cCsE|jƒ}tjjtjiƒ}|jtjdƒ}|jtjdƒ}|jtjdƒ}|jtj    dƒ}|j
t j ƒ}||kršdSt jd||||f|ƒt||pÕttjƒƒ|ƒtj|t j |ƒ|r7iaiatj|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$RRtg_randomWellDicttg_specialMarkDicttDef_PDict_WishingWellRefreshCntt__DoActWishingRefreshtTrueRR(RtplayerIDtactWishingWellInfot WishingWellIDtstatetcfgIDtworldLVtplayerWishingWellID((sa.\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&R4R9t IpyGameDataPYt
GetFuncCfgR(R RtappendRtWellType_ResulttFalset SendMailByKeytGetIDR(RtcurTimeR=t lastAwardTimetpassDaytisOvertcountt mailItemListt saveItemListRR    RR
R tj((sa.\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|
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(RRRRRRR1R2RDtGetIpyGameDatat GetTemplateIDtGetIpyGameDataListR5tGetWorldLVLimitt    GetIsFreet    GetItemIDt
GetItemCntt    GetIsBindt    GetWeighttGetMarkRFR6R&R4(R;R=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(R5RjR(Re((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*RRRRRRR1tIsFreeR8R(tindext
clientDatattickRtactBossRebornInfoR=R>Re((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=%sRAsAÐíÔ¸³Ø»î¶¯Ãâ·Ñˢн±³Ø£¬ Ãâ·ÑCDδµ½£¡ freeCountCD=%s, passTime=%st
refreshCntiisN    ÐíÔ¸³Ø»î¶¯Ë¢Ð½±³Ø Ëæ»ú¿â½á¹û »ñÈ¡´íÎ󠣡randomCnt=%s, randomResultList=%siis. ÐíÔ¸³Ø»î¶¯Ë¢Ð isFree=%s, randomResultList=%s(RkR&R4RJRRR"RR$RDRER7tevaltGetFuncCompileCfgRt    HaveMoneyt IPY_GameWorldtTYPE_Price_Gold_MoneytGetResultByRandomListExtlentPayMoneytDef_Cost_WishingWellRt    enumerateR6tvaluesRtWellType_Select(RRetisSystemtrandomRateListR:t freeStartTimeRKt freeCountCDRrtinfoDictt    costMoneyt    randomCnttrandomResultListRtinfoR    RR
RgR ((sa.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerWishingWell.pyR8ø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~RGR&R'R*RJR R4RtSyncWellItemChange(RmRnRot srcWellTypetsrcIndext desWellTypetdesIndexRR:t    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    IsSpecialRFRytCntt NetPackCommont SendFakePack(
Rt
changeListtpackDataRRmR    RR
R t
changeInfo((sa.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerWishingWell.pyRŒFs                              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(NRAisÁìÈ¡ÐíÔ¸³Ø½±Àø Ã»Óн±Àø¿ÉÁìÈ¡£¡tGeRen_chenxin_998371i(RDRER(R RRFR&tLogRJRyt
ItemCommontGetItemPackSpaceRvtrptItemRt
NotifyCodet ItemControlertGivePlayerItemRR(
RROt giveItemListRR    RR
R t    needSpacet    packSpace((sa.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerWishingWell.pytDoGetWishingAwardWs(  # 
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(NiRSi('RRRRRRR1RDRUR&t GetGameWorldtGetGameWorldDictByKeytDef_Notify_WorldKey_ServerDayRšttagMCActWishingWellInfotCleartGetOperationActionDateStrt GetStartDatet    StartDatet
GetEndDatetEndtDatet GetIsDayResett
IsDayResett GetResetTypet    ResetTypet
GetLVLimittLimitLVt WellItemInfoRkttagMCWishingWellItemR R¡R¢tMarkRFRytCountR¥R¦(RRpR=R>R_t openServerDaytactInfotrandomItemListtitemInfoR    RR
Rgt wellItemInfo((sa.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerWishingWell.pyRps: 
                       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(NiRSis %s 05:00:00s %s 00:00:00t
timeFormats"ÐíÔ¸³Ø»î¶¯¿ªÊ¼Ê±¼ä startDayDate=%s('RšttagMCActWishingWellPlayerInfoRRR"RRRRRR1RDRUR&R¶R·R¸R»R¼RÂtChangeTimeStrToNumtTYPE_Time_FormatR4t FreeStartTimeR7tWishCntRÆt__AddWishingWellItemPackInfoR~Ryt WellItemCnttCurAwardItemInfoRGt CurAwardCnttLastAwardItemInfoRt LastAwardCntR¥R¦(
RR¨RRpR>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(NRAii( R~RDRER(R RšttagMCPlayerWishingWellItemR R¡R¢R£RF(
RtitemListRRORR    RR
R R¨((sa.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerWishingWell.pyRÕµs                  (&t__doc__RvR&RRDRRšR¥RRR°R¬R$R5R6trangeR~RGRR RR R!R%R.RR#RjRkRqRHR8R™RŒRµRRRÕ(((sa.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerWishingWell.pyt<module>sB                                          % -    )          4                !    $