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
ì\!jc@s£ddlZddlZddlZddlZddlZddlZddlZdd„Zd„Zd„Z    d„Z
d„Z ddd„Z dd    „ZdS(
iÿÿÿÿNicCsF|tjkrdStj|}tjƒ}|jtj||ƒdS(N(t ShareDefinetActionFuncTypeDictt    DBDataMgrt GetGameRecMgrtDelDataByTypeIDtDef_GameRecType_FamilyCTGAssist(tactNametzoneIDt actFuncTypet
gameRecMgr((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActFamilyCTGAssist.pytResetFamilyCTGAssists   cCs=d\}}|tjkr3tj|ƒ\}}n||fS(Ni(ii(RtActionName_FamilyGCZtPlayerActFamilyGCZtGetPlayerActJoinInfo(t crossPlayerRRtfamilyID((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActFamilyCTGAssist.pyt GetFamilyCTGAssistZoneFamilyInfo"s cCs6|tjkrdStj|}tjƒ}|jtj||ƒ}|j|gdtƒ}    |    sz|jd|gƒ}    n|    j    ƒ}
d} |
j
dgƒ} xD|D]<} | |kr»Pn| | kr¥| j | ƒ| d7} q¥q¥W| |
d<t ||||dƒ| st j|dƒnt j|d| ƒdS(Ntfindonet valueSetListitctgPlayerIDListis²ÎÓëµÄ³ÉÔ±¾ùÒÑЭÖúÁËsÐÂÔö³äֵЭÖúÈËÊý:%s(RRRRtGetRecTypeIDMgrRtGetRecDataByValuestTruet
AddRecDatat GetUserDicttgettappendtSyncFamilyCTGAssistt    GameWorldt DebugAnswer(RRRRt    assistCnttjoinMemberIDListRR    t
recTypeMgrt assistRecDatatuserDicttassistOKRt    joinMemID((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActFamilyCTGAssist.pyt
OnGMAssist(s.       
c    Cs»|jƒ}tjƒ}xœtjjƒD]‹\}}tj|tjƒ}|sUq(n|j    tj
ƒ}|ssq(nt ||ƒ\}}    | s–|     r¶tj d||f|ƒq(n|j tj||ƒ}
|
j|    gdtƒ} | s|
jd|    gƒ} n| jƒ} | j    dgƒ} || kr]tj d|||    t| ƒ| f|ƒq(n| j|ƒ| | d<tj d|||    t| ƒ| f|ƒt||||    dƒq(WdS(Ns=³äֵʱ±¾¿ç·þÎÞ¹«»á³äֵЭÖúÏà¹Ø»î¶¯²»´¦Àí! actName=%s,ctgID=%sRRRsO¹«»á³äֵЭÖú¸ÃÍæ¼ÒÒѾ­Ð­Öú¹ýÁË! actName=%s,zoneID=%s,familyID=%s,ЭÖúÈËÊý=%s,%ssI¹«»á³äֵЭÖúÔö¼Ó³äÖµÈËÊý! actName=%s,zoneID=%s,familyID=%s,ЭÖúÈËÊý=%s,%si(t GetPlayerIDRRRRtitemsRt
GetActInfot ActNum_CrossRt ActKey_StateRtLogRRRRRRtlenRR(RtctgIDtplayerIDR    RRtactInfotstateRRR R!R"R((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActFamilyCTGAssist.pyt OnPlayerCTGGs:          
     cCsº|j}d}xQtjjƒD]@\}}||kr=qn|tjkr^tj|ƒ}nPqWtjd||fƒ|dkrŠdSi|d6}t    j
||||dd|ƒdS(Nis1ÁìÈ¡³äֵЭÖú½±Àø! actFuncType=%s,crossServerID=%sRs2PlayerActFamilyCTGAssist.__GetFamilyCTGAssistAwardt    reqDataEx( tDataExRRR'R R tGetGCZCrossServerIDRtDebugLogt CrossPlayertPyPackForwarding(t    curPlayert
clientDatattickRt crossServerIDRt    aFuncTypeR2((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActFamilyCTGAssist.pytGetFamilyCTGAssistAwardms       c
CsB|s
dS|d}|j}tj|jƒ}|jƒ}tjd|||f|ƒtj|tjƒ}    |    s‹tjd||ƒdS|    j    tj
ƒ}
|    j    tj ƒ} |
s½| rÕtjd||ƒdSt ||ƒ\} } | sø| rtjd|| | f|ƒdStj | ƒ}|s2dS|jƒ}tjd|ƒ}|sZdSg}x3|D]+}||jƒkr…qgn|jƒ}PqgWtjd||f|ƒ|sºdStjƒ}|jtj|| ƒ}|j| gdtƒ}|stjd    || | f|ƒdS|jƒ}|j    d
gƒ}|t|ƒkr}tjd || | |t|ƒ|f|ƒdSd |kr–i|d <n|d }t|ƒ|krÅg|t|ƒ<n|t|ƒ}||krtjd || | |f|ƒdS|j|ƒt||| | |ƒtj ||ddƒdS(NRs9ÁìÈ¡³äֵЭÖú½±Àø! actName=%s,actFuncType=%s,ctgPlayers=%ss*Î޻ÐÅÏ¢ÎÞ·¨ÁìÈ¡³äֵЭÖú½±Àø! actName=%ss(·Ç»î¶¯ÖÐÎÞ·¨ÁìÈ¡³äֵЭÖú½±Àø! actName=%ssF·Ö±¾¿ç·þ»î¶¯·ÖÇøÎÞ·¨ÁìÈ¡³äֵЭÖú½±Àø! actName=%s,zoneID=%s,familyID=%stActFamilyCTGAssists#CTGAssistTempID=%s,awardItemList=%sRsIûÓгäֵЭÖúRecDataÎÞ·¨ÁìÈ¡³äֵЭÖú½±Àø! actName=%s,zoneID=%s,familyID=%sRsH³äֵЭÖúÈËÊý²»×ã! actName=%s,zoneID=%s,familyID=%s,ctgPlayers=%s > %s,%st    awardInfosB¹«»á³äֵЭÖúÒÑÁìÈ¡! actName=%s,zoneID=%s,familyID=%s,ctgPlayers=%st    eventNametFamilyCTGAssist(!R3RtToIntDeft    DataExStrR&R5R(RR)RR*t ActKey_CfgIDRtGetActTypeIpyDataByCfgIDtGetCTGAssistTempIDt IpyGameDataPYtGetIpyGameDataListtGetNeedCTGPlayerstGetAwardItemListRRRRRRRR,tstrR+RRR6tGivePlayerResources(RR9R:t fromServerIDR2RRt
ctgPlayersR.R/R0tcfgIDRRtactTypeIpyDatatCTGAssistTempIDttempIpyDataListt awardItemListt tempIpyDataR    R R!R"RtgetAwardPlayerIDDicttgetAwardPlayerIDList((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActFamilyCTGAssist.pyt__GetFamilyCTGAssistAwardƒsz
              #  
   cCs~|tjkrdStj|}tjƒ}|jtj||ƒ}|j|gdtƒ}|rn|jƒni}    t    j
ƒ}
||
_ |    j dgƒ|
_ t|
j ƒ|
_|    j diƒ} g} x„| jƒD]v\} }tj| ƒ}|dkr||krqÕnt    jƒ}||_||_t|jƒ|_| j|ƒqÕW| |
_t|
jƒ|
_tj||
ƒdS(NRRR?(RRRRRRRRRtChPyNetSendPackttagSCFamilyCTGAssistInfot ActFuncTypeRtCTGPlayerIDListR,t CTGPlayerCntR'RRBtNonettagSCFamilyCTGAssistAwardt
NeedCTGCnttAwardPlayerIDListtAwardPlayerCntRt AwardInfoListtAwardCntR6t SendFakePack(RRRRtsyncNeedPlayersRR    R R!R"t
clientPackRUt awardInfoListt ctgPlayersStrRVt
needCTGCnttaward((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActFamilyCTGAssist.pyRÊs4                    (RRGRXR R6RRR
RR%R1R=R]RWR(((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\Player\PlayerActFamilyCTGAssist.pyt<module>s                    &    G