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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
o<\c@s,ddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z ddl Z ddlZedƒ\ZZZZedƒ\ZZZZZZZedƒ\ZZZZZdZ dZ!dZ"dZ#d    Z$d
Z%d Z&d Z'dd „Z)d„Z*d„Z+d„Z,d„Z-d„Z.d„Z/d„Z0d„Z1d„Z2d„Z3e4d„Z5d„Z6d„Z7d„Z8d„Z9d„Z:d„Z;digd „Z<d!„Z=d"„Z>d#„Z?d$„Z@d%„ZAd&„ZBdS('iÿÿÿÿNiiitFBPlayerDict_MissionIDtFBPlayerDict_CostTimetFBPlayerDict_TotalPointsFBPlayerDict_NPCRemainCnt_%stFBPlayerDict_TotalExptFBPlayerDict_TotalExpPointtFBPlayerDict_LeveltFBPlayerDict_MaxLevelcCs=|dkrtjƒ}ntjƒjƒ}tj||ƒS(N(tNonetFBCommontGetFBPropertyMarkt    GameWorldtGetMaptGetMapIDtGetFBLineStepTime(tlineIDtmapID((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MagicWeapon.pytGetClearDevilTimeCfgJs cCsqtjƒjtƒ}|rOtjdi|d6|d6ƒ}|sEgS|jƒStjƒjƒ}t    j
||ƒS(Nt MagicWeaponFBtLineIDtLevel( R
t    GetGameFBtGetGameFBDictByKeyRt IpyGameDataPYtGetIpyGameDataByConditiont GetRefreshNPCR R RtGetFBLineRefreshNPC(RtleveltipyDataR((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MagicWeapon.pytGetClearDevilNPCCfgQs 
cCs"tjddƒ}|j|dƒS(sͨ¹ýNPCID»ñÈ¡¶ÔÓ¦µÄ»ý·ÖtClearDevilPointii(RtGetFuncEvalCfgtget(tnpcidt npcPointDict((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MagicWeapon.pytGetPointByNPCID]scCst|ƒ}|sdS|tS(N(RtDef_IsPointType(RtFBLineStepTimeCfg((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MagicWeapon.pytGetIsPointFBTypecs cCstS(N(tTrue(t    curPlayerRRttick((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MagicWeapon.pytOnEnterFBEventqscCs|S(N((R'RtlineIdtipyEnterPosInfoR(((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MagicWeapon.pytOnGetFBEnterPos|scCstjS(N(t IPY_GameWorldt    cmeAccept(taskR(((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MagicWeapon.pytOnChangeMapAsk„scCs7|jƒ}|jƒ}tjƒjƒ}tj|ƒ}tjƒ}|jt    j
ƒ}d \}}t j di|d6t ƒ}    |    rü|    djƒ}
|jt    j|
ƒ}|    djƒ}||krïtjd||fƒtj|ƒdS|d7}ntjd|||f|ƒtj|ƒ} | s„|jt|ƒ|jt|ƒtj|ƒtj|ƒtj||dt    jƒn|jt    jƒ} | rÅ|jt| ƒtj |t    jdƒn| rt j di|d    6|d6d
t!ƒr||krtjd |ƒdS|j"ƒ} | t#kr=tj$t#|ƒn| t#kr¸t%|ƒt&d |tjƒj'ƒ}|j(t)j*dt+|dƒt ƒ|j(t)j,dt+|dƒt ƒnj| t-krt%|ƒt.d |tjƒj'ƒ}|j(t)j/dt+|dƒt ƒntj|ƒdSt0||| ƒdS(NiRRiÿÿÿÿs9DoEnterFB ÒÑͨ¹Ø¸ÃÏß·×î´ó¹Ø¿¨£¡£¡ lineID=%s, maxLevel=%sis+DoEnterFB...lineID=%s,playerLV=%s, level=%stNPCShowtMapIDt    isLogNones3·¨±¦ÌôÕ½¸Õ½øÈëʱ²»Ö±½Ó¿ªÊ¼£¬ÐèµÈǰ¶Ë֪ͨ¿ªÊ¼²Å¿ªÊ¼!iè(ii(1t GetPlayerIDtGetLVR
R R RtGetRecordMapIDRtNomalDictGetPropertytChConfigtDef_Player_Dict_ReqFBFuncLineRRR&tGetMWIDtDef_PDict_MWFBPassLeveltGetLeveltLogt PlayerControlt PlayerLeaveFBtDebugLogtGetHadDelTickett SetGameFBDictRRtSetHadDelTickettSetFBPropertyMarkt EventReportt WriteEvent_FBt CME_Log_StarttDef_Player_Dict_ReqFBMissionIDRtNomalDictSetPropertytFalset    GetFBSteptFB_Step_Preparet    SetFBStepRtDef_PrepareTimet GetFBStepTickt Sync_TimeTickR-t tttAddUpTimetmaxt tttWaitStarttFB_Step_Fightingt Def_FightTimet tttTowerTaketDoFBHelp(R'R(tplayerIDtplayerLVRtgameFBRRtmaxLevelt ipyDataListtmwIDt hadDelTickett fbMissionIDtfbStept notify_tick((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MagicWeapon.pyt    DoEnterFBŒs^         
2   ("% (% 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
RRKRLtErrLogR4RR    R@RMRRNRORPR-RQRRR&RSRW(R'R(RZR`RRa((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MagicWeapon.pytOnClientStartFBÐs    (""cCsdS(N((R'R(((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MagicWeapon.pytDoExitFBåscCsdS(N((R'R(((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MagicWeapon.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
RRR    R%RRt
Help_scoreRR=tDL_NPCIDtFBPlayerDict_NPCRemainCnttDL_NeedKillCnttGetJsonNPCKillListtHelp_npct Help_lineIDRR@tstrt Notify_FBHelp(R'R(tisEnterRZRt
totalPointthelpDicttnpcCfgtnpcDicttinfotnpcIDt    remainCnttkillCntR_((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MagicWeapon.pyRWùs0     
    
cCsatjƒjƒ}|tkr+t|ƒn2|tkrDt|ƒn|tkr]t|ƒndS(N(    R
RRKRLt__DoLogic_FB_PrepareRTt__DoLogic_FB_Fightingt FB_Step_Overt__DoLogic_FB_Over(R(R`((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MagicWeapon.pyt    OnProcesss      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ƒdkrj|jdƒ}    |    jƒdkrGtj|    tj|ƒn|    j|    jƒƒt|    |ƒntj t!|ƒtj"t#j$|t%dƒdS(NièsûÓиÃÏß·ˢ¹ÖÅäÖàlineID=%st refreshTicki(&RR
RRORNRR    RR=RiRBRjRkt DL_RefreshCDtNPCCustomRefresht SetNPCRefreshtDL_RefreshMarktDL_SingleNPCCntt    DL_maxCnttDL_TotalNPCCnttProcessAllNPCRefreshtGetMapCopyPlayerManagertGetPlayerCounttGetPlayerByIndextGetHPtChPlayertPlayerRebornByTypeR8trebornType_SystemtSetHPtGetMaxHPRWRMRTtSync_Player_TimeTickR-RVRU(
R(tfbCfgRRtRZtnpcInfoRwt    refreshCDt playerManagerR'((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MagicWeapon.pyRz2s2    $    
 
9  cCs?tƒ}|tjƒjƒ|tdkr1dSttƒdS(Niè(RR
RRORUt__DoClearDevilOverRJ(R(R’((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MagicWeapon.pyR{Zs
    $
cCs5tƒ}|tjƒjƒ|tdkr1dSdS(Niè(RR
RROt Def_LeaveTime(R(R’((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MagicWeapon.pyR}hs    $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
RtGetPlayerGameFBDictByKeyRRR8tDef_PerPointValuetSetPlayerGameFBDictR@( R'taddExpt expViewTypeRXRZtexptexpPointttotalExpt updTotalExptupdExpt updExpPoint((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MagicWeapon.pytOnGetExp{s  
      cCs3tjƒ}|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)W|r"ttƒ|j
tƒ}|rœtj|d|ƒn|j
tƒ}tj|tjd|d|gƒ|r"t jdi|d6|d6ƒ}|r|j ƒ}t!j"|||ƒqq"nt#||ƒdS(    NRiisûÓиÃÏß·ˢ¹ÖÅäÖàlineID=%sscleardevil_pass_%sRRR($R
RRKRTtGetNPCIDRR    RJR%R"RRRt
GetFuncCfgtminRBR&RjRRRR=RiR–Rt
EventShelltEventRespons_FBEventRt PlayerSuccesstDoAddSuccessProgressR˜tSuccType_PassWagicWeaponRR:tPlayerMagicWeapontUptateMWFBPasslvRW(R'tcurNPCR(RZR`R RtisFinishtaddPointRrtmaxPointtupdPointRxRtR“RwR_RRR]((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MagicWeapon.pytDoFB_Player_KillNPC–sX         !  
 
#   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
RR8RœRRR@RRt Over_isPasst Over_costTimetOver_expt Over_expPointtGetJsonItemListt Over_itemInfot__SendOverInfo( R't curMissionIDRžt    moneyDicttitemListRZR R¡R_tcostTimet    awardDict((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MagicWeapon.pytDoFB_OnFinishRunAroundTaskÔs           cCstS(N(R&(((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MagicWeapon.pytOnPlayerRebornïscCsttƒdS(N(R–RJ(R'((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MagicWeapon.pyt DoPlayerDeadøs
cCs&tjƒ}|jƒtkr"tStS(N(R
RRKRURJR&(tattackertdefenderRZ((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MagicWeapon.pytCheckCanAttackTagObjInFBs c
Cs tjƒ}|jƒ}|tkr(dS|jtƒ}|jtƒ}|dks^|dkrbdS||krrdS|jt|dƒ|jƒ}t    j
t |ƒt    j ƒ}    |d|krût jditjd6|    d6dtƒrûtjd|ƒdSt||ƒdS(NiiR1R2RR3s= ¸±±¾ÐÐΪ ·¨±¦ÌôÕ½¸Õ½øÈëʱ²»Ö±½Ó¿ªÊ¼£¬ÐèµÈǰ¶Ë֪ͨ¿ªÊ¼²Å¿ªÊ¼!(R
RRKR|RRRRBRšRRMt FB_Step_OpenR    RRR8tDef_FBMapID_MagicWeaponRJR@Rd(
R't
actionTypet
actionInfoR(RZR`RR[RXR((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MagicWeapon.pyt
DoFBActions&      9 cCs^tjƒ}|jƒtkr"dStjƒjƒ}d}tjƒ}|jƒdkrj|j    dƒ}n|st
j |ƒdSt ƒ}tjƒ}|j ƒ}|j|tƒ}|j|tƒ}|tjƒjƒ}    |jt|    ƒ|jtƒ}
| s    |
rGt|it|ƒtj6|tj6|tj6|    tj6ƒntjt|ƒtjtj |t!dƒtj"ƒ} t#| ƒ} x"| D]} t$j%| t&|ƒq‘W|rÚt'j(|t)j*dt)j+ddƒn| t,j-ddƒkrZ|sA|j.ƒ rW|j/t)j0ƒ rWt1j2|t)j0dƒt3j4|ƒqWqZt1j2|t)j0dƒndS(NiièitFirstGoldTryItemi(5R
RRKR|t GetGameWorldtGetTickRRˆR‰RŠtGameWorldProcesstCloseFBRR4R›RRRORBRRRR½tintRR·R¹RºR¸RMR‘R-t tttLeaveMapR—R    RRtCloseNPCRefreshRƒRERFR8RÊt CME_Log_EndRR¨tGetChangeCoinPointTotalR7tDef_PDict_FirstGoldTryR>RItPlayerGoldGifttSync_FirstGoldInfo(tisPassRZR(R'R•R’RXR R¡RÁR_RRtR“((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MagicWeapon.pyR–&sH         >   % cCs…tjtjƒjƒƒ|tj<tjƒ|tj<tjƒj    t
ƒ|tj <tj dt |ƒ|jƒƒtj||ƒdS(Ns__SendOverInfo overDict=%s(RR6R
R R tOver_dataMapIDR    t Over_lineIDRRRt
Over_wheelR@RoR4tNotify_FB_Over(R'toverDict((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MagicWeapon.pyR½Ys " (CRR
RR-RÑRªRR8R˜R¬R>RERÙR¯RŒtrangeR#RNRUR—RƒRiR„R…R†RkR€RÉRLRTR|t FB_Step_CloseRRRRjRRRRRRRR"R%R)R,R0RbRdReRfRJRWR~RzR{R}R¦R¶RÃRÄRÅRÈRÍR–R½(((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MagicWeapon.pyt<module>sd               
!                                   D              %        (                >                             3