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
Sð    hc@sëddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z d„Z d„Zdd„Zd„Zd„Zd„Zd„Zd    „ZdS(
iÿÿÿÿNcCsx–tjjtjiƒjƒD]v}|jtjdƒ}t||ƒ}| r|jtjƒr|j    t
j |ƒrt ||ƒt ||ƒqqWdS(Ni(t
PyGameDatatg_operationActionDicttgett ShareDefinetOperationActionName_ActLoginNewtvaluest ActKey_ActNumt__CheckPlayerActLoginActiont ActKey_StatetNomalDictGetPropertytChConfigtDef_PDict_ActLoginNewIDtSync_ActLoginActionInfotSync_ActLoginPlayerInfo(t    curPlayertactInfotactNumtisReset((sU.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActLoginNew.pyt OnPlayerLogin s%/ cCst|ƒdS(N(tOnCheckRelateFuncAct(R((sU.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActLoginNew.pytOnDay,s
cCsÜxÕtjjtjiƒjƒD]µ}|jtjƒs=qn|jtjƒ}tj    d|ƒ}|smqnt
|dƒs‚qn|j ƒ}|sšqn|r²||kr²qn|jtj dƒ}t ||ƒqWdS(Nt ActLoginNewtGetRelateFuncIDi(RRRRRRRt ActKey_CfgIDt IpyGameDataPYtGetIpyGameDatathasattrRRR(RtopenFuncIDListRtcfgIDtipyDatat relateFuncIDR((sU.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActLoginNew.pyR0s"% cCs^tjƒ}xKt|jƒƒD]7}|j|ƒ}tj|ƒsIqnt||ƒqWdS(N(t    GameWorldtGetPlayerManagertxrangetGetPlayerCounttGetPlayerByIndextIsNormalPlayerR(Rt playerManagertindexR((sU.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActLoginNew.pytRefreshActLoginActionInfoEs c CsÚ|jƒ}tjtj|ƒ}|jtjdƒ}|jtjdƒ}|jt    j
|ƒ}tj |d||ƒ}|r˜|\}}|s˜dSn||krÈtj d||f|jƒƒdStj d||||f|ƒt j|t    j
||ƒt j|t    j|dƒt j|t    j|dƒ|rÖ|jtjƒ}    tjd|    ƒ}
|
r¹|
jƒr‘tj|d|
jƒgƒn|
jƒr¹tj||
jƒƒq¹nt||ƒt||ƒntS(NiRs-еǼ»î¶¯ID²»±ä£¬²»´¦Àí£¡ actNum=%s,actID=%ss:еǼ»î¶¯ÖØÖÃ! actNum=%s,actID=%s,playerActID=%s,state=%s(t GetPlayerIDRt
GetActInfoRRRt    ActKey_IDRR    R
R tGetActRelateFuncInfotDebugLogt PlayerControltNomalDictSetPropertytDef_PDict_ActLoginNewAwardtDef_PDict_ActLoginNewAwardExRRRtGetAwardExCTGIDt
PlayerCointDoResetCTGCountByIDListtGetActZhanlingTypetPlayerZhanlingt ResetZhanlingR R tTrue( RRtplayerIDRtactIDtstatet playerActIDt funcActInfotisInActRR((sU.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActLoginNew.pyROs8        cCsà|d}|d}tj|ƒ}tjtj|ƒ}|sStjd|ƒdS|jtjƒsztjd|ƒdS|jt    j
|ƒ}|sšdStj t t j ƒƒ|ƒd}||krætjd|||fƒdS|jtjƒ}tjd|ƒ}|sdS|jƒ}    tjd|    ƒ}
|
s<dSd} x*|
D]"} | jƒ|krI| } PqIqIW| s–tjd|||    |fƒdS|r|jƒ} | sÉtjd    ||fƒdS|jt    j| ƒsýtjd
||| fƒdSt    j}| jƒ}nt    j}| jƒ}|s4dS|j||ƒ}|td |ƒ@rxtjd |||fƒdSd\}}||kr×|jƒr×|jƒ\}}|r×|r×tj|||ƒ r×dSntj ||ƒsídS|r*|r*tj!|||di|d6|d6|d6ƒn|td |ƒB}tj"||||ƒt#||ƒtjd|||||fƒxE|D]=\}}}tj$||||t%j&gddt'igƒqˆWtj(||dƒdS(NièsûÓиõǼ»î¶¯£¡ actNum=%ss·ÇµÇ¼»î¶¯ÖУ¡ actNum=%sis;δµ½¿ÉÁìÈ¡µÄµÇ¼Ì죬ÎÞ·¨ÁìÈ¡£¡  actNum=%s,curDayNum=%s < %sRtActLoginNewAwards@ÕÒ²»µ½¶ÔÓ¦µÇ¼Ìì½±Àø! actNum=%s,cfgID=%s,templateID=%s,dayNum=%ss*¸ÃµÇ¼»î¶¯Ã»ÓÐÀ©Õ¹½±Àø! actNum=%s,cfgID=%ssJ¸ÃµÇ¼»î¶¯À©Õ¹½±ÀøÀñ°üδ¹ºÂò£¬ÎÞ·¨ÁìÈ¡! actNum=%s,cfgID=%s,awardExCTGID=%sis7µÇ¼»î¶¯¸ÃÌìÒÑÁì½±£¡ actNum=%s,dayNum=%s,awardRecord=%siRtdayNumt    isAwardExsQÁìÈ¡µÇ¼»î¶¯½±Àø£¡ actNum=%s,dayNum=%s,isAwardEx=%s,awardItemList=%s,curDayNum=%stevent(ii()RtToIntDefR)RRR,RRR    R
R t GetDiff_DaytintttimeRRRt GetTemplateIDtGetIpyGameDataListtNonet    GetDayNumR1tDef_PDict_CTGGoodsBuyCountR0tGetLoginAwardItemListExR/tGetLoginAwardItemListtpowtGetRepSignCostMoneyInfoR-t    HaveMoneyt ItemControlertCheckPackSpaceEnoughtPayMoneyR.R tGivePlayerItemt IPY_GameWorldtrptItemtFalsetNotifyGiveAwardInfo(RR?RR@RR;t    curDayNumRRt
templateIDtdayIpyDataListt findIpyDatat
dayIpyDatat awardExCTGIDtstateKeyt awardItemListt awardRecordt costMoneyTypetcostMoneyValuetupdAwardRecordtitemIDt    itemCountt isAuctionItem((sU.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActLoginNew.pytOnGetActLoginAwardvsˆ
 
"              " 1  2cCs[tjƒ}||_|jtj|ƒ|_|jtj|ƒ|_t    j
||ƒdS(N( tChPyNetSendPackttagMCActLoginPlayerInfoNewtActNumR    R
R/t
LoginAwardR0t LoginAwardExt NetPackCommont SendFakePack(RRt
clientPack((sU.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActLoginNew.pyR Ñs      cCs»tjtj|ƒ}|sdS|jtjƒs5dS|jtj|ƒ}|sUdS|jtj    ƒ}t
j d|ƒ}|sƒdS|j ƒ\}}|j ƒ}t
jd|ƒ}    |    s½dSt|dƒrö|jƒrötj||tƒ\}
} ntj|ƒ\}
} tjƒ} | jƒ|| _|
| _| | _|jƒ| _|| _|| _|jƒ| _g| _ x|    D]} tj!ƒ}| j"ƒ|_#g|_$xT| j%ƒD]F\}}}tj&ƒ}||_'||_(||_)|j$j*|ƒq³Wt+|j$ƒ|_,g|_-xT| j.ƒD]F\}}}tj&ƒ}||_'||_(||_)|j-j*|ƒq%Wt+|j-ƒ|_/| j j*|ƒq|Wt+| j ƒ| _0t1j2|| ƒdS(NRR>R(3RR)RRRRR    R
R RRRRNRFRGRRtGetActRelateFuncDateR7tGetOperationActionDateStrRhttagMCActLoginNewtClearRjt    StartDatetEndtDatet
GetLVLimittLimitLVtRepSignMoneyTypetRepSignMoneyValueR1t AwardExCTGIDt AwardDayListttagMCActLoginNewDayRItDayNumt AwardItemListRLttagMCActLoginNewItemtItemIDt    ItemCounttIsBindtappendtlentCounttAwardItemListExRKtCountExtDayCountRmRn(RRRR;RRt    moneyTypet
moneyValueRYRZt startDateStrt
endDateStrtactPackR\tdayInfoRdReRftitemInfo((sU.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActLoginNew.pyR Úsj  
                                                            (RR2RR-RR5RhRPRTRmRR
RERRRHRR'RRgR R (((sU.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActLoginNew.pyt<module>s(                           
    '    [