xdh
2018-12-27 7afe060ef6aa41433240d6e39cbdc96eb485d401
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
í‹#\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„Z3e4d„Z5d „Z6d!„Z7d"„Z8d#„Z9dS($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     1cCsdS(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__GetTimeoutWinerInfoRRRt__DoFBPKAllOvertDef_OverType_LackPlayer(R
RRtwinnerR\tlosertloserIDRJ((sˆE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_CrossRealmPK.pyR`Ý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]RhRRRRitDef_OverType_PlayerExitR( R
RKRTRUtplayerLeaveTickAtplayerLeaveTickBRRRkR\RlRmRJ((sˆE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_CrossRealmPK.pyRaés$  c
Cs×d    \}}}}tjƒ}|jƒ}tjƒ}|jtdƒ}|jtdƒ}    |tkrü|jƒdkrüg}
xÆ||    gD]¸} |j    | ƒ} |j
| t ƒ} |j
| t ƒ}||}| sÜdn    | j ƒ}| sôdn    | jƒ}|
j| |||| | gƒtjd| |||||f| ƒqW|
jdtƒtjdt|
ƒƒt|
ƒdkr|
ddnd}t|
ƒdkr¶|
ddnd}|sÈdn    |jƒ}|sàdn    |jƒ}||||fSxZt|jƒƒD]F}|j|ƒ} | dks| jƒrBqn| }| jƒ}PqW|s¯|jt|ƒ}|jt|    ƒ}||kr |}|    }qÇ|    }|}n||krÁ|    n|}||||fS(
s¢ Ê±¼ä³¬Ê±£¬»ñÈ¡»ñʤµÄÍæ¼Ò
                    Õ½¶·½×¶ÎÓÐÁ½¸öÍæ¼ÒʱÓÅÏȱȽÏÊä³ö
                    ÆäËûÇé¿öÔòÔÚÏßÍæ¼Ò»ñʤ£¬Èç¹ûûÓÐÍæ¼ÒÔÚÏߣ¬Ôò×î³ÙÀëÏߵĻñʤ
    iiis>PK³¬Ê±: pvpDamge=%s,pvpDamTick=%s,tick=%s,sortTick=%s,HP=%s/%streverses"PK³¬Ê±, ½øÈë½áËã!playerInfoList=%siÿÿÿÿN(NiNi(tNoneRRRRRR1R*RtFindPlayerByIDR tFBPDict_PVPDamagetFBPDict_PVPDamUpdTicktGetHPtGetMaxHPR[RtsortRR:R=RRRtIsEmptyR(R
RkR\RlRmRKRLtcopyMapPlayerManagerRTRUtplayerInfoListRHROt    pvpDamaget
pvpDamTicktsortTicktcurHPtcurMaxHPtiRoRp((sˆE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_CrossRealmPK.pyRhsT   
    !&&          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,RGRRRRRrRyRF(R
RRthelpDictRzRRO((sˆE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_CrossRealmPK.pyRb>s $    
 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.RRRBRDRhRRRt__DoLogicAddPlayerWinCnttDef_OverType_TimeOut(R
RRRkR\RlRmRJ((sˆE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_CrossRealmPK.pyRcUs$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.RARRRRRRRRrRyRR#R!tGetPlayerActiont IPY_GameWorldtpaDieRvR"tChPlayertPlayerRebornByTypeRtrebornType_SystemR$tFalseR+RFRR1RtRuR6R>( R
RKRƒRRR†t nextRoundNumRzRRORHRTRU((sˆE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_CrossRealmPK.pyReas:     
  '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.pyRf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 RttminRtDef_UpperLimit_DWordR#RuR"(    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\RmRJ((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+R6RdRi( RkR\RlRmtoverTypeR
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 R2R4tResetPosRvRwtSetHPR&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%RjRnRRR:R;R<R=R( RkR\RlRmR R
RKRYRXRRRJRS((sˆE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_CrossRealmPK.pyRiÞ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.pytDoCanAttackTeamerùscCs3tjƒ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*RdR%RRjRnR›R…R1RžRRtRuR2R4R!RRZR RWRGR^R_RgR`RaRhRbRcReRfRšRR„RR$RiR²R³R°(((sˆE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_CrossRealmPK.pyt<module>sT              !        Q                             =             .