cehua_hzl
2018-08-24 665841283fff2465f886b3dba5b8480b73daa63f
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
êÖ9[c@sçddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
e dƒ\Z Z ZZe dƒ\ZZZZZZZe dƒ\ZZZZZdZdZdZdZd    Z d
Z!dd „Z#d „Z$d „Z%d„Z&d„Z'd„Z(d„Z)d„Z*d„Z+d„Z,d„Z-e.d„Z/d„Z0d„Z1d„Z2d„Z3d„Z4d„Z5digd„Z6d„Z7d „Z8d!„Z9d"„Z:d#„Z;dS($iÿÿÿÿNiiitFBPlayerDict_MissionIDtFBPlayerDict_CostTimetFBPlayerDict_TotalPointsFBPlayerDict_NPCRemainCnt_%stFBPlayerDict_TotalExptFBPlayerDict_TotalExpPointcCs=|dkrtjƒ}ntjƒjƒ}tj||ƒS(N(tNonetFBCommontGetFBPropertyMarkt    GameWorldtGetMaptGetMapIDtGetFBLineStepTime(tlineIDtmapID((sv.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ClearDevil.pytGetClearDevilTimeCfgFs cCs"tjƒjƒ}tj||ƒS(N(RR    R
RtGetFBLineRefreshNPC(R R ((sv.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ClearDevil.pytGetClearDevilNPCCfgMscCs"tjddƒ}|j|dƒS(sͨ¹ýNPCID»ñÈ¡¶ÔÓ¦µÄ»ý·ÖtClearDevilPointii(t IpyGameDataPYtGetFuncEvalCfgtget(tnpcidt npcPointDict((sv.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ClearDevil.pytGetPointByNPCIDQscCst|ƒ}|sdS|tS(N(RtDef_IsPointType(R tFBLineStepTimeCfg((sv.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ClearDevil.pytGetIsPointFBTypeVs cCstS(N(tTrue(t    curPlayerR R ttick((sv.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ClearDevil.pytOnEnterFBEventcscCs|S(N((RR tlineIdtipyEnterPosInfoR((sv.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ClearDevil.pytOnGetFBEnterPosnscCstjS(N(t IPY_GameWorldt    cmeAccept(taskR((sv.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ClearDevil.pytOnChangeMapAskvsc Cs|jƒ}|jƒ}tjƒjƒ}tj|ƒ}tjƒ}|jt    j
ƒ}tj d||f|ƒtj |ƒ}|s¿tj |ƒtj|ƒtj|t    jdt    jƒn|jt    jƒ}|r|jt|ƒtj|t    jdƒn|jƒ}    |    tkr+tjt|ƒn|    tkr¦t|ƒtd|tjƒjƒ}
|jtj dt!|
dƒt"ƒ|jtj#dt!|
dƒt"ƒnY|    t$krÿt|ƒt%d|tjƒjƒ}
|jtj&dt!|
dƒt"ƒnt'||| ƒdS(Ns!DoEnterFB...lineID=%s,playerLV=%siiè((t GetPlayerIDtGetLVRR    R
RtGetRecordMapIDt    GetGameFBtNomalDictGetPropertytChConfigtDef_Player_Dict_ReqFBFuncLinetDebugLogtGetHadDelTickettSetHadDelTickettSetFBPropertyMarkt EventReportt WriteEvent_FBtDef_FBMapID_ClearDevilt CME_Log_StarttDef_Player_Dict_ReqFBMissionIDt SetGameFBDictRt PlayerControltNomalDictSetPropertyt    GetFBSteptFB_Step_Preparet    SetFBStepRtDef_PrepareTimet GetFBStepTickt Sync_TimeTickR"t tttAddUpTimetmaxRt tttWaitStarttFB_Step_Fightingt Def_FightTimet tttTowerTaketDoFBHelp( RRtplayerIDtplayerLVR tgameFBR t hadDelTickett fbMissionIDtfbStept notify_tick((sv.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ClearDevil.pyt    DoEnterFB~s8        ("% (%cCsôtjƒ}|jƒ}|tkr>tjd|jƒƒdStjƒ}tjd||jƒƒtj    t|ƒt
|ƒt d|tjƒj ƒ}|j tjdt|dƒtƒ|j tjdt|dƒtƒt||tƒdS(Ns5ǰ¶ËÇëÇóÕýʽ¿ªÊ¼¸±±¾, µ«¸±±¾ÒѾ­¿ªÊ¼ÁË£¬²»¿ÉÖØ¸´¿ªÊ¼!s0ǰ¶Ë³¡¾°ÐãÒѲ¥·ÅÍê±Ï£¬ÇëÇóÕýʽ¿ªÊ¼¸±±¾!lineID=%sièi(RR)R9R:tErrLogR&RRR-R;RR<R=R>R"R?R@RRARE(RRRHRKR RL((sv.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ClearDevil.pytOnClientStartFB£s    (""cCsdS(N((RR((sv.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ClearDevil.pytDoExitFB·scCsdS(N((RR((sv.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ClearDevil.pytDoPlayerLeaveFB¾scCs8tjƒ}tjƒ}t|ƒrF|jtƒ}i|tj6}n›t|ƒ}|smtj    d|ƒdSi}xR|D]J}    |    t
}
|jt |
ƒ} |r¬d} n|    t | } | ||
<qzWitj |ƒtj6}tjƒ|tj<|jtƒ} | |d<tjdt|ƒƒtj||ƒdS(NsûÓиÃÏß·ˢ¹ÖÅäÖàlineID=%sit    missionIDs DoFBHelp %s(RR)RRRtGetGameFBDictByKeyRt
Help_scoreRtLogtDL_NPCIDtFBPlayerDict_NPCRemainCnttDL_NeedKillCnttGetJsonNPCKillListtHelp_npct Help_lineIDRR-tstrt Notify_FBHelp(RRtisEnterRHR t
totalPointthelpDicttnpcCfgtnpcDicttinfotnpcIDt    remainCnttkillCntRJ((sv.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ClearDevil.pyREÅs0     
    
cCsatjƒjƒ}|tkr+t|ƒn2|tkrDt|ƒn|tkr]t|ƒndS(N(    RR)R9R:t__DoLogic_FB_PrepareRBt__DoLogic_FB_Fightingt FB_Step_Overt__DoLogic_FB_Over(RRK((sv.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ClearDevil.pyt    OnProcessês      c
Cs[tƒ}|tjƒjƒ|tdkr1dStjƒ}t|ƒ}|sdtjd|ƒdStjƒ}xo|D]g}|t    }|j
t ||t ƒ|t }tj|t||tfg|t|td|ƒqwWtj|ƒtjƒ}|jƒdkr,|jdƒ}    t|    |ƒntjt|ƒtjtj|tdƒdS(NièsûÓиÃÏß·ˢ¹ÖÅäÖàlineID=%st refreshTicki(RRR)R=R<RRRRURVR6RWRXt DL_RefreshCDtNPCCustomRefresht SetNPCRefreshtDL_RefreshMarktDL_SingleNPCCntt    DL_maxCnttDL_TotalNPCCnttProcessAllNPCRefreshtGetMapCopyPlayerManagertGetPlayerCounttGetPlayerByIndexRER;RBtSync_Player_TimeTickR"RDRC(
RtfbCfgR RaRHtnpcInfoRdt    refreshCDt playerManagerR((sv.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ClearDevil.pyRgüs,    $    
 
9  cCs?tƒ}|tjƒjƒ|tdkr1dSttƒdS(Niè(RRR)R=RCt__DoClearDevilOvertFalse(RRy((sv.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ClearDevil.pyRh s
    $
cCsRtƒ}|tjƒjƒ|tdkr1dStj|ƒtjt    |ƒdS(Niè(
RRR)R=t Def_LeaveTimetGameWorldProcesstCloseFBRR;t FB_Step_Close(RRy((sv.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ClearDevil.pyRj.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_KillNPCtGetIDRR)tGetPlayerGameFBDictByKeyRRR+tDef_PerPointValuetSetPlayerGameFBDictR-( RtaddExpt expViewTypeRFRHtexptexpPointttotalExpt updTotalExptupdExpt updExpPoint((sv.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ClearDevil.pytOnGetExp@s  
      cCs°tjƒ}|jƒ}|tkr(dS|jƒ}tjƒ}t}t|ƒrÁt    |ƒ}|shdS|j
t ƒ}    t j dƒ}
t|    ||
ƒ} |jt | ƒ| |
kr`t}q`nŸ|j
t|ƒ} |jt|td| dƒƒt|ƒ} | stjd|ƒdSt}x;| D]3}|t}|j
t|ƒ} | r)t}Pq)q)Wt||ƒ|r¬ttƒ|j
tƒ}|r¬tj|d|ƒq¬ndS(NRiisûÓиÃÏß·ˢ¹ÖÅäÖàlineID=%sscleardevil_pass_%s(RR)R9RBtGetNPCIDRRR~RRRSRRt
GetFuncCfgtminR6RRWR@RRURVRER}Rt
EventShelltEventRespons_FBEvent(RtcurNPCRRHRKRR tisFinishtaddPointR_tmaxPointtupdPointReRaRzRdRJ((sv.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ClearDevil.pytDoFB_Player_KillNPC[sJ         !  
 
ic CsÕtjƒ}|tj}|tj}|jtƒ}tjd|||||fƒ||kredS|jtƒ}    i}
d|
tj    <|    |
tj
<||
tj <||
tj <tj |ƒ|
tj<t||
ƒdS(NsfÈÎÎñרÓÃ,´¥·¢Ê¼þ£¨¸±±¾ÄÚÍê³ÉijÈÎÎñ£© curMissionID=%s, fbMissionID=%s, exp=%s,moneyDict=%s,itemList=%si(RR)R+R‡RSRR-RRt Over_isPasst Over_costTimetOver_expt Over_expPointtGetJsonItemListt Over_itemInfot__SendOverInfo( Rt curMissionIDR‰t    moneyDicttitemListRHR‹RŒRJtcostTimet    awardDict((sv.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ClearDevil.pytDoFB_OnFinishRunAroundTask“s           cCstS(N(R(((sv.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ClearDevil.pytOnPlayerReborn­scCsdS(N((R((sv.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ClearDevil.pyt DoPlayerDeadµscCs&tjƒ}|jƒtkr"tStS(N(RR)R9RCR~R(tattackertdefenderRH((sv.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ClearDevil.pytCheckCanAttackTagObjInFB½s cCs³tjƒ}|jƒtkr"dStjƒjƒ}d}tjƒ}|jƒdkrj|j    dƒ}n|st
j |ƒdSt j ƒ}tƒ}tjƒ}|jƒ}|j|tƒ}|j|tƒ}    |tjƒjƒ}
|jt|
ƒ|jtƒ} | s| rSt|it|ƒt j6|t j6|    t j6|
t j6ƒnt jt|ƒt jt j!|t"dƒt#|ƒ} x"| D]} t$j%| t&|ƒq‘WdS(Niiè('RR)R9Rit GetGameWorldtGetTickRRuRvRwR€RRRRR&R†RRR=R6RRSRR£tintRRŸR RžR;RxR"t tttLeaveMapRRRntCloseNPCRefreshRp(tisPassRHRRR|R RyRFR‹RŒR§RJRaRz((sv.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ClearDevil.pyR}Äs8          >  cCsitjtjƒjƒƒ|tj<tjƒ|tj<tjdt    |ƒ|j
ƒƒtj ||ƒdS(Ns__SendOverInfo overDict=%s( RR(RR    R
tOver_dataMapIDRt Over_lineIDR-R\R&tNotify_FB_Over(RtoverDict((sv.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ClearDevil.pyR£ìs
" (<RRRR"R€R•RnR+RƒR1R7trangeRR<RCRRpRVRqRrRsRXRmt FB_Step_OpenR:RBRiR‚RRRRWRRRRRRRRR!R%RMRORPRQR~RERkRgRhRjR‘RœR©RªR«R®R}R£(((sv.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ClearDevil.pyt<module>sV               
!
                               %             %        $                8                (