cehua_ZWJ
2019-01-30 6afaa4408f4e09e3e95dbd92f0d1cd5a1fb2942b
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
x{[c@såddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
d„Z d„Z d„Z d„Zd„Zd„Zdd„Zd    „Zd
„Zd „ZdS( iÿÿÿÿNcCsótjƒj|ƒ}tj|ƒ}|}|j}t|ƒsCdStjd|ƒ}|s_dSt|ƒ}|j    t
j |ƒ}    t d|dƒ}
|    |
@r¹tj d||fƒdS|jƒ} |dt| ƒkrßdS| |d} | d|krtj d||| fƒdS|jƒ} t|ƒ| kr=dS| t|ƒ}t|ƒ}tj|tj|ƒ}||kr‘tj|dƒdSx3|D]+\}}tj|||dtjgƒq˜Wtj|t
j ||    |
Bƒt|ƒdS(Nt OnlineAwardiis"ÒÑÁìÈ¡½±Àø£¡dayID=%s,prizeIndex=%si<s0ÔÚÏßʱ¼ä²»×㣡dayID=%s,prizeIndex=%s,needTime=%stGeRen_chenxin_998371(t    GameWorldtGetPlayerManagertGetPlayerByIndextGetCreateRoleDaystIndext__GetOnlineIsOpent IpyGameDataPYtGetIpyGameDatat GetOnlineTimetNomalDictGetPropertytChConfigtDef_PDict_OnlinePrizeNotetpowtDebugLogt GetStageTimetlent    GetRewardtstrt
ItemCommontGetItemPackSpacet IPY_GameWorldtrptItemt PlayerControlt
NotifyCodet ItemControlertGivePlayerItemtNomalDictSetPropertytSendOnlinePrizeInfo(tindext
clientPackttickt    curPlayert creatRoleDaytdayIDt
prizeIndextipyDatat
onlineTimet    awardInfot    awardMarkt stageTimeListtneedTimet    awardDicttitemListt    needSpacet    packSpacetitemIDt    itemCount((sa.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerOnlinePrize.pytGetOnlinePrize"sH      
    #
cCsdS(N((RRR ((sa.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerOnlinePrize.pytQueryOnlinePrize[scCsb|jtjƒ}|jtjƒ}|s.|Sttjƒƒ}||}|dkrZ|S||S(Ni(R R tDef_PDict_DayOnlineTimetDef_PDict_OnlineStartTicktintttime(R!R&tmarkTicktcurTimetpassTick((sa.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerOnlinePrize.pyR
as
 cCsFtj|ƒrdSt|ƒ}tj|tj|ƒt|dƒdS(Ni(t    PlayerTJGtGetIsTJGR
RRR R3tSetStartCalcOnlineTick(R!R&((sa.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerOnlinePrize.pytCalcOnlineTimeos   cCs+tjƒjƒ}tj|ƒ}||kS(N(RtIPY_DatatGetOnlineAwardCountRR(R!tdayCntR"((sa.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerOnlinePrize.pyRwscCsµt|ƒsdStjƒ}|jƒt|ƒd|_g|_xJttj    ƒj
ƒƒD]0}|d}|jj |j t j|ƒƒq[Wt|jƒ|_tj||ƒdS(Nièi(RtChPyNetSendPackttagMCOnlinePrizetClearR
t
OnlineTimet    PrizeInfotxrangeRR>R?tappendR R R RtLent NetPackCommont SendFakePack(R!tsendPacktiR#((sa.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerOnlinePrize.pyR€s  
    
$cCs;|dkr!ttjƒƒ}ntj|tj|ƒdS(Niÿÿÿÿ(R5R6RRR R4(R!tnewTime((sa.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerOnlinePrize.pyR<“s cCst|ƒt|ƒdS(N(R<R(R!((sa.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerOnlinePrize.pyt OnPlayerLoginœs
 
cCsKt|ƒtj|tjdƒtj|ƒr3dSt|ƒt|ƒdS(Ni(    t__OnlineMailPrizeRRR R3R:R;R<R(R!((sa.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerOnlinePrize.pytResetPrizeInfoOnDay¤s
 
 
c Csftj|ƒd}|sdStjd|ƒ}|s9dS|jtj|ƒ}t|ƒ}tjd||fƒ|j    ƒ}|j
ƒ}g}xt |ƒD]\}}    ||    dkr|t d|ƒ@ rx8|t |dƒD]"\}
} |j|
| dgƒqâW|t d|ƒO}qqW|s,dStj|tj||ƒtjd|jƒg|ƒdS(NiRscreatRoleDay=%s,onlineTime=%si<it OnLineAward1(RRRtGetIpyGameDataNotLogR R R R
RRRt    enumerateRRRGRRt SendMailByKeytGetID( R!R"R%t    prizeInfoR&t needTimeListR+R,RLR*R/titemCnt((sa.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerOnlinePrize.pyRO²s,   $!(RAR RRRRRIRRR:R6R1R2R
R=RRR<RNRPRO(((sa.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerOnlinePrize.pyt<module>s(               9