hxp
2025-05-29 f08058713e574c675579ca5ccbfabeb1e6702cf0
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
Û8hc@sddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z ddl Z ddlZddlZdZdZdZdZedƒ\ZZedƒ\ZZZZd„Zd    „Zd
„Zd „Zd „Zd „Z d„Z!d„Z"d„Z#d„Z$d„Z%d„Z&d„Z'd„Z(d„Z)e*d„Z+d„Z,d„Z-d„Z.d„Z/d„Z0d„Z1d„Z2d„Z3d „Z4dd!„Z5d"„Z6d#„Z7d$„Z8dS(%iÿÿÿÿNtFBPlayerDict_EncourageLVt FBDict_IsOvertMap_FB_StartTicktMap_SightLevelCounteriicCstS(N(tTrue(t    curPlayertmapIDtlineIDttick((s‡D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_HorsePetBoss.pytOnEnterFBEvent>scCs|S(N((RRtlineIdtipyEnterPosInfoR((s‡D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_HorsePetBoss.pytOnGetFBEnterPosHscCstjS(N(t IPY_GameWorldt    cmeAccept(taskR((s‡D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_HorsePetBoss.pytOnChangeMapAskUscCsCtjƒjƒd}t|ƒ}|s,dStjd|gƒdS(Niie(t    GameWorldt GetGameWorldt GetPropertyIDtCurFBLineBOSSIDtNPCCustomRefresht SetNPCRefresh(RRtbossID((s‡D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_HorsePetBoss.pytOnOpenFB\s  cCsátjƒjƒ}|tjkr%dStjd|ƒ|rƒtjƒjtƒsjtjƒj    t|ƒntjƒj    t
dƒnZtjƒj    tdƒtj ƒj ƒt krÝtj ƒjt|ƒtd|ddƒndS(Ns!    Æï³èBOSS»î¶¯×´Ì¬±ä¸ü state=%si(RtGetMaptGetMapIDtChConfigtDef_FBMapID_HorsePetBosstDebugLogRtGetGameWorldDictByKeyRtSetGameWorldDictRt    GetGameFBt    GetFBSteptFB_Step_Fightingt SetGameFBDictRt__DoLogicHorsePetBossOver(tstateRR((s‡D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_HorsePetBoss.pytOnHorsePetBossStateChangedscCsStjƒjƒ}tjƒjtƒ}tdtj|ƒt    d||ƒ}|S(Niiè(
RRRRRRtmaxtFBCommontGetFBLineStepTimet Def_BossTime(RRt    startTicktcloseFB_RemainTick((s‡D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_HorsePetBoss.pyt__GetRemainTickvs(c CsU|jƒ}tjƒjƒd}tjƒjƒjƒ}tjd||f|ƒ|dkrqtj|ƒdStj    ƒj
ƒ}|t kr tj|ƒdSt j |ƒ}|sBt j|ƒtj|tjdƒtj|tjdƒtj|tjdƒtj|tjdtjƒ|tkrBt jt |ƒqBnt!|dt"ƒt#j$ddƒ}tjƒj%t&ƒd}tjƒj't&|ƒ|d|d}    tj(||    ƒtjd||    f|ƒtj    ƒ}
|
j)|t*ƒ} | dkrt j+|t*|ƒnt j,|| ƒt-|ƒ} |j.t/j0d| t"ƒt1||ƒdS(Nis"DoEnterFB...playerCnt=%s,lineID=%sitHorsePetBOSSSighti
s!counter=%s,SetPlayerSightLevel=%s(2t GetPlayerIDRRRtGetMapCopyPlayerManagertGetPlayerCountRt PlayerControlt PlayerLeaveFBR R!t FB_Step_OverR(tGetHadDelTickettSetHadDelTickettPlayerActivitytAddDailyActionFinishCntt ShareDefinetDailyActionID_HorsePetBosstPlayerWeekPartytAddWeekPartyActionCntRtDef_WPAct_HorsePetBosstPlayerTongTianLingtAddTongTianTaskValuetTTLTaskType_HorsePetBosst EventReportt WriteEvent_FBRt CME_Log_Startt FB_Step_Opent    SetFBStepR"tUpdateHurtInfoRt IpyGameDataPYt
GetFuncCfgRRRtSetPlayerSightLeveltGetPlayerGameFBDictByKeyRtAddFbEncourageBufftSendFBEncourageInfoR-t Sync_TimeTickR t tttTowerTaketDoFBHelp( RRtplayerIDRt    playerCnttfbStept hadDelTickettsightPlayerCounttcountert
sightLeveltgameFBt encourageLVR,((s‡D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_HorsePetBoss.pyt    DoEnterFBsH           cCs:tjƒ}|jƒd}itj|<|jdƒdS(Nii(RRRt
PyGameDatatg_horsePetBossPlayerHurtDictt SetPropertyID(Rt    gameWorldR((s‡D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_HorsePetBoss.pyt    OnCloseFB³s
   cCs tjƒ}tj||ƒdS(N(RRR(tClearEncourageBuff(RRR]((s‡D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_HorsePetBoss.pytDoExitFB¾s 
cCsRtjƒjƒd}tjj|iƒ}|j|jƒdƒ|tj|<dS(Nii(RRRRZR[tgettpopR/(RRRtplayerHurtDict((s‡D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_HorsePetBoss.pytDoPlayerLeaveFBÑs
 cCsdS(N((R((s‡D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_HorsePetBoss.pytDoPlayerChangeMapLogicÛscCstS(N(R(((s‡D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_HorsePetBoss.pytOnPlayerRebornâscCs˜tjƒjtƒrdSg}tjƒjƒd}t|ƒ}|jƒ}d\}}x¯t|dƒD]ž\}}    |    d}
|    dd \} } |
|kr¯|| }}n|dkrii} || d<| | d<| t    j
| d<| t    j
| d<|j | ƒqiqiWt tjƒj ƒ||ƒ}i|tj6|d    6|t    j
d
6|t    j
d 6|d 6|d 6}tjd||jƒƒtj||ƒdS(Niiiitrankt
playerNamethurtthurtExthurtInfotmyHurttmyHurtExtmyRankt remainHPPers DoFBHelp: %s(ii(RR tGetGameFBDictByKeyRRRt__GetSortHurtListR/t    enumerateRtDef_PerPointValuetappendtGetBossRemainHPPert GetCopyMapIDR(t Help_lineIDRt Notify_FBHelp(RRRkRtplayerHurtListt
myPlayerIDRnRltitinfoRPRhRithurtDictRot
fbHelpDict((s‡D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_HorsePetBoss.pyROês2   
 
 
"cCs)|dkr%tj|t||ƒndS(Ni(R(tFbEncourageBuffR(Rt
actionTypet
actionInfoR((s‡D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_HorsePetBoss.pyt
DoFBActions cCst||ƒdS(N(RF(RtcurNPCthurtHP((s‡D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_HorsePetBoss.pytDoFB_Player_HurtNPCs cCs‘|jƒ}tjƒjƒd}|jƒ}tjj|iƒ}||krl|sYdS||g||<n||dc|7<|tj|<dS(Ni(R/RRRtGetNameRZR[Ra(RR„tisAddRPRRhRc((s‡D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_HorsePetBoss.pyRFs    cCstjƒ}tjƒ}|jtƒ}|jƒ}|jƒd}|dkrSdS|tkrâtjƒj    ƒ}t
j ||ƒt d}|tjƒj ƒ|krtjd||fƒtj|ƒt
jt|ƒdSn,|tkr|rødSt
j|tdƒndS(Niiiès)Ç¿ÖÆÌß³öÍæ¼Ò¹Ø±Õ¸±±¾: overTick=%s,tick=%siˆ(RR RRpRR!RR4RRR(R)t Def_LeaveTimet GetFBStepTicktLogtGameWorldProcesstCloseFBREt FB_Step_CloseR"tNotifyCopyMapPlayerFBHelpRO(RRWR]toverTickRRRRt    leaveTick((s‡D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_HorsePetBoss.pyt    OnProcess3s(       cCs:tjj|iƒ}t|jƒdd„dtƒ}|S(NtkeycSs |ddS(Ni((tasd((s‡D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_HorsePetBoss.pyt<lambda>Ostreverse(RZR[Ratsortedt    iteritemsR(RRcRy((s‡D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_HorsePetBoss.pyRqMs!c    Cs±tjt|ƒtjƒjƒ}tjƒjƒd}t|ƒ}tj    ƒj
dddd|t |ƒƒtj ||ƒt d}t|ƒ}|s­tjd|ƒdSt|ƒ}    ggggf\}
} } } tjƒ}tjƒjtjƒ}xŠt|dƒD]y\}}|d}|rBt|||ƒ\}}n gg}}tjd|||f|ƒ||}|j|ƒ}|r6i|tj6}|r·tj|ƒ|d<n|rÖtj|ƒ|tj<n|rþtj|||    ||dd    ƒn|jtjd|t ƒtj!|t"j#|||ƒq |r |
j$|gƒ| j$|ƒ| j$gƒ| j$i|d
6|d 6ƒq q W|
r­t%j&d |
| | d | ƒndS(NiitHorsePetBossOveriès8 __DoLogicHorsePetBossOver£¬ É˺¦°ñÉÏûÓÐÈË£¡£¡lineID=%ss'auctionItemList=%s,itemList=%s, rank=%st AuctionItemt mailTypeKeytQCBOSS1RgRtQCBOSS2t batchDetail('R(RER4RRRRRtstrtGetPlayerManagertGameServer_QueryPlayerResulttlenR)RˆRqRŠRR0RR9t"Def_Notify_WorldKey_WorldAverageLvRrt__GetHorsePetBossAwardtFindPlayerByIDt    Over_ranktGetJsonItemListt Over_itemInfot    NPCCommontDoGiveItemByVirtualDropRMR t tttLeaveMapRt NotifyFBOverRRRtR2t SendMailBatch(tisPassRtdropPosXtdropPosYRRtmsgStrRRyRtbatchPlayerIDListtbatchAddItemListtbatchParamListtbatchDetailListt playerManagertworldLVRgRkRPtauctionItemListtitemListt giveItemListtplayertoverDict((s‡D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_HorsePetBoss.pyR$SsP (   
 
"  "cCsgg}}tjd|ƒ}|s/||fSg}i}xŠ|D]‚}|jƒ}    ||    dksB||    dkrzqBn|jƒ}
||
dksB||
dkr¬qBn|jƒ}|jƒ}qBW| rú| rútjd|||fƒ||fSxŒ|D]„\} } tj| dƒs%qnt    | ƒdkrNtjd| ƒqn| ds^qn| drx|j
| ƒq|j
| ƒqWx}|D]u} tj | ƒ}t    |ƒdkrÎtjd    |ƒqn|dsÞqn|drø|j
|ƒq|j
|ƒqW||fS(
NtHorsePetBossAwardiis9Æï³èBoss½±Àø±í Î´ÅäÖøý±Àø lineID=%s, rank=%s,worldLV=%si'is#Æï³èBoss½±Àø±í ÅäÖôíÎó itemInfo=%sis"Æï³èBoss½±Àø±íÅäÖôíÎó itemInfo=%s( RGtGetIpyGameDataListt
GetWorldLVtGetRankt    GetAward1t    GetAward2RtErrLogt    CanHappenR¡RttGetResultByRandomList(RRgR¶R·R¸t ipyDataListt awardRateListtawardPieRateDicttipyDatat worldLVListtrankListtratetitemInfotawardPieRateListt
resultItem((s‡D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_HorsePetBoss.pyR£„sP 
      
 
 
 
 
cCst||ƒdS(N(t__FBNPCOnKilled(tattackerRƒR((s‡D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_HorsePetBoss.pytDoFB_Npc_KillNPC³s cCst||ƒdS(N(RÏ(RRƒR((s‡D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_HorsePetBoss.pytDoFB_Player_KillNPC¶s cCs¢tjƒjƒd}t|ƒ}|jƒ|kr8dS|jƒ|jƒ}}tj|t    dƒtj
d|ƒt d|||ƒtj ƒj t|ƒdS(Niis½áÊø ÉèÖÃBOSSËÀÍö lineID=%s(RRRRtGetNPCIDtGetPosXtGetPosYR(RŽRORR$R R#R(RƒRRRR®R¯((s‡D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_HorsePetBoss.pyRÏ»s cCsKtjƒjƒd}t|ƒ}|jƒ|krG|jtjƒndS(Ni(RRRRRÓt SetSightLevelRtSightLevel_Public(RƒRRR((s‡D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_HorsePetBoss.pyt DoFBRebornNPCËs
 cCsFt|ƒ}tj||ƒ}|s(dStj|ƒdtj|ƒS(Nid(RRtFindNPCByNPCIDExtGameObjtGetHPtGetMaxHP(t    copyMapIDt
funcLineIDRRtcurBoss((s‡D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_HorsePetBoss.pyRuÔs
 cCsT|dkr%tjƒjƒd}ntjtj|ƒ}|sDdSt|ƒ}|S(Niÿÿÿÿii(RRRR(tGetFBLineRefreshNPCRRtint(RtrefreshNPCInfoR((s‡D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_HorsePetBoss.pyRÛs  cCsdS(N((R((s‡D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_HorsePetBoss.pyt DoPlayerDeadêscCstS(N(R(RÐtdefender((s‡D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_HorsePetBoss.pytCheckCanAttackTagObjInFBñscCstS(N(R(tatkobjRäR((s‡D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_HorsePetBoss.pytDoFBOnKill_Playerûs(9R(RR R‹RGRRZR2R9R7RR;RAR¨RÚR>RRRRtrangeR*RˆRDR"R4RR    R RRR&R-RYR^R`RdReRfROR‚R…tFalseRFR‘RqR$R£RÑRÒRÏRØRuRRãRåRç(((s‡D:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_HorsePetBoss.pyt<module>sd                
    
                          2             
            %                      1    /