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
52
53
54
55
56
57
58
59
60
61
62
63
Ùç\c@sddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z e dƒ\Z ZZZe dƒ\ZZZZZZZe dƒ\ZZZZZdZdZdZdZ d    Z!d
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/e0d„Z1d„Z2d„Z3d„Z4d„Z5d„Z6d„Z7d„Z8digd „Z9d!„Z:d"„Z;d#„Z<d$„Z=d%„Z>dS(&iÿÿÿÿNiiitFBPlayerDict_MissionIDtFBPlayerDict_MissionTypetFBPlayerDict_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.pytGetClearDevilTimeCfgHs cCs"tjƒjƒ}tj||ƒS(N(R    R
R RtGetFBLineRefreshNPC(R R((sv.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ClearDevil.pytGetClearDevilNPCCfgOscCs"tjddƒ}|j|dƒS(sͨ¹ýNPCID»ñÈ¡¶ÔÓ¦µÄ»ý·ÖtClearDevilPointii(t IpyGameDataPYtGetFuncEvalCfgtget(tnpcidt npcPointDict((sv.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ClearDevil.pytGetPointByNPCIDSscCst|ƒ}|sdS|tS(N(RtDef_IsPointType(R tFBLineStepTimeCfg((sv.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ClearDevil.pytGetIsPointFBTypeXs cCstS(N(tTrue(t    curPlayerRR ttick((sv.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ClearDevil.pytOnEnterFBEventescCs|S(N((RRtlineIdtipyEnterPosInfoR((sv.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ClearDevil.pytOnGetFBEnterPospscCstjS(N(t IPY_GameWorldt    cmeAccept(taskR((sv.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ClearDevil.pytOnChangeMapAskxsc CsL|jƒ}|jƒ}tjƒjƒ}tj|ƒ}tjƒ}|jt    j
ƒ}tj d||f|ƒtj |ƒ}|s¿tj |ƒtj|ƒtj|t    jdt    jƒn|jt    jƒ}|r8|jt    jƒ}    |jt|ƒ|jt|    ƒtj|t    jdƒtj|t    jdƒn|jƒ}
|
tkrctjt|ƒn|
tkrÞt|ƒtd|tjƒjƒ} |j t!j"dt#| dƒt$ƒ|j t!j%dt#| dƒt$ƒnY|
t&kr7t|ƒt'd|tjƒjƒ} |j t!j(dt#| dƒt$ƒnt)||| ƒdS(Ns!DoEnterFB...lineID=%s,playerLV=%siiè(*t GetPlayerIDtGetLVR    R
R RtGetRecordMapIDt    GetGameFBtNomalDictGetPropertytChConfigtDef_Player_Dict_ReqFBFuncLinetDebugLogtGetHadDelTickettSetHadDelTickettSetFBPropertyMarkt EventReportt WriteEvent_FBtDef_FBMapID_ClearDevilt CME_Log_StarttDef_Player_Dict_ReqFBMissionIDt Def_Player_Dict_ReqFBMissionTypet SetGameFBDictRRt PlayerControltNomalDictSetPropertyt    GetFBSteptFB_Step_Preparet    SetFBStepRtDef_PrepareTimet GetFBStepTickt Sync_TimeTickR#t tttAddUpTimetmaxRt tttWaitStarttFB_Step_Fightingt Def_FightTimet tttTowerTaketDoFBHelp( RRtplayerIDtplayerLVRtgameFBR t hadDelTickett fbMissionIDt fbMissionTypetfbStept notify_tick((sv.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ClearDevil.pyt    DoEnterFB€s>        ("% (%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(R    R*R;R<tErrLogR'RRR.R=RR>R?R@R#RARBRRCRG(RRRJRNR RO((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(R    R*RRRtGetGameFBDictByKeyRt
Help_scoreRtLogtDL_NPCIDtFBPlayerDict_NPCRemainCnttDL_NeedKillCnttGetJsonNPCKillListtHelp_npct Help_lineIDRR.tstrt Notify_FBHelp(RRtisEnterRJR t
totalPointthelpDicttnpcCfgtnpcDicttinfotnpcIDt    remainCnttkillCntRL((sv.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ClearDevil.pyRGÊs0     
    
cCsatjƒjƒ}|tkr+t|ƒn2|tkrDt|ƒn|tkr]t|ƒndS(N(    R    R*R;R<t__DoLogic_FB_PrepareRDt__DoLogic_FB_Fightingt FB_Step_Overt__DoLogic_FB_Over(RRN((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(RR    R*R?R>RRRRXRYR8RZR[t DL_RefreshCDtNPCCustomRefresht SetNPCRefreshtDL_RefreshMarktDL_SingleNPCCntt    DL_maxCnttDL_TotalNPCCnttProcessAllNPCRefreshtGetMapCopyPlayerManagertGetPlayerCounttGetPlayerByIndexRGR=RDtSync_Player_TimeTickR#RFRE(
RtfbCfgR RdRJtnpcInfoRgt    refreshCDt playerManagerR((sv.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ClearDevil.pyRjs,    $    
 
9  cCs?tƒ}|tjƒjƒ|tdkr1dSttƒdS(Niè(RR    R*R?REt__DoClearDevilOvertFalse(RR|((sv.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ClearDevil.pyRk%s
    $
cCsRtƒ}|tjƒjƒ|tdkr1dStj|ƒtjt    |ƒdS(Niè(
RR    R*R?t Def_LeaveTimetGameWorldProcesstCloseFBRR=t FB_Step_Close(RR|((sv.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ClearDevil.pyRm3s     $ 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_KillNPCtGetIDR    R*tGetPlayerGameFBDictByKeyRRR,tDef_PerPointValuetSetPlayerGameFBDictR.( RtaddExpt expViewTypeRHRJtexptexpPointttotalExpt updTotalExptupdExpt updExpPoint((sv.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ClearDevil.pytOnGetExpEs  
      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(R    R*R;RDtGetNPCIDRRRRRRVRRt
GetFuncCfgtminR8RRZRBRRXRYRGR€Rt
EventShelltEventRespons_FBEvent(RtcurNPCRRJRNRR tisFinishtaddPointRbtmaxPointtupdPointRhRdR}RgRL((sv.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ClearDevil.pytDoFB_Player_KillNPC`sJ         !  
 
cCsAtjƒ}|jtƒ}|tjkr=|jtdƒndS(Ni(R    R*RVRt QuestCommontDef_Mission_Type_RunFamilyR8(RRRJRM((sv.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ClearDevil.pyt OnLeaveFamily—s
 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(R    R*R,RŠRVRR.RRt Over_isPasst Over_costTimetOver_expt Over_expPointtGetJsonItemListt Over_itemInfot__SendOverInfo( Rt curMissionIDRŒt    moneyDicttitemListRJRŽRRLtcostTimet    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(R    R*R;RERR(tattackertdefenderRJ((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ƒ} |jtƒ} | s+| s+| rit|it|ƒt j6|t j6|    t j6|
t j6ƒnt jt|ƒt j t!j"|t#dƒt$|ƒ} x"| D]}t%j&|t'|ƒq§WdS(Niiè((R    R*R;Rlt GetGameWorldtGetTickRRxRyRzRƒR„RRRR'R‰RRR?R8RRVRRR©tintR£R¥R¦R¤R=R{R#t tttLeaveMapR‚RRqtCloseNPCRefreshRs(tisPassRJRRRR R|RHRŽRR­RLRMRdR}((sv.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ClearDevil.pyR€Ós:          >  cCsitjtjƒjƒƒ|tj<tjƒ|tj<tjdt    |ƒ|j
ƒƒtj ||ƒdS(Ns__SendOverInfo overDict=%s( RR)R    R
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
" (?RR    RR#RƒR˜RqR,R†R2R9R trangeRR>RER‚RsRYRtRuRvR[Rpt FB_Step_OpenR<RDRlR…RRRRRZRRRRRRRRR"R&RPRRRSRTRRGRnRjRkRmR”RŸR¢R¯R°R±R´R€R©(((sv.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_ClearDevil.pyt<module>s\                
!
                               (             %        $                7                     )