hxp
2018-12-27 58a7e646e60f2c17d120ce6b48ec64eeb358f29a
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
>À$\c@sÉddlZddlZddlZddlZddlZddlZddlZddlZddlZe    dƒ\Z
Z Z Z Ze    dƒ\ZZZZZZZe    dƒ\ZZZZdZdZdZdZd    Zd
Zd Z d Z!d Z"dZ#d„Z$d„Z%d„Z&d„Z'd„Z(d„Z)d„Z*d„Z+d„Z,d„Z-d„Z.d„Z/d„Z0d„Z1d„Z2d„Z3d„Z4e5d „Z6d!„Z7d"„Z8d#„Z9d$„Z:dS(%iÿÿÿÿNiiisFBD_FBPlayerID_%ssFBD_PlayerWinCnt_%ssFBD_PlayerLeaveTick_%stFBPD_PVPDamagetFBPD_PVPDamUpdTicktFBPD_ResetPosXtFBPD_ResetPosYt FBPD_RoundNumt FB_RoundNumsFB_RoundWinPlayerID_%scCstS(N(tTrue(t    curPlayertmapIDtlineIDttick((sˆE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_CrossRealmPK.pytOnEnterFBEventGsc Cs    |jƒ}|jƒ}tjƒjƒ}tjƒ}|jƒ}tjd|||f|ƒ|jt    |ƒr tjd|ƒ|j
t    |dƒtj ƒ}xft |j ƒƒD]O}|j|ƒ}    |    rµ|    jƒ|jƒkrµ|    jtjddtƒqµqµWn|jtƒ}
|j|tƒ} | r„|
r„| |
kr„tjd|
| f|ƒ|j|t|
ƒt|||ƒn|tksª| sª| sª||kr»tj|ƒdStj|tjdƒ|tkrtj t!j"ddƒd|ƒnt!j"ddƒ} |t#kr|j
t$d|ƒ|j|t%|j&ƒƒ|j|t'|j(ƒƒ|j|tdƒtj)t*|ƒtjd    ||ƒt|||ƒ|jtj+d| t,d
tƒt-|gƒ} tj.ƒj/dddd | t0| ƒƒnì|t*krL|jt$dƒ}|jt$dƒ}| rË||krË|j
t$d|ƒ|j|t%|j&ƒƒ|j|t'|j(ƒƒ|j|tdƒtjd ||ƒt|||ƒntj ƒj ƒdkr5tjd ||ƒtj)t1|ƒtj2tj3| t4d
ƒ|j
tdƒqòtjd||ƒn¦|t1krŸ| t4d
|tjƒj5ƒ}|jtj3dt6|dƒtƒnS|tkrò| t7d
|tjƒj5ƒ}|jtj8dt6|dƒtƒntj9|t:ƒƒdS(Ns1DoEnterFB fbRoomID=%s,playerVSRoomID=%s,fbStep=%ss    Íæ¼ÒÀëÏß±£»¤Ê±¼äÄÚÉÏÏß!isQÍæ¼Ò½øÈ븱±¾Ê±Ó뵱ǰ¸±±¾»ØºÏÊý²»Ò»ÖÂʱ£¬ÖØÖÃ״̬£¡fbRoundNum=%s,playerRoundNum=%sitCrossRealmPKFBiis:    µÚÒ»¸ö½øÈ룬ÕóÓª1£¬ÉèÖø±±¾½øÈëµÈ´ý¶ÔÊֽ׶Σ¡roomID=%siètCrossPKRoomOpens&    µÚ¶þ¸ö½øÈëµÄÍæ¼Ò£¡ÕóÓª2£¬roomID=%ss5    Á½¸öÈ˶¼ÔÚ£¬ÉèÖø±±¾½øÈëÕ½¶·µ¹¼ÆÊ±½×¶Î£¡roomID=%ss!    ¶ÔÊÖ²»ÔÚ£¬¼ÌÐøµÈ´ý£¡roomID=%s(;t GetPlayerIDt GetVsRoomIdt    GameWorldt GetGameWorldt GetPropertyIDt    GetGameFBt    GetFBSteptLogtGetGameFBDictByKeytGameFBDict_PlayerLeaveTickt SetGameFBDicttGetMapCopyPlayerManagertxrangetGetPlayerCounttGetPlayerByIndext Sync_TimeTicktChConfigttttPlayerLeaveRRtGetPlayerGameFBDictByKeytFBPDict_RoundNumtDebugLogtSetPlayerGameFBDictt__ResetPlayerStatetFB_State_Leavet PlayerControlt PlayerLeaveFBtSetSighttDef_PlayerSight_DefaulttFB_State_FighttFBCommontSyncDynamicBarrierStatet IpyGameDataPYtGetFuncEvalCfgt FB_State_OpentGameFBDict_FBPlayerIDtFBPDict_ResetPosXtGetPosXtFBPDict_ResetPosYtGetPosYt    SetFBSteptFB_State_Waitingt tttWaitPlayertDef_Time_MaxWaittstrtGetPlayerManagertGameServer_QueryPlayerResulttlentFB_State_MapPreparetSync_Player_TimeTickt tttWaitStarttDef_Time_MapPreparet GetFBStepTicktmaxtDef_Time_Fightt tttTowerTaket Notify_FBHelpt__GetFBHelpInfo(RR
tplayerIDtplayerVSRoomIDtroomIDtgameFBtfbStept playerManagertindextplayert
fbRoundNumtplayerRoundNumt
fbTimeListtsendMsgt    playerIDAt    playerIDBt notify_tick((sˆE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_CrossRealmPK.pyt    DoEnterFBOs~     #    &  " !+  "% "%cCs{tjƒ}g}|jtƒ}xEtd|dƒD]0}|jt|ƒ}|sXPn|j|ƒq5Wi|d6|d6S(NitroundNumtroundWinerIDList(RRRRRtFB_RoundWinPlayerIDtappend(RJRXRWtwinnerID((sˆE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_CrossRealmPK.pyRFžs c    Csøtjƒ}|jƒ}|tkr(dS|jƒ}|jt||ƒtjd||fƒtjƒ}x†t    |j
ƒƒD]r}|j |ƒ}|r~|jƒ|jƒkr~t j ddƒ}|jtjdt|tddƒtƒq~q~WdS(Ns-Íæ¼ÒÕ½¶·½×¶ÎÏÂÏߣ¡playerID=%s,waitPlayerID=%sR iiiè(RRRR%RRRRRRRRR-R.RRRRBtDef_Time_ProtectR(    RR
RJRKRGRLRMRNRQ((sˆE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_CrossRealmPK.pytDoExitFB¬s     1c Csìtjƒ}|jƒ}|tkr4|tkr4dS|jƒ}tjƒjƒ}|jt    dƒ}|jt    dƒ}||}}    ||    kr—|n|}
tj
ƒj |
ƒ} tj d|||    |
fƒt | |
||    t|ƒdS(NiisIÍæ¼ÒÖ÷¶¯Í˳ö£¬Ö±½ÓËãÊä! roomID=%s,leavePlayerID=%s,loserID=%s,winnerID=%s(RRRR6R%RRRRR0RtFindPlayerByIDRt__DoFBPKAllOvertDef_OverType_PlayerExit( RR
RJRKt leavePlayerIDRIRSRTtlosertloserIDR[twinner((sˆE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_CrossRealmPK.pytDoPlayerLeaveFBÃs    cCsdS(N((RR
((sˆE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_CrossRealmPK.pytDoFBHelp×scCs·tjƒ}|jƒ}|tkr1t|ƒn‚|tkrYt|ƒs³t|ƒq³nZ|tkrt|ƒs³t    |ƒq³n2|t
kršt |ƒn|t kr³t |ƒndS(N(RRRR6t__DoLogic_WaitingR=t__CheckLeaveProtectTimeoutt__DoLogic_MapPrepareR*t__DoLogic_MapFighttFB_State_Rebornt__DoLogic_RebornR%t__DoLogic_LeaveTime(R
RJRK((sˆE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_CrossRealmPK.pyt    OnProcessÛs            cCs›tjddƒ}|tjƒjƒ|tdkr:dSt|ƒ\}}}}tjƒjƒ}tj    d|||fƒt
||||t |ƒdS(NR iiès@սǰµÈ´ý¶ÔÊֽ׶γ¬Ê±£¬Ö±½Ó½áÊø£¡roomID=%s,winnerID=%s,loserID=%s( R-R.RRRAR8t__GetTimeoutWinerInfoRRRR_tDef_OverType_LackPlayer(R
RQRdR[RbRcRI((sˆE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_CrossRealmPK.pyRgïs$c Cs$tjƒ}|jtdƒ}|jtdƒ}|jt|ƒ}|jt|ƒ}| rj| rjdStjddƒ}||kr§|||tdkrÃdSn|||tdkrÃdSt|ƒ\}}}    }
tj    ƒj
ƒ} tj d| ||
fƒt |||    |
t |ƒtS(NiiR iès>Õ½¶·ÖжÔÊÖÀëÏß³¬Ê±£¬Ö±½Ó½áÊø£¡roomID=%s,winnerID=%s,loserID=%s(RRRR0RR-R.R\RoRRRR_R`R( R
RJRSRTtplayerLeaveTickAtplayerLeaveTickBRQRdR[RbRcRI((sˆE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_CrossRealmPK.pyRhûs$  c
Cs(d \}}}}tjƒjƒ}tjƒ}|jƒ}tjƒ}|jtdƒ}    |jtdƒ}
|t    kr|j
ƒdkrtj d|ƒg} xÆ|    |
gD]¸} |j | ƒ} |j | tƒ}|j | tƒ}||}| sÿdn    | jƒ}| sdn    | jƒ}| j||||| | gƒtj d||||||f| ƒq°W| jdtƒtj dt| ƒƒt| ƒdkr³| ddnd }t| ƒdkrÙ| ddnd }|sëdn    |jƒ}|sdn    |jƒ}||||fSxqt|j
ƒƒD]]}|j|ƒ} | d ks2| jƒreq2n| }| jƒ}tj d    ||fƒPq2W|s|jt|    ƒ}|jt|
ƒ}tj d
||fƒ||krñ|    }|
}q|
}|    }n|    |kr|
n|    }||||fS( s¢ Ê±¼ä³¬Ê±£¬»ñÈ¡»ñʤµÄÍæ¼Ò
                    Õ½¶·½×¶ÎÓÐÁ½¸öÍæ¼ÒʱÓÅÏȱȽÏÊä³ö
                    ÆäËûÇé¿öÔòÔÚÏßÍæ¼Ò»ñʤ£¬Èç¹ûûÓÐÍæ¼ÒÔÚÏߣ¬Ôò×î³ÙÀëÏߵĻñʤ
    iiis1Á½¸öÈ˶¼ÔÚÏߣ¬¸ù¾Ý³¬Ê±¹æÔòÅжÏʤ¸ºÍæ¼Ò! roomID=%ss>PK³¬Ê±: pvpDamge=%s,pvpDamTick=%s,tick=%s,sortTick=%s,HP=%s/%streverses"PK³¬Ê±, ½øÈë½áËã!playerInfoList=%siÿÿÿÿs3³¬Ê±½áËã£¬Íæ¼ÒÔÚÏߣ¬Ö±½Ó»ñʤ: roomID=%s,winnerID=%ssM³¬Ê±½áË㣬ûÓÐÍæ¼ÒÔÚÏߣ¬ºóÀëÏߵĻñʤ: playerLeaveTickA=%s,playerLeaveTickB=%sN(NiNi(tNoneRRRRRRRR0R*RRR^R tFBPDict_PVPDamagetFBPDict_PVPDamUpdTicktGetHPtGetMaxHPRZtsortRR9R<RRRtIsEmptyR(R
RdR[RbRcRIRJRKtcopyMapPlayerManagerRSRTtplayerInfoListRGRNt    pvpDamaget
pvpDamTicktsortTicktcurHPtcurMaxHPtiRqRr((sˆE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_CrossRealmPK.pyRos\   
    !&&          cCstjddƒ}tjd|tƒ|tjƒjƒ|tdkrOdStjt    |ƒtj
t j |t dƒtjtjddƒdƒtƒ}d|d<tjƒ}xWt|jƒƒD]C}|j|ƒ}|dksÈ|jƒrûqÈntj||ƒqÈWdS(NR is__DoLogic_MapPrepare ... %sièiitisStart(R-R.RR"R@RRAR+R5R*R>RRDRCR,RFRRRRRtRzRE(R
RQthelpDictR{R‚RN((sˆE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_CrossRealmPK.pyRiTs $    
 cCs›tjddƒ}|tjƒjƒ|tdkr:dSt|ƒ\}}}}tjƒjƒ}tj    d|||fƒt
||||t |ƒdS(NR iiès2PK³¬Ê±, ½øÈë½áËã! roomID=%s,winnerID=%s,loserID=%s( R-R.RRRARCRoRRRt__DoLogicAddPlayerWinCnttDef_OverType_TimeOut(R
RQRdR[RbRcRI((sˆE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_CrossRealmPK.pyRjks$c Cs÷tjƒ}tƒ}tjddƒ}|td}||d<|jtƒd}|jt|ƒtj    ƒ}xït
|j ƒƒD]Û}|j |ƒ}|dks|jƒr´qn|jƒ}    |j|    t|ƒ|jƒtjksú|jƒdkr9tjd|jƒƒtj|tj|ƒt|||    ƒnt|||    tƒtj||ƒqWtjd|ƒ|jt dƒ}
|jt dƒ} |j|
t!dƒ|j|
t"|ƒ|j| t!dƒ|j| t"|ƒtj#t$|ƒdS(    NR iièt prepareTimeis ¸´»îÍæ¼Ò...s¿ªÊ¼ÏÂÒ»»ØºÏ: nextRoundNum=%si(%RRRFR-R.R@RRRRRRRRtRzRR#R!tGetPlayerActiont IPY_GameWorldtpaDieRwR"tChPlayertPlayerRebornByTypeRtrebornType_SystemR$tFalseR+RERR0RuRvR5R=( R
RJR„RQR‡t nextRoundNumR{R‚RNRGRSRT((sˆE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_CrossRealmPK.pyRlws:     
  'cCs[tjddƒ}|tjƒjƒ|tdkr:dStjt|ƒt    j
|ƒdS(NR iiè( R-R.RRRAtDef_Time_LeaveR+R5tFB_State_ClosetGameWorldProcesstCloseFB(R
RQ((sˆE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_CrossRealmPK.pyRm¥s $ c    Cs–|jƒ}|jƒ}tjƒ}|j|tƒ}ttj||ƒ}|j|t|ƒ|j|t    |ƒtj
d|||||fƒdS(NsJOnPVPDamage playerID=%s,tagPlayerID=%s,damageValue=%s,updDamage=%s,tick=%s( RRRR RutminRtDef_UpperLimit_DWordR#RvR"(    Rt damageValuet    tagPlayerR
RGt tagPlayerIDRJtcurPlayerDamaget    updDamage((sˆE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_CrossRealmPK.pyt OnPVPDamage®s       cCs€|jƒ}|jƒ}tjƒjƒ}tjd|||f|ƒtjƒjƒtkrcdSt||||t    |ƒt
S(Ns2DoFBOnKill_Player roomID=%s,winnerID=%s,loserID=%s( RRRRRRRR*R…tDef_OverType_KillR(RtdefenderR
R[RcRI((sˆE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_CrossRealmPK.pytDoFBOnKill_PlayerÀs  c Csòtjƒ}tjƒjƒ}|jt|ƒ}|d}    |jt||    ƒ|jtƒ}
|jt|
|ƒtj    d||
|||    fƒ|    t
j ddƒk} | sÄt j t|ƒdStj    d|ƒt||||||ƒdS(NisC»ØºÏ½áÊø: roomID=%s,roundNum=%s,winnerID=%s,loserID=%s,updWinCnt=%sR is-    ÒÑ´ïµ½×î´óʤ³¡£¬»ñµÃ×îÖÕʤÀû£¡winnerID=%s(RRRRRtGameFBDict_PlayerWinCntRRRYRR-t
GetFuncCfgR+R5RkR_( RdR[RbRctoverTypeR
RJRIt winnerWinCntt    updWinCntRWtisOver((sˆE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_CrossRealmPK.pyR…Ìs 
 cCs·|j|tƒ}|j|tƒ}|j||ƒ|s>dS|jƒ|jƒkrl|j|jƒƒntj|ƒtj    |ƒkr¦tj
|tj    |ƒƒnt j |ƒdS(N( R R1R3tResetPosRwRxtSetHPR&t    GetProDeft GetMaxProDeft    SetProDeft SkillCommontResetAllSkillCD(RJRNRGt    resetAttrtposXtposY((sˆE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_CrossRealmPK.pyR$âs c Cs-tjƒ}g}|jtƒ}x5td|dƒD] }|j|jt|ƒƒq5Wtjddƒ}    t    j
t j |    t dƒt    jt|ƒ|ttgkr®dnd}tjƒjƒ}
t|
||||gƒ} tjƒjdddd| t| ƒƒtjd|
||||fƒdS(NiR ièit CrossPKOversXPK½áËãSendToGameServer: roomID=%s,winnerID=%s,loserID=%s,roundWinerIDList=%s,overType=%s(RRRRRRZRYR-R.R+R>Rt tttLeaveMapRR5R%RpR`RRR9R:R;R<R( RdR[RbRcR¡R
RJRXRWRQRIRR((sˆE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_CrossRealmPK.pyR_ôs (    cCst||ƒ S(N(tCanAttackPlayer(Rt curTagPlayer((sˆE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_CrossRealmPK.pytCheckPlayersRelation_IsFriend scCs t||ƒS(N(R±(RR²((sˆE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_CrossRealmPK.pytDoCanAttackTeamerscCs3tjƒjƒ}|tkr/tjdƒtStS(Ns·ÇÕ½¶·½×¶Î£¬²»¿É¹¥»÷£¡(RRRR*R"RŽR(RR²RK((sˆE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_CrossRealmPK.pyR±s
  (;R‹RR‰R&R’R-RªR+RtrangeR8R@RCR\RR/R6R=R*RkR%R‘RpR`RœR†R0RŸRRuRvR1R3R!RRYR RVRFR]ReRfRnRgRhRoRiRjRlRmR›RžR…RR$R_R³R´R±(((sˆE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_CrossRealmPK.pyt<module>sV              !        O                                 A             .