hxp
2025-05-23 69b88f45f12469ffe581eb208fedf79990e4818f
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
/é/hc@sddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z ddl Z ddlZddlZddlZdZd„Zd„Zd„Zd„Zd„Zd„Zd    „Zd
„Zd „Zd d ed „Zd„Zd„Zd„Zd„Z d„Z!d„Z"d„Z#d d„Z$d„Z%dS(iÿÿÿÿNidcCsg|jtjƒ}|d}|d}|rc|dd}tj|tj|ƒt|dtƒndS(Ni
i(tNomalDictGetPropertytChConfigt Def_PDict_HelpBattleCheckInCountt PlayerControltNomalDictSetPropertytSyncCheckInStatetFalse(t    curPlayert checkInInfot checkInCountttodayIsCheckIn((s}D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\FBHelpBattle.pyt DoPlayerOnDay&s
 
cCs9|jtjƒ}|d}|r5t|dtƒndS(Ni
i(RRRRtTrue(RRR
((s}D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\FBHelpBattle.pyt DoPlayerLogin0s
 
cCs8tjƒ}||_t|ƒ|_tj||ƒdS(N(tChPyNetSendPackttagMCHelpBattleCheckInResulttIsOKtinttIsLogint NetPackCommont SendFakePack(Rt checkInStatetisLogint checkInPack((s}D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\FBHelpBattle.pyR7s
     cCsu|s
dS|d}|dkr3t|||ƒn>|dkrRt|||ƒn|dkrqt|||ƒndS(NitCheckIntRefresht    SweepCall(t__OnHelpBattleCheckInResultt__OnHelpBattleRefreshResultt__OnHelpBattleSweepCallResult(RtmsgListtticktcmd((s}D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\FBHelpBattle.pytGameServer_FBHelpBattleResult?s
   c    Cs±tjƒj|ƒ}|jtjƒ}|d}|d}|r[tjd|jƒƒdStj    |ƒ}t
d||gƒ}tjƒj |j ƒddd|t |ƒƒdS(Ni
sµ±ÌìÒѵǼǣ¬²»ÐèÒªÖØ¸´µÇ¼Ç£¡Rit FBHelpBattle(t    GameWorldtGetPlayerManagertGetPlayerByIndexRRRtDebugLogt GetPlayerIDRt GetFightPowertstrtGameServer_QueryPlayerResulttGetIDtlen(    tindext
clientDataRRRR    R
t
fightPowertmsgInfo((s}D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\FBHelpBattle.pytOnHelpBattleCheckInZs
 
.c    Cs©|\}}}}}|rl|ddd}tj|tj|ƒtj|tjƒtj    |tj
ƒnt |dt ƒt jd|||||f|jƒƒdS(Nii
sMFBHelpBattleResult: %s,checkInCount=%s,fightPower=%s,isOK=%s,haveViewCache=%s(RRRRtPlayerActivitytAddDailyActionFinishCntt ShareDefinetDailyActionID_HelpBattleCheckIntPlayerActGarbageSortingtAddActGarbageTaskProgresstDef_GarbageTask_HelpBattleRRR#R&R'(    RRRR R    R/tisOKt haveViewCacheR((s}D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\FBHelpBattle.pyRgs     c+ Cs¢tjƒj|ƒ}|j}|j}|jƒ}tjƒ}tj|j    ƒƒ}tj
ƒ}    t j d||    ƒ}
|
sdSt jj|iƒ} t jddƒ} d} g}g}x¢| jƒD]”\}}|jtj|ƒ}|r||krtjd|ƒdS| d7} qÅ|jddƒsÅd|krI|j|ƒqY|j|ƒqÅqÅW| | krtjd    | |ƒdSi}|r9| | }|rtj|t|t|ƒƒƒ}|t|ƒ8}x1|D]&}| |}|jd
dƒ||<qÕWn|dkr|rx|| D]}d||<qWqnÛ|| kr]tjd ||ƒdS| |}|jddƒrþt jdd ƒ}tj|tj |ƒ}|s­dSi|d 6|    d6dd6}x3|D](\}}tj!|||tj"|ƒqÏWn|jd
dƒ||<t jddƒ}|j#ƒ|j$ƒ}}x¼|j%ƒD]®}|| krdqLn| |}|jddƒ} d|kr£|d}!|d}"n%|
j&ƒ}!|
j'ƒ}"|j(|ƒ|
j)ƒ}#t*j+||ddƒ}$|$j#ƒ|$j$ƒ}%}&t,j-||%|&ƒ}'|'s&qLn|'j.ƒ}|'j/t0ƒtjd|||!f|ƒ|j1tj||ƒ|'j2tj3| dƒ| d7} t,j4|'ƒ}(|(j5|!ƒt6|'|#| |"ƒt7j8ƒ})||)_9||)_| |)_:t;j<||)ƒqLW|s"| t| ƒks"| | kr5t=j>||ƒn|ržt?d||    |gƒ}*tjƒj@|j.ƒddd|*t|*ƒƒtjd|*|j.ƒƒndS(NR"tHelpBattleCalliis:¸ÃÖúÕ½»úÆ÷ÈËIDÒѾ­ÕÙ»½¹ý£¬²»ÔÊÐíÖØ¸´ÕÙ»½!calledPlayerID=%sit NeedGoldCalltNames*ÒѾ­ÕÙ»½ÂúÈËÊý£¡ÎÞ·¨ÔÙÕÙ»½£¡calledCount=%stRelations-²»´æÔÚ¸ÃÖúÕ½Íæ¼Ò£¬ÎÞ·¨ÕÙ»½£¡calledPlayerID=%sitMapIDtlineIDtCalltTypetHelpBattleRobottJobt
FightPowertLVis6ÕÙ»½ÖúÕ½³É¹¦: calledPlayerID=%s,objID=%s,fightPower=%siès GameServer_QueryPlayerResult: %s(AR#R$R%t IsOneKeyCalltPlayerIDR't    GetGameFBtFBCommontGetRecordMapIDtGetMapIDtGetFBPropertyMarkt IpyGameDataPYtGetIpyGameDatat
PyGameDatatg_fbHelpBattlePlayerDicttgett
GetFuncCfgtitemstGetGameFBDictByKeyRtDef_FB_HelpBattleFBObjIDR&tappendtLogtrandomtsampletminR,tErrLogRt HaveMoneyExt IPY_GameWorldtTYPE_Price_Gold_PapertPayMoneytDef_Cost_FBHelpBattletGetPosXtGetPosYtkeystGetRobotFightPowert
GetRobotLVtpoptGetRobotSkillsDicttGameMaptGetEmptyPlaceInAreaExt    NPCCommont SummonMapNpcR+tSetIsNeedProcessR t SetGameFBDicttSetDicttDef_NPC_Dict_AtkDelayTickt
NPCControltSetHelpBattleRobotRebornAttrt__DoGiveHelpBattleRobotSkillRttagMCHelpBattleCallResulttObjIDRDRRtFBLogictOnCallHelpBattleOKR)R*(+R-R.RRt isOneKeyCalltcalledPlayerIDtplayerIDtgameFBtmapIDt
funcLineIDtipyDatathelpBattlePlayerDicttmaxHelpPlayerCountt calledCounttfreePlayerIDListthelpNPCRobotIDListt helpPlayerIDthelpPlayerInfoDicttobjIDtcalledPlayerDictt    lackCountt
randIDListtrandIDtrobotIDt goldCallCostt costMoneyListtinfoDictt    moneyTypetmoneyNumt
robotNPCIDtposXtposYtjobR/tnpcLVt jobSkillDicttpositiontnpcPosXtnpcPosYt helpBattleNPCt
npcControltcallResultPackR0((s}D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\FBHelpBattle.pytOnHelpBattleCallƒs¼               
! 
 
# 
 
 
              $.c
CsÆ|jƒ}||krdS||}g}x[|jƒD]M\}}||krWq9nt|tƒrv|j|ƒq9|t|ƒ7}q9Wtjd|||fƒx|D]}    |j|    ƒq«WdS(Ns)    ¸øÖúÕ½»úÆ÷È˼¼ÄÜ: job=%s,npcLV=%s, %s(    tGetSkillManagerRTt
isinstanceRRWtlistR#R&tLearnSkillByID(
tcurNPCR–R”R•t skillManagert skillInfoDictt skillIDListt    skillInfotneedLVtskillID((s}D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\FBHelpBattle.pyRss  
  cCs)tjƒj|ƒ}t|dtƒdS(NtisClientRefresh(R#R$R%t&SendGameServer_RefreshHelpBattlePlayerR (R-R.RR((s}D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\FBHelpBattle.pytOnHelpBattleRefreshsicCs©|stj|jƒƒ}n|s3tjƒ}ntjd||ƒ}|sRdS|jƒ}tjƒ}g}i}|j    |t
j ƒ}    |rÑtj ddƒ}
tj ddƒ} |    |
| krÝtj d|    |ƒdS|    |
kr-tj ddƒ} tj|tj| ƒ}|s-tj dƒdSntjj|iƒ} x| jƒD]{\}}|jt
j|ƒ}|s}qOn|jt
j|ƒ}|jddƒ}|jd    d
ƒ}|||g||<qOWnt|    sð|j|t
j d
ƒn|jt
j|jƒƒ|jt
j|jƒƒtj d |jƒ|jƒfƒtd |||||gƒ}tj ƒj!|j"ƒd
d
d|t#|ƒƒtj$d ||ƒdS(NR"tHelpBattleRefreshiis.³¬¹ýË¢ÐÂÖúÕ½Áбí´ÎÊý£¡ÎÞ·¨Ë¢ÐÂ!refreshCount=%sis»õ±Ò²»×ã!ÎÞ·¨Ë¢ÐÂÖúÕ½£¡RDR>isÉèÖø±±¾Õ½Á¦=%s,±£µ×É˺¦=%sRs)SendGameServer_RefreshHelpBattlePlayer %s(%RJRKRLRMRNROR'R#RItGetPlayerGameFBDictByKeyRtFBPD_HelpBattleRefreshCountRSR&RR]R^R_RPRQRRRTRURVtDef_FB_HelpBattleGoldCalltSetPlayerGameFBDictRntFBPD_HelpBattleFBFightPowertGetFightPowerMintFBPD_HelpBattleFBBaseHurttGetRobotBaseHurtR)R$R*R+R,RX(RR|R}R©R~RzR{RtcalledPlayerIDDictt refreshCounttfreeRefreshCounttgoldRefreshCounttcostGoldRR„R…R†t needGoldCallR”trelationR0((s}D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\FBHelpBattle.pyRªsT    #.c    CsV|\}}}}}}}    |jƒ}
tjƒ} i|d6|d6dd6} x0|D](\} }tj|| |tj| ƒqUW| j|
tjƒ}|r¿|d7}| j    |
tj|ƒntj
d|||||||f|
ƒtj
d|    |
ƒ|    t j |
<t jƒ}||_g|_x|    jƒD]ø\}}t jƒ}| jtj|ƒ|_||_|jddƒ|_d    |kr|d    |_t|jƒ|_|d
|_|d |_|d |_|d |_|d|_ |jddƒ|_!|jddƒ|_"n|jj#|ƒq4Wt|jƒ|_$t%j&||ƒdS(NR?R@RRBiswFBHelpBattleResult: %s,mapID=%s,funcLineID=%s,isClientRefresh=%s,costMoneyList=%s,calledPlayerIDDict=%s,refreshCount=%ss    helpBattlePlayerDict=%sRDR=RFtFacetFacePictRealmLVRER>iR<('R'R#RIRR`RRaR­R®R°RXRPRQRttagMCHelpBattleListt RefreshCounttHelpPlayerListRTttagMCHelpBattlePlayerRURVRuRHRRRDR=R,tNameLenRFR¼R½R¾RER>t
IsNeedGoldRWt    HelpCountRR(RRRR R|R}R©RRµRRzR{RŽRRR¶thelpPlayerListPackR„R…t
helpPlayer((s}D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\FBHelpBattle.pyRUsH   
                           cCs†tjd||ƒ}|sdS|jƒ}td||gƒ}tjƒj|jƒddd|t|ƒƒtj    d||ƒdS(NR"Ris+SendGameServer_SweepCallHelpBattlePlayer %s(
RNROR'R)R#R$R*R+R,RX(RR|R}R~RzR0((s}D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\FBHelpBattle.pyt(SendGameServer_SweepCallHelpBattlePlayerƒs .c CsÃ|\}}}}|jƒ}tjd||||f|ƒtjd|ƒ}|sZdSg}    x3|jƒD]%}
|
tkr…qmn|    j|
ƒqmWt||||    ƒt    j
||||ƒdS(NsO__OnHelpBattleSweepCallResult %s,mapID=%s,funcLineID=%s,helpBattlePlayerDict=%stFBFunc( R'R#R&RNRORdt
MaxRobotIDRWt__DoGivePlayerAssistLiheRvtOnPlayerFBHelpBattleSweepResult( RRRR R|R}RRzt fbFuncIpyDatatassistPlayerIDListR„((s}D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\FBHelpBattle.pyRŽs      c    Cs¢g}tjƒ}|jƒ}tjj|iƒ}xU|jƒD]G}|jtj    |ƒ}|shq@n|t
krzq@n|j |ƒq@Wt ||||ƒdS(N( R#RIR'RPRQRRRdRURRVRÊRWRË(    RR|R@RÎR{RzRR„R†((s}D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\FBHelpBattle.pytDoFBHelpBattleFinish¤s   cCsÐ|s
dSd}tjddiƒ}tj|ƒ}t|ƒ|kr]|t|ƒd}n|sgdStj||ddggƒtd||||gƒ}tjƒj    |j
ƒddd|t |ƒƒdS(Nit AssistAwardiit AssistFinishR"( RNtGetFuncEvalCfgRJRKR)t ItemControlertGivePlayerItemOrMailR#R$R*R+R,(RR|R@RÎt
liheItemIDtmapAssistGiftDictR0((s}D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\FBHelpBattle.pyR˶s.c
Csmd}d}d}d}|jƒ}|tjkrC||||fStjƒ}tj|\}    }
} tjddgƒ} tjddiƒ} |jƒ}|jƒ}|r©d}x¾|
j    ƒD]°\}}t
|||||| |    |ƒ\}}|s| rÀ|rÀ|}qÀqÀn|}| j t |ƒgƒ}|t |ƒdkrR|dnd7}| |}||||fSW|}| j |dƒ}tjd||f|ƒn´x±|
j    ƒD]£\}}t
|||||| |    |ƒd}|sóq¶n|| dkr |}n|r|}n| j t |ƒgƒ}|t |ƒdkrR|dnd7}q¶W||||fS(NittHelpBattlePointiiis>ÖúսĬÈÏÎÞ¹ØÏµ¶ÓÔ±£º relationPlayerID=%s,relationPlayerName=%s(t    GetTeamIDRPtg_teamFBMemRelationDictR#tGetMapCopyPlayerManagerRNRÒR't GetFamilyIDRTt__GetTemMemRelationRRR)R,R&(RtisHelpt leavePlayerIDR»t relationAddtrelationPlayerIDtrelationPlayerNametteamIDt playerManagert
friendListtmemFamilyIDDictt memNameDictt relationListtrelationCoinAddDictRztfamilyIDtdefaultRelationPlayerIDt memPlayerIDt memFamilyIDt memRelationtrelationAddList((s}D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\FBHelpBattle.pyt__GetTeamFBMemRelationInfoËsP    '     &
%        *c
CsÎ|r||krdS||kr&dS|j|ƒ}|dksM|jƒrQdSxp|D]h}    |    dkr‰||g|kr‰|    |fSn|    dkrX||krÀ|rÀ||krÀ|    |fSqXqXWd|fS(Niii(ii(ii(ii(tFindPlayerByIDtNonetIsEmpty(
RäRzRêRìRíRèRåRßt    memPlayert checkRelation((s}D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\FBHelpBattle.pyRÝüs     c
CsItjƒ}x¾t|jƒƒD]ª}|j|ƒ}|dks|jƒrRqn|rƒ|jƒ|krƒtj    j
|dƒqnt |t j |ƒ|ƒ\}}}}||||gtj    |jƒ<qWxut|jƒƒD]a}    |j|    ƒ}|dksà|jƒrqàn|r1|jƒ|kr1qàntj||ƒqàWdS(Ni(R#RÛtxrangetGetPlayerCountR%RòRóR'RPtg_teamFBMemRelationAddDictRgRðRJtGetIsHelpFightRvtDoFBHelp(
RRßRätitplayerR»RàRáRâR-((s}D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\FBHelpBattle.pytRefershTeamFBMemRelations$ '#cCs"|tjkrdStj|d S(Nii(ii(RPRø(Rz((s}D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\FBHelpBattle.pytGetTeamFBMemRelationInfo%s(&R#RRRRR6RJRNR4RPRYRiRkRvR^R2RÓRÊR R RR!R1RRRsR«RRªRRÈRRÏRËRðRÝRýRþ(((s}D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\FBHelpBattle.pyt<module>sH                     
                         }        6    .                     1