cehua_lgq
2018-10-25 dba71efb14fd175d39e7545270eb1a67163e6f18
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
T%Ñ[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 
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.pytOnDayNs
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.pytRefreshWishingWellActionUs cCsE|jƒ}tjjtjiƒ}|jtjdƒ}|jtjdƒ}|jtjdƒ}|jtj    dƒ}|j
t j ƒ}||kršdSt jd||||f|ƒt||pÕttjƒƒ|ƒtj|t j |ƒ|rAiaiatj|t jdƒt|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_specialMarkDicttDef_PDict_WishingWellRefreshCntt__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%R3R8t 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(RRRRRRR0R1RCtGetIpyGameDatat GetTemplateIDtGetIpyGameDataListR4tGetWorldLVLimitt    GetIsFreet    GetItemIDt
GetItemCntt    GetIsBindt    GetWeighttGetMarkRFR5R%R3(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(R4RjR(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)RRRRRRR0tIsFreeR7R(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=%sR@sAÐíÔ¸³Ø»î¶¯Ãâ·Ñˢн±³Ø£¬ Ãâ·ÑCDδµ½£¡ freeCountCD=%s, passTime=%st
refreshCntiisN    ÐíÔ¸³Ø»î¶¯Ë¢Ð½±³Ø Ëæ»ú¿â½á¹û »ñÈ¡´íÎ󠣡randomCnt=%s, randomResultList=%siis. ÐíÔ¸³Ø»î¶¯Ë¢Ð isFree=%s, randomResultList=%s(RkR%R3RJRRR!RR#RCRDR6tevaltGetFuncCompileCfgRt    HaveMoneyt IPY_GameWorldtTYPE_Price_Gold_MoneytGetResultByRandomListExtlentPayMoneytDef_Cost_WishingWellRt    enumerateR5tvaluesRtWellType_Select(RRetisSystemtrandomRateListR9t freeStartTimeRKt freeCountCDRrtinfoDictt    costMoneyt    randomCnttrandomResultListRtinfoR    RR
RgR ((sa.\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~RGR%R&R)RJR R3RtSyncWellItemChange(RmRnRot srcWellTypetsrcIndext desWellTypetdesIndexRR9t    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ŒAs                              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(RCRDR'R RERFR%tLogRJRyt
ItemCommontGetItemPackSpaceRvtrptItemRt
NotifyCodet ItemControlertGivePlayerItemRR(
RROt giveItemListRR    RR
R t    needSpacet    packSpace((sa.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerWishingWell.pytDoGetWishingAwardRs(  # 
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('RRRRRRR0RCRUR%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.pyRks: 
                       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!RRRRRR0RCRUR%R¶R·R¸R»R¼RÂtChangeTimeStrToNumtTYPE_Time_FormatR3t FreeStartTimeR6tWishCntRÆt__AddWishingWellItemPackInfoR~Ryt WellItemCnttCurAwardItemInfoRGt CurAwardCnttLastAwardItemInfoREt 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(NR@ii( R~RCRDR'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%RRCRRšR¥RRR°R¬R#R4R5trangeR~RGRER RR R R$R-RR"RjRkRqRHR7R™RŒRµRRRÕ(((sa.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerWishingWell.pyt<module>sB                            
             % *    )          4                !    $