cehua_ZWJ
2019-01-30 6afaa4408f4e09e3e95dbd92f0d1cd5a1fb2942b
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
x{[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(((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Guard.pytGetGuardTimeCfgOscCs#tjtjddƒgdƒdS(NtGuardFBCageNPCIDii(RtOpenOrCloseDoorExt IpyGameDataPYt
GetFuncCfg(ttick((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Guard.pytOnOpenFBVscCstS(N(tTrue(t    curPlayertmapIDtlineIDR((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Guard.pytOnEnterFBEvent`scCs|S(N((RRtlineIdtipyEnterPosInfoR((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Guard.pytOnGetFBEnterPoskscCstjS(N(t IPY_GameWorldt    cmeAccept(taskR((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Guard.pytOnChangeMapAsksscCstjƒjt|ƒdS(N(Rt    GetGameFBt SetGameFBDictR(tgameStep((sq.\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((sq.\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((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Guard.pytOnClientStartFB¦s   %" c    Cstjƒjtƒ}|tkrtjtjƒjƒdƒ\}}|rt    j
||ddt j t j gtdtƒqntj|ƒdS(Niit showSysInfo(RRtGetGameFBDictByKeyRt Def_EndGuardRtGetFBLineRewardRR    t ItemControlertGivePlayerItemRtrptItemt rptAnyWhereRtGameWorldProcesstCloseFB(RRtsteptitemIDtgiveExp((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Guard.pytDoExitFB¸s $4 cCsdS(N((RR((sq.\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(RRRLRRt    Help_stepRt Help_npcTotalR RtGetJsonNPCKillListtintt Def_BreakCagetHelp_npct
Def_DialogR$tstrt Notify_FBHelp(RRRARUthelpDictt    cageNPCID((sq.\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((sq.\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<( RtfbCfgRRARet refreshIDListt needKillCntt    refreshIDt npcCountListtnpcIDtcountt playerManagerR((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Guard.pyRfòs8    $    
 cCs?tƒ}|tjƒjƒ|tdkr1dSttƒdS(Niè(R
RRR7R<t __DoGuardOvertFalse(RRt((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Guard.pyRgs
    $
cCsRtƒ}|tjƒjƒ|tdkr1dStj|ƒtjt    |ƒdS(Niè(
R
RRR7t Def_LeaveTimeRSRTRR5t FB_Step_Close(RRt((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Guard.pyRi*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((sq.\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 RaRLRRRR_R>(RtcurNPCRRARFRetnpcidtkillCnt((sq.\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 RRLRR_tGetGameObjTypeRtgotNPCRR(tattackertdefenderRAReRUtdefenderObjType((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Guard.pytCheckCanAttackTagObjInFBrs    !cCsDtjƒjtƒtkrdSttƒt|dƒtt    ƒdS(Ni(
RRRLRRaR RMR>R|R(Rt    isAchieve((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Guard.pytDoFB_OnAchieveTask†s 
 
cCstS(N(R(((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Guard.pytOnPlayerReborn‘scCsttƒdS(N(R|R}(R((sq.\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è(!RRR3Rht GetGameWorldtGetTicktNoneRpRqRrRSRTR
R!R7R^Rt Over_isPasst Over_costTimeRNRR    t PlayerControltAddExptOver_exptGetJsonItemListt Over_itemInfot__SendOverInfoR5RsRt tttLeaveMapR~( tisPassRARRR{RtR?tcostTimeRWtoverDictRV((sq.\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$RbR!tNotify_FB_Over(RR¯((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Guard.pyR«Ês
" (=RRR RRSRlR0R€ROR¦R‘R.R(R6R<R~tDL_RefreshMarktDL_NPCIDtDL_SingleNPCCntt    DL_maxCnttDL_TotalNPCCnttDL_NeedKillCntt DL_RefreshCDt FB_Step_OpenR4R;RhRt Def_PrepareRoR_RaRMRRRRRR
RRRRR RHRJRXRYR>RjRfRgRiRŽR–RœRžRŸR R|R«(((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Guard.pyt<module>sV            
!
            
                         '                        *                                     ,