hxp
2025-05-30 3f3ecbc0329d3d14b80f261827c7522f63d2fcef
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
Sð    hc@sýddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z d„Z d„Zd„Zd„Zd„Zd„Zdd    „Zd
„Zd „Zd „ZdS( iÿÿÿÿNcCs‡x€tjjtjiƒjƒD]`}|jtjdƒ}t||ƒ}| r|jtjƒrt    ||ƒt
||ƒqqWdS(Ni( t
PyGameDatatg_operationActionDicttgett ShareDefinet#OperationActionName_FamilyCTGAssisttvaluest ActKey_ActNumt"__CheckPlayerFamilyCTGAssistActiont ActKey_StatetSync_FamilyCTGAssistActionInfotSync_FamilyCTGAssistPlayerInfo(t    curPlayertactInfotactNumtisReset((s\.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActFamilyCTGAssist.pyt OnPlayerLogin s% cCs^tjƒ}xKt|jƒƒD]7}|j|ƒ}tj|ƒsIqnt||ƒqWdS(N(t    GameWorldtGetPlayerManagertxrangetGetPlayerCounttGetPlayerByIndextIsNormalPlayerR(R t playerManagertindexR ((s\.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActFamilyCTGAssist.pyt RefreshFamilyCTGAssistActionInfo,s c Csƒ|jƒ}tjtj|ƒ}|jtjdƒ}|jtjdƒ}|jtjdƒ}|j    t
j |ƒ}||kr¦tj d||f|jƒƒdStj d||||f|ƒt j|t
j ||ƒt j|t
j|dƒ|rtjd|ƒ}|rb|jƒ}    tj|d|    ƒ|jƒ}
|
rbtj||
gƒqbnt||ƒt||ƒntS(Nis3ÏÉÃ˳äֵЭÖú»î¶¯ID²»±ä£¬²»´¦Àí£¡ actNum=%s,actID=%ss@ÏÉÃ˳äֵЭÖú»î¶¯ÖØÖÃ! actNum=%s,actID=%s,playerActID=%s,state=%stActFamilyCTGAssist(t GetPlayerIDRt
GetActInfoRRRt    ActKey_IDRt ActKey_CfgIDtNomalDictGetPropertytChConfigtDef_PDict_FamilyCTGAssistIDtDebugLogt PlayerControltNomalDictSetPropertytDef_PDict_FamilyCTGAssistAwardt IpyGameDataPYtGetIpyGameDatat GetCTGIDListt
PlayerCointDoResetCTGCountByIDListtGetActShopTypetFunctionNPCCommontResetShopItemBuyCountByShopTypeR    R
tTrue( R R tplayerIDR tactIDtstatetcfgIDt playerActIDtipyDatatresetCTGIDListtshopType((s\.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActFamilyCTGAssist.pyR7s.       cCs|jƒsdSg}xÝtjjtjiƒjƒD]½}|jtjdƒ}|jtjƒshq5n|jtj    dƒ}t
j d|ƒ}|s›q5n|j ƒ}|rå||kråt jd||||f|jƒƒq5n|j|ƒq5W|sdSt|d|gƒdS(NiRsEÏÉÃ˳äֵЭÖú¸Ã³äÖµID²»´¥·¢Ð­Öú! cfgID=%s,actNum=%s,ctgID=%s not in %st    PlayerCTG(t GetFamilyIDRRRRRRRRRR%R&R'RR!Rtappendt SendToGameServer_FamilyCTGAssist(R tctgIDt
actNumListR R R1R3t    ctgIDList((s\.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActFamilyCTGAssist.pyt OnPlayerCTG[s( % &cCs#|jƒ}tj|dƒ}|dkrBtjd||ƒdStjtj|ƒ}|jtjƒstjd||ƒdS|jtj    ƒ}t
j d|ƒ}|s¯dS|j ƒ}|sÅdSt
j d|ƒ}|sádSd}    g}
x?|D]7} || jƒkrqôn| jƒ}    | jƒ}
PqôW|    dkr_tjd||||f|ƒdS|jtj|ƒ} | td|    ƒ@r¯tjd    |||||    f|ƒdStj||
ƒsÅdStjƒjƒ} tj|tj| ƒstjd
|ƒdSt|d |||    |
gƒdS( su»î¶¯Ãâ·Ñ½±Àø
    @param ctgPlayers: ÒªÁìÈ¡µÄ³äÖµÈËÊý½±Àø
    @param actNum: »î¶¯±àºÅ£¬Èç11 »ò  12 ´ú±í²»Í¬µÄ»î¶¯
    is!ûÓÐÖ¸¶¨ÁìÈ¡µÄ»î¶¯±àºÅ! actNum=%sNs+ÏÉÃ˳äֵЭÖú·Ç»î¶¯ÖÐÎÞ·¨ÁìÈ¡½±Àø! actNum=%sRtActFamilyCTGAssistTempsNÏÉÃ˳äֵЭÖú»î¶¯Ã»Óиý±ÀøÐÅÏ¢! actNum=%s,cfgID=%s,templateID=%s,ctgPlayers=%siscÏÉÃ˳äֵЭÖú»î¶¯ÒѾ­ÁìÈ¡¹ý¸ÃÃâ·Ñ½±Àø! actNum=%s,cfgID=%s,templateID=%s,ctgPlayers=%s,recordIndex=%ss ÇëÇóCDÖÐ...tFamilyCTGAssistAward(RRtToIntDeftLogRRRRRRR%R&t GetTemplateIDtGetIpyGameDataListtNonetGetNeedCTGPlayerstGetRecordIndextGetAwardItemListtErrLogRRR$tpowt ItemControlertCheckPackSpaceEnought GetGameWorldtGetTicktSetPlayerTickTimet TYPE_Player_Tick_FamilyCTGAssistR!R9(R t
ctgPlayersR R.R R1R3t
templateIDttempIpyDataListt recordIndext awardItemListt tempIpyDatat awardRecordttick((s\.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActFamilyCTGAssist.pytGetFamilyCTGAssistAwardtsX               c Cs7|\}}}}|jƒ}|jtj|ƒ}|td|ƒ@rhtjd|||f|ƒdS|td|ƒO}tj|tj||ƒt    ||ƒx6|D].\}}    }
t
j |||    |
t j gƒq©Wi|d6|d6|d6|d6} tj|d| ƒtjd|||||f|ƒdS(    NisR·µ»ØÊ±ÏÉÃ˳äֵЭÖú»î¶¯ÒѾ­ÁìÈ¡¹ý¸ÃÃâ·Ñ½±Àø! actNum=%s,ctgPlayers=%s,recordIndex=%sR RPRSRTRscÏÉÃ˳äֵЭÖú»î¶¯ÁìÈ¡½±Àø! actNum=%s,ctgPlayers=%s,recordIndex=%s,updAwardRecord=%s,awardItemList=%s(RRRR$RIRR!R"R#R
RJtGivePlayerItemt IPY_GameWorldtrptItemtDataRecordPacktDR_FuncGiveItemRA( R tdataMsgR RPRSRTR.RVtitemIDt    itemCountt isAuctionItemt addDataDict((s\.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActFamilyCTGAssist.pyt__DoGiveFamilyCTGAssistAward³s"      #"    tcCsd|jƒ}t||gƒ}tjƒj|ddd|t|ƒƒtjd||f|ƒdS(NitFamilyCTGAssists"ÏÉÃ˳äÖµ»¥Öú·¢ËÍGameServer: %s, %s(RtstrRRtGameServer_QueryPlayerResulttlenRA(R tmsgTypeR^R.tmsgList((s\.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActFamilyCTGAssist.pyR9Ês
 (cCs9|\}}}|sdS|dkr5t||ƒndS(NR?(Rc(R tmsgDataRWRiR^tret((s\.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActFamilyCTGAssist.pytGameServer_FamilyCTGAssistÑs  cCsBtjƒ}||_|jtj|ƒ|_tj||ƒdS(N(    tChPyNetSendPackt!tagMCActFamilyCTGAssistPlayerInfotActNumRRR$t AwardRecordt NetPackCommont SendFakePack(R R t
clientPack((s\.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActFamilyCTGAssist.pyR
Ýs
     cCstjtj|ƒ}|jtjƒs+dS|jtjƒ}tjd|ƒ}|sYdS|j    ƒ}|sodStj
d|ƒ}|s‹dStj |ƒ\}}|jtj |ƒ}    t jƒ}||_|    |_||_|jƒ|_|jƒ|_g|_xº|D]²}
t jƒ} |
jƒ| _|
jƒ| _g| _xT|
jƒD]F\} } }t jƒ}| |_| |_ ||_!| jj"|ƒqPWt#| jƒ| _$|jj"| ƒq
Wt#|jƒ|_%|j&ƒ|_'t#|j'ƒ|_(|j)ƒ|_*t+j,||ƒdS(NRR>(-RRRRRRRR%R&RBRCtGetOperationActionDateStrtActKey_StartDateSyncRnttagMCActFamilyCTGAssistInfoRpt    StartDatetEndtDatet
GetLVLimittLimitLVt GetIsDayResett
IsDayResett AwardInfoListttagMCActFamilyCTGAssistAwardREtNeedCTGPlayersRFt RecordIndext AwardItemListRGttagMCActFamilyCTGAssistItemtItemIDt    ItemCounttIsBindR8RhtCountt
AwardCountR't    CTGIDListt
CTGIDCountR*tShopTypeRrRs(R R R R1R3RQRRt startDateStrt
endDateStrt startDateSyncRUtawardR_R`Ratitem((s\.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActFamilyCTGAssist.pyR    åsR                                     (RRR"R%RnR\RrRJRZRRR(R+RRRR=RXRcR9RmR
R    (((s\.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActFamilyCTGAssist.pyt<module>s,                           $        ?