cehua-HWJ35
2019-03-07 65d21adcb8f585c123fca5946270d36ff10280e4
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
§ú€\c@síddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z e dƒ\Z ZZe dƒ\ZZZZZZZe dƒ\ZZZZZe dƒ\ZZZZZ dZ!dZ"dZ#dZ$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„Z4d„Z5d„Z6d„Z7d„Z8d„Z9d„Z:d„Z;d „Z<dS(!iÿÿÿÿNiiitFBPlayerDict_GameSteptFBPlayerDict_NPCKillCnttFBPlayerDict_NPCNeedKillCnttFBPlayerDict_TotalExptFBPlayerDict_TotalExpPointcCstjtjƒjƒdƒS(Ni(tFBCommontGetFBLineStepTimet    GameWorldtGetMaptGetMapID(((sE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Guard.pytGetGuardTimeCfgOscCs#tjtjddƒgdƒdS(NtGuardFBCageNPCIDii(RtOpenOrCloseDoorExt IpyGameDataPYt
GetFuncCfg(ttick((sE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Guard.pytOnOpenFBVscCstS(N(tTrue(t    curPlayertmapIDtlineIDR((sE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Guard.pytOnEnterFBEvent`scCs|S(N((RRtlineIdtipyEnterPosInfoR((sE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Guard.pytOnGetFBEnterPoskscCstjS(N(t IPY_GameWorldt    cmeAccept(taskR((sE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Guard.pytOnChangeMapAsksscCstjƒjt|ƒdS(N(Rt    GetGameFBt SetGameFBDictR(tgameStep((sE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Guard.pytSetMap_Guard_GameStepvsc Csú|jƒ}|jƒ}tjƒjƒ}tj|ƒ}tjƒ}tjd||ƒtj    |ƒ}|stj
|ƒ|j ƒ}xXt d|j ƒƒD]A}|j|ƒ}    |    jƒdkr|    jdƒ|    jƒqqWtj|tjdtjƒtjd|ƒdS|jƒ}
|
tkr=tjt|ƒn|
tkr“tƒtd|tjƒjƒ} |jtjdt | dƒt!ƒnV|
t"krétƒt#d|tjƒjƒ} |jtj$dt | dƒt!ƒnt%||ƒdS(NsDoEnterFB...,playerLV=%sis1´Ë¸±±¾¸Õ½øÈëʱ²»Ö±½Ó¿ªÊ¼£¬ÐèµÈǰ¶Ë֪ͨ¿ªÊ¼²Å¿ªÊ¼!iè(&t GetPlayerIDtGetLVRRR    RtGetRecordMapIDRtDebugLogtGetHadDelTickettSetHadDelTickettGetSkillManagertranget GetSkillCounttGetSkillByIndext GetRemainTimet SetRemainTimet
Sync_Skillt EventReportt WriteEvent_FBtChConfigtDef_FBMapID_Guardt CME_Log_Startt    GetFBSteptFB_Step_Preparet    SetFBStepR
tDef_PrepareTimet GetFBStepTickt Sync_TimeTickRt tttWaitStarttmaxRtFB_Step_Fightingt Def_FightTimet tttTowerTaketDoFBHelp( RRtplayerIDtplayerLVRtgameFBt hadDelTickett skillManagertitcurSkilltfbStept notify_tick((sE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Guard.pyt    DoEnterFBs:         %% %% cCs¼tjƒ}|jƒ}|tkr>tjd|jƒƒdStjd|jƒƒtjt|ƒt    ƒt
d|tjƒj ƒ}|j t jdt|dƒtƒt||ƒdS(Ns5ǰ¶ËÇëÇóÕýʽ¿ªÊ¼¸±±¾, µ«¸±±¾ÒѾ­¿ªÊ¼ÁË£¬²»¿ÉÖØ¸´¿ªÊ¼!s'ǰ¶Ë³¡¾°ÐãÒѲ¥·ÅÍê±Ï£¬ÇëÇóÕýʽ¿ªÊ¼¸±±¾!ièi(RRR3R4tErrLogR!R$RR5R
R6R7R8RR9R:RR>(RRRARFRG((sE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Guard.pytOnClientStartFB¦s   %" cCs‡tjƒjtƒ}|tkrvtjtjƒjƒdƒ\}}|rvt    j
||ddt j t j gƒqvntj|ƒdS(Nii(RRtGetGameFBDictByKeyRt Def_EndGuardRtGetFBLineRewardRR    t ItemControlertGivePlayerItemRtrptItemt rptAnyWheretGameWorldProcesstCloseFB(RRtsteptitemIDtgiveExp((sE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Guard.pytDoExitFB¸s $+ cCsdS(N((RR((sE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Guard.pytDoPlayerLeaveFBÇscCs·tjƒ}|jtƒ}i|tj6|jtƒtj6}tj    dƒ}tj
it |t kƒ|6ƒ|tj <t |tkƒ|d<tjdt|ƒƒtj||ƒdS(NR ttalkOvers DoFBHelp %s(RRRKRRt    Help_stepRt Help_npcTotalR RtGetJsonNPCKillListtintt Def_BreakCagetHelp_npct
Def_DialogR$tstrt Notify_FBHelp(RRRARTthelpDictt    cageNPCID((sE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Guard.pyR>Îs #)cCsatjƒjƒ}|tkr+t|ƒn2|tkrDt|ƒn|tkr]t|ƒndS(N(    RRR3R4t__DoLogic_FB_PrepareR;t__DoLogic_FB_Fightingt FB_Step_Overt__DoLogic_FB_Over(RRF((sE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Guard.pyt    OnProcessàs      c Cs•tƒ}|tjƒjƒ|tdkr1dStjtjddƒgdƒtj    ƒj
ƒ}tjƒ}tjdƒ}tj |ƒ}d}x\|D]T}t j |ƒ}|sºq™nx0|D](\}    }
|    |krßqÁn||
7}qÁWq™W|jt|ƒx|D]}t j|ƒqWttƒtjƒ} | jƒdkrf| jdƒ} t| |ƒntjt|ƒtjtj|tdƒdS(NièR iii(R
RRR7R6RR R RRR    tGetFBLineRefreshNPCtNPCCustomRefreshtGetNPCRefreshCountListRRtSetNPCRefreshByIDR tDef_KillBandittGetMapCopyPlayerManagertGetPlayerCounttGetPlayerByIndexR>R5R;tSync_Player_TimeTickRR=R<( RtfbCfgRRARdt refreshIDListt needKillCntt    refreshIDt npcCountListtnpcIDtcountt playerManagerR((sE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Guard.pyReòs8    $    
 cCs?tƒ}|tjƒjƒ|tdkr1dSttƒdS(Niè(R
RRR7R<t __DoGuardOvertFalse(RRs((sE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Guard.pyRfs
    $
cCsRtƒ}|tjƒjƒ|tdkr1dStj|ƒtjt    |ƒdS(Niè(
R
RRR7t Def_LeaveTimeRRRSRR5t FB_Step_Close(RRs((sE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Guard.pyRh*s     $ c CsË|tjkrdS|jƒ}tjƒ}|j|tƒ}|j|tƒ}|tj    |}||}|tj    }    |tj    }
|j
|t|    ƒ|j
|t|
ƒtj d|||f|ƒdS(Ns/OnGetExp() totalExp=%s,addExp=%s,updTotalExp=%s( t ShareDefinetDef_ViewExpType_KillNPCtGetIDRRtGetPlayerGameFBDictByKeyRRR0tDef_PerPointValuetSetPlayerGameFBDictR$( RtaddExpt expViewTypeR?RAtexptexpPointttotalExpt updTotalExptupdExpt updExpPoint((sE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Guard.pytOnGetExp<s  
      cCsÐtjƒ}|jƒ}|tkr(dStjdƒ}|jƒ}|sMdS||krvtj|dƒt    t
ƒnI|j t ƒ}|j t |dƒ|d|j tƒkr¿t    tƒnt||ƒdS(NR t guardfbtalki(RRR3R;R RtGetNPCIDt
EventShelltEventRespons_FBEventR R`RKRRRR^R>(RtcurNPCRRARFRdtnpcidtkillCnt((sE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Guard.pytDoFB_Player_KillNPCWs"        cCstjƒ}|jƒtkr"tStjƒ}tjdƒ}|jtƒ}|t    krŒ|j
ƒ}|t j krŒ|j ƒ|krŒtSntS(NR (RRR3R;R|R RRKRR^tGetGameObjTypeRtgotNPCRR(tattackertdefenderRARdRTtdefenderObjType((sE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Guard.pytCheckCanAttackTagObjInFBrs    !cCsDtjƒjtƒtkrdSttƒt|dƒtt    ƒdS(Ni(
RRRKRR`R RLR>R{R(Rt    isAchieve((sE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Guard.pytDoFB_OnAchieveTask†s 
 
cCstS(N(R(((sE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Guard.pytOnPlayerReborn‘scCsttƒdS(N(R{R|(R((sE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Guard.pyt DoPlayerDead™s
c Cs•tjƒ}|jƒtkr"dStjƒjƒ}d}tjƒ}|jƒdkrj|j    dƒ}n|st
j |ƒdSt ƒ}tjƒ}|j ƒ}|tjƒjƒ}d}it|ƒtj6|tj6}    |rYtjtjƒjƒdƒ\}
}|r4tj|ƒj|ƒ||    tj<n|
rYtj|
gƒ|    tj<qYnt||    ƒtjt|ƒtjtj|t dƒdS(Niiè(!RRR3Rgt GetGameWorldtGetTicktNoneRoRpRqRRRSR
R!R7R]Rt Over_isPasst Over_costTimeRMRR    t PlayerControltAddExptOver_exptGetJsonItemListt Over_itemInfot__SendOverInfoR5RrRt tttLeaveMapR}( tisPassRARRRzRsR?tcostTimeRVtoverDictRU((sE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Guard.pyR{žs8          $ cCsitjtjƒjƒƒ|tj<tjƒ|tj<tjdt    |ƒ|j
ƒƒtj ||ƒdS(Ns__SendOverInfo overDict=%s( RR#RRR    tOver_dataMapIDtGetFBPropertyMarkt Over_lineIDR$RaR!tNotify_FB_Over(RR®((sE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Guard.pyRªÊs
" (=RRR RRRRkR0RRNR¥RR.R(R6R<R}tDL_RefreshMarktDL_NPCIDtDL_SingleNPCCntt    DL_maxCnttDL_TotalNPCCnttDL_NeedKillCntt DL_RefreshCDt FB_Step_OpenR4R;RgR~t Def_PrepareRnR^R`RLRRRRRR
RRRRR RHRJRWRXR>RiReRfRhRR•R›RRžRŸR{Rª(((sE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Guard.pyt<module>sV            
!
            
                         '                        *                                     ,