hxp
2025-05-16 273fbbf3ec69623f4501583614174c7d604a06b5
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
Sð    hc@s»ddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    d„Z
d„Z d„Z d„Z d„Zd„Zd„ZdS(    iÿÿÿÿNcCsgt|ƒ}|sctjjtjiƒ}|jtjƒrct||ƒt|ƒt    |ƒqcndS(N(
t__CheckPlayerFeastLoginActiont
PyGameDatatg_operationActionDicttgett ShareDefinetOperationActionName_FeastLogint ActKey_Statet__SetLoginByDayIndextSync_FeastLoginActionInfotSync_FeastLoginPlayerInfo(t    curPlayertisResettactInfo((sT.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFeastLogin.pyt OnPlayerLogins  
cCs[tjƒ}xHt|jƒƒD]4}|j|ƒ}tj|ƒsIqnt|ƒqWdS(N(t    GameWorldtGetPlayerManagertxrangetGetPlayerCounttGetPlayerByIndextIsNormalPlayerR(t playerManagertindexR
((sT.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFeastLogin.pytRefreshFeastLoginActionInfo(s cCs8|jƒ}tjjtjiƒ}|jtjdƒ}|jtjdƒ}|jt    j
ƒ}||kr«t j d|jƒƒ|r§t ||ƒr§t|ƒq§ndSt j d|||f|ƒtj|t    j
|ƒtj|t    jdƒtj|t    jdƒ|r4t ||ƒt|ƒt|ƒntS(Nis½ÚÈյǼ»î¶¯ID²»±ä£¬²»´¦Àí£¡s2½ÚÈյǼ»î¶¯ÖØÖÃ! actID=%s,playerActID=%s,state=%s(t GetPlayerIDRRRRRt    ActKey_IDRtNomalDictGetPropertytChConfigtDef_PDict_FeastLoginIDRtDebugLogRR    t PlayerControltNomalDictSetPropertytDef_PDict_FeastLoginStatetDef_PDict_FeastLoginAwardStateRtTrue(R
tplayerIDR tactIDtstatet playerActID((sT.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFeastLogin.pyR2s(   
 cCsÂ|jtjdƒ}|jtjƒ}|d|d}}|d}||krstjd||||fƒdS|d7}|d|}tj    |tj|ƒtjd||||fƒt
S(Nii
isa    ½ÚÈյǼδ´ï¼Ç¼¼µÇÌì»òÒѼǼµÇ¼! dayIndex=%s,loginState=%s,lastRecordDay(%s) >= curDay(%s)sP    ½ÚÈյǼÉèÖÃÌìµÇ¼: dayIndex=%s,loginState=%s,updLoginState=%s,loginCount=%s( RRtActKey_DayIndexRRRRRRRR!(R
R tdayIndext
loginStatet
loginCountt lastRecordDaytcurDayt updLoginState((sT.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFeastLogin.pyROs
 
c Csbtjjtjiƒ}|s"dS|jtjƒsEtjdƒdS|jtjƒ}t    j
d|ƒ}|ssdS|jtj ƒ}tj |j ƒ|dƒ}|sªdSt    jd|ƒ}|sÆdSd}x*|D]"}    |    jƒ|krÓ|    }PqÓqÓW|stjd|ƒdS|d}
|jtjƒ} | d} || krdtjd|| | fƒdS|jtjƒ} | td    |
ƒ@r§tjd
||
| fƒdS|jƒ}tj||ƒsÉdS| td    |
ƒB}tj|tj|ƒt|ƒtjd ||
|fƒxE|D]=\}}}tj||||tjgd d tigƒqWdS(Ns·Ç½ÚÈյǼ»î¶¯ÖУ¡t ActFeastLoginitActFeastLoginAwardsÕÒ²»µ½¶ÔÓ¦µÄÌì½±Àø! dayNum=%sii
sI½ÚÈյǼ»î¶¯µÇ¼Ìì²»×㣬ÎÞ·¨Áì½±£¡dayNum=%s > loginCount=%s,loginState=%sis>½ÚÈյǼ»î¶¯¸ÃÌìÒÑÁì½±£¡dayNum=%s,awardIndex=%s,awardRecord=%ss:ÁìÈ¡½ÚÈյǼ½±Àø£¡dayNum=%s,awardIndex=%s,awardItemList=%steventt
FeastLogin( RRRRRRRRt ActKey_CfgIDt IpyGameDataPYtGetIpyGameDatatActKey_WorldLVtGetDictValueByRangeKeytGetTemplateIDInfotGetIpyGameDataListtNonet    GetDayNumRRRR tpowtGetLoginAwardItemListt ItemControlertCheckPackSpaceEnoughRRR    tGivePlayerItemt IPY_GameWorldtrptItemtFalse(R
tdayNumR tcfgIDtipyDatatworldLVt
templateIDtdayIpyDataListt findIpyDatat
dayIpyDatat
awardIndexR(R)t awardRecordt awardItemListtupdAwardRecordtitemIDt    itemCountt isAuctionItem((sT.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFeastLogin.pytGetFeastLoginAward^s\  
 
 
cCsg|jtjƒ}|d}tjƒ}td|ƒd|_|jtjƒ|_t    j
||ƒdS(Ni
ii( RRRtChPyNetSendPackttagMCFeastLoginPlayerInfoR:t
LoginStateR t
LoginAwardt NetPackCommont SendFakePack(R
R(R)t
clientPack((sT.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFeastLogin.pyR    žs
 cCsâtjjtjiƒ}|s"dS|jtjƒs8dS|jtjƒ}tjd|ƒ}|sfdS|jtj    ƒ}t
j |j ƒ|dƒ}|sdStj d|ƒ}|s¹dSt
j|ƒ\}}tjƒ}    |    jƒ||    _||    _|jƒ|    _g|    _x«|D]£}
tjƒ} |
jƒ| _g| _xT|
jƒD]F\} } }tjƒ}| |_| |_||_| jj |ƒqLWt!| jƒ| _"|    jj | ƒqWt!|    jƒ|    _#t$j%||    ƒdS(NR-iR.(&RRRRRRR1R2R3R4RR5R6R7tGetOperationActionDateStrRRttagMCFeastLoginInfotCleart    StartDatetEndtDatet
GetLVLimittLimitLVt DayAwardListttagMCFeastLoginDayAwardR9tDayNumt AwardItemListR;ttagMCFeastLoginDayAwardItemtItemIDt    ItemCounttIsBindtappendtlent
AwardCounttDayCountRVRW(R
R RCRDRERFRGt startDateStrt
endDateStrtactPackRItdayInfoRNRORPtitemInfo((sT.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFeastLogin.pyR¨sL 
                               (RRRR2RRR<R?RVRRR RRRRQR    R(((sT.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerFeastLogin.pyt<module>s                    
            @