cehua_wcy
2018-08-27 c6f03d29b8c78ea2298276ddb808bd2289baa9b3
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
x{[c@sÿddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z e dƒ\ZZZZe dƒ\ZZZZZZZe dƒ\ZZZZZdZdZdZ dZ!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„Z7digd„Z8d„Z9d „Z:d!„Z;d"„Z<d#„Z=dS($iÿÿÿÿNiiitFBPlayerDict_MissionIDtFBPlayerDict_CostTimetFBPlayerDict_TotalPointsFBPlayerDict_NPCRemainCnt_%stFBPlayerDict_TotalExptFBPlayerDict_TotalExpPointcCs=|dkrtjƒ}ntjƒjƒ}tj||ƒS(N(tNonetFBCommontGetFBPropertyMarkt    GameWorldtGetMaptGetMapIDtGetFBLineStepTime(tlineIDtmapID((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MagicWeapon.pytGetClearDevilTimeCfgHs cCs"tjƒjƒ}tj||ƒS(N(RR    R
RtGetFBLineRefreshNPC(R R ((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MagicWeapon.pytGetClearDevilNPCCfgOscCs"tjddƒ}|j|dƒS(sͨ¹ýNPCID»ñÈ¡¶ÔÓ¦µÄ»ý·ÖtClearDevilPointii(t IpyGameDataPYtGetFuncEvalCfgtget(tnpcidt npcPointDict((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MagicWeapon.pytGetPointByNPCIDSscCst|ƒ}|sdS|tS(N(RtDef_IsPointType(R tFBLineStepTimeCfg((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MagicWeapon.pytGetIsPointFBTypeXs cCstS(N(tTrue(t    curPlayerR R ttick((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MagicWeapon.pytOnEnterFBEventescCs|S(N((RR tlineIdtipyEnterPosInfoR((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MagicWeapon.pytOnGetFBEnterPospscCstjS(N(t IPY_GameWorldt    cmeAccept(taskR((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MagicWeapon.pytOnChangeMapAskxsc CsR|jƒ}|jƒ}tjƒjƒ}tj|ƒ}tjƒ}|jt    j
ƒ}tj d||f|ƒtj |ƒ}|s¼tj |ƒtj|ƒtj||dt    jƒn|jt    jƒ}|rý|jt|ƒtj|t    jdƒn| r>tjdi|d6|d6dtƒr>tj d|ƒdS|jƒ}    |    tkritjt|ƒn|    tkrät|ƒtd|tjƒjƒ}
|j t!j"dt#|
dƒt$ƒ|j t!j%dt#|
dƒt$ƒnY|    t&kr=t|ƒt'd|tjƒjƒ}
|j t!j(dt#|
dƒt$ƒnt)||| ƒdS(    Ns!DoEnterFB...lineID=%s,playerLV=%sitNPCShowtMapIDtLineIDt    isLogNones3·¨±¦ÌôÕ½¸Õ½øÈëʱ²»Ö±½Ó¿ªÊ¼£¬ÐèµÈǰ¶Ë֪ͨ¿ªÊ¼²Å¿ªÊ¼!iè(*t GetPlayerIDtGetLVRR    R
RtGetRecordMapIDt    GetGameFBtNomalDictGetPropertytChConfigtDef_Player_Dict_ReqFBFuncLinetDebugLogtGetHadDelTickettSetHadDelTickettSetFBPropertyMarkt EventReportt WriteEvent_FBt CME_Log_StarttDef_Player_Dict_ReqFBMissionIDt SetGameFBDictRt PlayerControltNomalDictSetPropertyRtGetIpyGameDataByConditiontFalset    GetFBSteptFB_Step_Preparet    SetFBStepRtDef_PrepareTimet GetFBStepTickt Sync_TimeTickR"t tttAddUpTimetmaxRt tttWaitStarttFB_Step_Fightingt Def_FightTimet tttTowerTaketDoFBHelp( RRtplayerIDtplayerLVR tgameFBR t hadDelTickett fbMissionIDtfbStept notify_tick((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MagicWeapon.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(RR-R>R?tErrLogR*RRR1R@RRARBRCR"RDRERRFRJ(RRRMRPR RQ((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MagicWeapon.pytOnClientStartFB±s    (""cCsdS(N((RR((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MagicWeapon.pytDoExitFBÅscCsdS(N((RR((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(RR-RRRtGetGameFBDictByKeyRt
Help_scoreRtLogtDL_NPCIDtFBPlayerDict_NPCRemainCnttDL_NeedKillCnttGetJsonNPCKillListtHelp_npct Help_lineIDRR1tstrt Notify_FBHelp(RRtisEnterRMR t
totalPointthelpDicttnpcCfgtnpcDicttinfotnpcIDt    remainCnttkillCntRO((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MagicWeapon.pyRJ×s0     
    
cCsatjƒjƒ}|tkr+t|ƒn2|tkrDt|ƒn|tkr]t|ƒndS(N(    RR-R>R?t__DoLogic_FB_PrepareRGt__DoLogic_FB_Fightingt FB_Step_Overt__DoLogic_FB_Over(RRP((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MagicWeapon.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-RBRARRRRZR[R9R\R]t DL_RefreshCDtNPCCustomRefresht SetNPCRefreshtDL_RefreshMarktDL_SingleNPCCntt    DL_maxCnttDL_TotalNPCCnttProcessAllNPCRefreshtGetMapCopyPlayerManagertGetPlayerCounttGetPlayerByIndexRJR@RGtSync_Player_TimeTickR"RIRH(
RtfbCfgR RfRMtnpcInfoRit    refreshCDt playerManagerR((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MagicWeapon.pyRls,    $    
 
9  cCs?tƒ}|tjƒjƒ|tdkr1dSttƒdS(Niè(RRR-RBRHt__DoClearDevilOverR=(RR~((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MagicWeapon.pyRm2s
    $
cCsRtƒ}|tjƒjƒ|tdkr1dStj|ƒtjt    |ƒdS(Niè(
RRR-RBt Def_LeaveTimetGameWorldProcesstCloseFBRR@t FB_Step_Close(RR~((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MagicWeapon.pyRo@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_PerPointValuetSetPlayerGameFBDictR1( RtaddExpt expViewTypeRKRMtexptexpPointttotalExpt updTotalExptupdExpt updExpPoint((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MagicWeapon.pytOnGetExpRs  
      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)W|r¿ttƒ|j
tƒ}|rœtj|d|ƒntj|tjd|dgƒnt||ƒdS(NRiisûÓиÃÏß·ˢ¹ÖÅäÖàlineID=%sscleardevil_pass_%s(RR-R>RGtGetNPCIDRRR=RRRXRRt
GetFuncCfgtminR9RR\RERRZR[R‚Rt
EventShelltEventRespons_FBEventt PlayerSuccesstDoAddSuccessProgressR‡tSuccType_PassWagicWeaponRJ(RtcurNPCRRMRPRR tisFinishtaddPointRdtmaxPointtupdPointRjRfRRiRO((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MagicWeapon.pytDoFB_Player_KillNPCmsL         !  
 
# 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‹RXRR1RRt Over_isPasst Over_costTimetOver_expt Over_expPointtGetJsonItemListt Over_itemInfot__SendOverInfo( Rt curMissionIDRt    moneyDicttitemListRMRRROtcostTimet    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‚R=(R((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MagicWeapon.pyt DoPlayerDeadÆs
cCs&tjƒ}|jƒtkr"tStS(N(RR-R>RHR=R(tattackertdefenderRM((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MagicWeapon.pytCheckCanAttackTagObjInFBÎs 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(5RR-R>Rnt GetGameWorldtGetTickRRzR{R|R„R…RR*RŠRRRBR9RRXRRªtintRR¤R¦R§R¥R@R}R"t tttLeaveMapRƒRRRstCloseNPCRefreshRuR5R6R/tDef_FBMapID_MagicWeapont CME_Log_EndRR—tGetChangeCoinPointTotalR.tDef_PDict_FirstGoldTryR:R;tPlayerGoldGifttSync_FirstGoldInfo(tisPassRMRRRR~RKRRR®ROR RfR((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MagicWeapon.pyR‚ÕsH         >   % cCsitjtjƒjƒƒ|tj<tjƒ|tj<tjdt    |ƒ|j
ƒƒtj ||ƒdS(Ns__SendOverInfo overDict=%s( RR,RR    R
tOver_dataMapIDRt Over_lineIDR1RaR*tNotify_FB_Over(RtoverDict((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MagicWeapon.pyRªs
" (>RRRR"R„R™RsR/R‡R›R:R5RÀtrangeRRARHRƒRuR[RvRwRxR]Rrt FB_Step_OpenR?RGRnR†RRRR\RRRRRRRRR!R%RRRTRURVR=RJRpRlRmRoR•R£R°R±R²RµR‚Rª(((sw.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_MagicWeapon.pyt<module>sZ                 
!
                               1              %        $                7                2