cehua_LC
2018-12-27 1fd7c56df45152d11b38cd3ed34a9d39d7183b71
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
x$\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$dƒ|j
t%d|ƒ|j|t&|j'ƒƒ|j|t(|j)ƒƒ|j|tdƒtj*t+|ƒtjd    ||ƒt|||ƒ|jtj,d| t-d
tƒt.|gƒ} tj/ƒj0dddd | t1| ƒƒnù|t+krf|jt%dƒ}|jt%dƒ}| rå||krå|j$dƒ|j
t%d|ƒ|j|t&|j'ƒƒ|j|t(|j)ƒƒ|j|tdƒtjd ||ƒt|||ƒntj ƒj ƒdkrOtjd ||ƒtj*t2|ƒtj3tj4| t5d
ƒ|j
tdƒq tjd||ƒn¦|t2kr¹| t5d
|tjƒj6ƒ}|jtj4dt7|dƒtƒnS|tkr | t8d
|tjƒj6ƒ}|jtj9dt7|dƒtƒntj:|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_Opent
SetFactiontGameFBDict_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(RKRYRXtwinnerID((sˆE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_CrossRealmPK.pyRG 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.RRRRCtDef_Time_ProtectR(    RR
RKRLRHRMRNRORR((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(RRRR7R%RRRRR1RtFindPlayerByIDRt__DoFBPKAllOvertDef_OverType_PlayerExit( RR
RKRLt leavePlayerIDRJRTRUtlosertloserIDR\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(RRRR7t__DoLogic_WaitingR>t__CheckLeaveProtectTimeoutt__DoLogic_MapPrepareR*t__DoLogic_MapFighttFB_State_Rebornt__DoLogic_RebornR%t__DoLogic_LeaveTime(R
RKRL((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.RRRBR9t__GetTimeoutWinerInfoRRRR`tDef_OverType_LackPlayer(R
RRReR\RcRdRJ((sˆE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_CrossRealmPK.pyRhñ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(RRRR1RR-R.R]RpRRRR`RaR( R
RKRTRUtplayerLeaveTickAtplayerLeaveTickBRRReR\RcRdRJ((sˆE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_CrossRealmPK.pyRiý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(tNoneRRRRRRRR1R*RRR_R tFBPDict_PVPDamagetFBPDict_PVPDamUpdTicktGetHPtGetMaxHPR[tsortRR:R=RRRtIsEmptyR(R
ReR\RcRdRJRKRLtcopyMapPlayerManagerRTRUtplayerInfoListRHROt    pvpDamaget
pvpDamTicktsortTicktcurHPtcurMaxHPtiRrRs((sˆE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_CrossRealmPK.pyRps\   
    !&&          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"RARRBR+R6R*R?RRERDR,RGRRRRRuR{RF(R
RRthelpDictR|RƒRO((sˆE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_CrossRealmPK.pyRjVs $    
 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.RRRBRDRpRRRt__DoLogicAddPlayerWinCnttDef_OverType_TimeOut(R
RRReR\RcRdRJ((sˆE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_CrossRealmPK.pyRkms$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(%RRRGR-R.RARRRRRRRRuR{RR#R!tGetPlayerActiont IPY_GameWorldtpaDieRxR"tChPlayertPlayerRebornByTypeRtrebornType_SystemR$tFalseR+RFRR1RvRwR6R>( R
RKR…RRRˆt nextRoundNumR|RƒRORHRTRU((sˆE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_CrossRealmPK.pyRmys:     
  'cCs[tjddƒ}|tjƒjƒ|tdkr:dStjt|ƒt    j
|ƒdS(NR iiè( R-R.RRRBtDef_Time_LeaveR+R6tFB_State_ClosetGameWorldProcesstCloseFB(R
RR((sˆE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_CrossRealmPK.pyRn§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 RvtminRtDef_UpperLimit_DWordR#RwR"(    Rt damageValuet    tagPlayerR
RHt tagPlayerIDRKtcurPlayerDamaget    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\RdRJ((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_PlayerWinCntRRRZRR-t
GetFuncCfgR+R6RlR`( ReR\RcRdtoverTypeR
RKRJt winnerWinCntt    updWinCntRXtisOver((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 R2R4tResetPosRxRytSetHPR&t    GetProDeft GetMaxProDeft    SetProDeft SkillCommontResetAllSkillCD(RKRORHt    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(RRRRRR[RZR-R.R+R?Rt tttLeaveMapR‘R6R%RqRaRRR:R;R<R=R( ReR\RcRdR¢R
RKRYRXRRRJRS((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³RL((sˆE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_CrossRealmPK.pyR²s
  (;RŒRRŠR&R“R-R«R+RtrangeR9RARDR]R‘R/R7R>R*RlR%R’RqRaRR‡R1R RRvRwR2R4R!RRZR RWRGR^RfRgRoRhRiRpRjRkRmRnRœRŸR†RR$R`R´RµR²(((sˆE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_CrossRealmPK.pyt<module>sV              !        Q                                 A             .