cehua_LC
2018-11-26 19ed0ff715c2960e92f41b475a684d88c68de533
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
²û[c@s“ddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z d„Z d„Zd„Zd„Zd„Zd„Zd„Zd    „Zd
„Zd „Zd „Zd „Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z d„Z!d„Z"d„Z#d„Z$d„Z%d„Z&d„Z'dS(iÿÿÿÿNcCsÆ|jƒdkrBtjd|jƒ|jƒ|jƒfƒdStjd|jƒ|jƒfƒ|jtjƒ|j    |ƒ|j
dƒtj ƒ}|j dƒ|j |ƒtj|ƒdS(Nis5FB Open! lineID = %s, openState = %s, OpenFBTick = %ss$FB Open! lineID = %s, openState = %s(t GetOpenFBTickt    GameWorldtErrLogt    GetLineIDt GetOpenStatetLogt SetOpenStatet IPY_GameWorldtfbosOpent SetOpenFBTicktSetCloseFBTickt    GetGameFBt    SetFBStept SetFBStepTicktFBLogictOnOpenFB(t    gameWorldtticktgameFB((sxE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldProcess.pyt__OpenFB9s    ##      cCsftj|ƒ|jdƒ|jdƒ|jdƒ|jƒ}|jdƒ|jdƒtj    d|j
ƒ|j ƒfƒ|j t jƒ|jƒ}|jƒ}|dkrµdS|t jkr |jtjƒ}|tjkr]tjj|ƒtjd|ƒq]nQ|t jkr]|jƒ}|tjkr]tjj|ƒtjd|ƒq]ntjƒtj|jƒƒ}i}g}    tj ƒ}
x6t!|
j"ƒƒD]"} |
j#| ƒ} |    j$| ƒq§WxÛ|    D]Ó} | sÔ| j%ƒróqÔn|t jkr|jtjƒ}n*| j&ƒtj'kr;| j(ƒ}nd}| j)ƒ}|r|j*ƒtj+kr|j,|gƒ}|j$t-j.|ƒƒ|||<n| j/ƒqÔW|tj0kr|rxS|j1ƒD]B\}}tj    d||ƒt2j3d|g||jƒgƒqÍWn|j4ƒ}|j5ƒdkrH|j t j6ƒdS|j t jƒt7|ƒdS(Nis%FB Close! lineID = %s, openState = %ss$Çå³ýµ¥È˸±±¾¾µÏñÖúÕ½ÐÅÏ¢: ownerID=%ss#Çå³ý×é¶Ó¸±±¾¶ÓÔ±¹ØÏµÐÅÏ¢: teamID=%ss·¢ËÍδʰȡµÄÎïÆ·¸øÍæ¼Ò: %st ItemNoPickUp(8Rt    OnCloseFBR    R
tSetFBFirstOpenR tSetPlayerLogoffTicktSetIsSafeCloseRRRRRRt
fbosClosedtGetMapt GetMapFBTypet    fbtSingletGetGameFBDictByKeytChConfigtDef_FB_SingleFBPlayerIDt
PyGameDatatg_fbHelpBattlePlayerDicttpoptDebugLogtfbtTeamt GetPropertyIDtg_teamFBMemRelationDicttFBCommont
ClearFBNPCtGetRecordMapIDtGetMapIDtGetMapItemManagertxrangetGetMapItemCounttGetMapItemByIndextappendtIsEmptyt GetOwnerTypetDef_NPCHurtTypePlayert
GetOwnerIDtGetItemtGetTypetDef_ItemType_Moneytgett
ItemCommontGetMailItemDictt    DisappeartDef_SendUnPickItemMailMapIDListtitemst PlayerControlt SendMailByKeytGetMapCopyPlayerManagertGetPlayerCounttfbosWaitForClosetFreeOrClearFBByAutoSize(RRt    gameFBMgrtgameMaptfbTypetownerIDtteamIDtmapIDtunPickItemDictt mapItem_ListtmapItemManagertindext
curMapItemtmapItemtcurItemt mailItemListt playerManager((sxE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldProcess.pyt    __CloseFBTsp       #    
    ) 
cCs?|jƒjƒdkr1tjƒ}|jƒn
|jƒdS(Ni(Rt GetAutoSizeRR tClearR(RR((sxE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldProcess.pyRBªs  cCs™|jƒtjkrdS|jƒ}x6t|jƒƒD]"}|j|ƒ}tj|ƒq8Wt    j
ƒj dƒt    j d|jƒƒt ||ƒdS(Nis---------------%d(RRRR?trangeR@tGetPlayerByIndexR=t PlayerLeaveFBRR tGameServer_FbInfoRefreshRRR(RRRQtit    curPlayer((sxE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldProcess.pyt__KickAllPlayerAndCloseFB¹s  cCs|jƒ}|dkrdStjƒjƒ}|dkr>dS||jƒ|krXdStj|ƒ|jƒ}x_td|jƒƒD]H}|j    |ƒ}||j
ƒ}||dkrÂq‡nt j |ƒq‡Wtj d|jƒ|jƒfƒt||ƒdS(Niis4__ProcessTimeKickPlayer! LineID = %s, openState = %s(RRRt GetExistTimeRt DoFBTimeOutR?RUR@RVt GetLoginTickt
EventShelltEventResponse_OnFBTimeOutRRRR[(RRtopenTickt    existTimeRQRYRZtplayerExistTime((sxE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldProcess.pyt__ProcessTimeKickPlayerÑs&     # cCs|jƒ}|dkrdS|jƒtjkrB|jdƒdS||tjkrYdStjd|j    ƒ|jƒfƒt
||ƒdS(Nis7__ProcessFBDelayKickPlayer! LineID = %s, openState = %s( tGetCloseFBTickRRRR
RtDef_FBKickPlayerTimeRRRR[(RRt closeFBTick((sxE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldProcess.pyt__ProcessFBDelayKickPlayerýs   # cCs.|jƒsdSt||ƒ|jdƒdS(Ni(tGetFBFirstOpenRR(RR((sxE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldProcess.pyt __ProcessOpens
   cCs9tjƒ}tjƒjƒdkr(dSt||ƒdS(Ni(Rt GetGameWorldRRSRj(RR((sxE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldProcess.pyt EnterOpenFB(s c    Cs5|jƒsdS|jƒ}|jƒdkr2dStƒs?dStjƒ}|jƒ}|tjkr¸tj|\}}|dkr¥||}|t    j
kr¥dSntjj |ƒn@|j ƒ}|dkrÔdS|j ƒ rø||t    j
krødStjd|jƒ|jƒ|j ƒfƒt||ƒdS(Niis=__ProcessClose! LineID = %s, openState = %s, isSafeClose = %s(t    GetInitOKR?R@tIsNoPlayerNeedCloseFBRR tGetCurGameWorldIndexR tg_lastExitFBTypeRtDef_EmptyFBKeepTimeR"tGetPlayerLogoffTicktGetIsSafeCloseRRRR[(    RRRQRtfbIndext
exitFBTypetexitTicktpassTickt
logOffTick((sxE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldProcess.pyt__ProcessClose6s2         
       # cCsptjs dS||jƒdkr'dStjƒ}|jƒtjkrLdS|j|ƒ|j    ƒt
t_dS(Ni
ièi'( R tg_needRefreshMapServerStatetGetSyncMapServerStateTickRRRRtfbtNulltSetSyncMapServerStateTicktGameServer_MapServerStatetFalse(RRRD((sxE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldProcess.pyt__ProcessRefreshMapServerStateqs      
    cCsctjƒ}|jtjƒ}|dkr.dS||tjtjkrLdS|jtj|ƒdS(Niÿÿÿÿ(RRkt GetTickByTypeRtTYPE_Map_Tick_MapAcPlayertTYPE_Map_Tick_Timet SetTickByType(RRtlastTick((sxE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldProcess.pyt__ProcessMapServerAcPlayerˆs  c
Cstjƒ}|j|jƒ|jƒƒs¨tj|jƒ|jƒtjƒ\}}|dkr¨|dkr¨tj    d|j
ƒ|jƒ|jƒfƒt j dfSn|j
ƒtj kr|jƒjƒsÖt jS|jƒr|j|jƒƒrt jSntj|ƒ}t|ƒttgkr7|df}n|\}}|sVt j |fStj||ƒ}    |    dkr{t jS|    S(Nis@´«ËÍÖÁÄ¿±êµãΪÕϰ­µã, ´«ËÍʧ°Ü, mapid = %s, posX = %s, posY = %ss#04BBF813-7A30-47A8-927DE1ACCC4F378EtFB_andyshao_861048(RRtCanMovetGetPosXtGetPosYtGameMaptGetNearbyPosByDisRtDef_RebornPos_Area_RangeRR*Rt    cmeCustomtDef_FB_SystemAssignMapIDListtGetPlayerManagertIsPlayerCanLogint cmePlayerFullRSt IsMapCopyFulltGetBMChangeMapAskCountR'tCheckFBStateCanEnterttypettupletlistRtOnChangeMapAsktNonet    cmeAccept(
Rt    askStructRRDtnearPosXtnearPosYtcheckRettcanEntert
notifyMarktchangeMapAskResult((sxE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldProcess.pyt__ProcessCurrentChangeMapAskžs, *    #!
   cCsštjƒ}x}t|jƒƒD]i}|j|ƒ}t|||ƒ}t|ƒtkrg|df}n|j|j    ƒ|d|dƒqW|j
ƒdS(Ntii( RRkRUR”tGetBMChangeMapAskAtR£R–tinttRouteServer_ChangeMapAnswert GetPlayerIDtClearBMChangeMapAsk(RRRYtasktresult((sxE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldProcess.pyt__ProcessChangeMapAskÊs %
cCstjtƒ|ƒdS(N(Rt GetPsycoFunct__Func_OnGameWorldProcess(R((sxE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldProcess.pytOnGameWorldProcessÜscCsºtjƒ}|jƒsdSt||ƒt||ƒt||ƒt||ƒt|ƒt|ƒt    j
|ƒt ||ƒt ||ƒt |ƒt|ƒtjƒtj|ƒdS(N(RRkRmRjRdRhRyR†R¬Rt    OnProcessR€t__ProcessRouteServert__RefreshOnMinutet__RefreshOnFiveMinutet EventReporttOnTimeCloseScribeTxtt FamilyRobBosstOnFamilyOwnerBossProcess(RR((sxE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldProcess.pyR®äs"      
 
 
 
 
 cCsg|jtjƒ}|dkr"dS||tjtjkr@dS|jtj|ƒtjƒjƒdS(Niÿÿÿÿ(RRt!TYPE_Map_Tick_SendMsg_RouteServerRƒR„RRkt SendHeartBeat(RRR…((sxE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldProcess.pyR±s cCsltjƒ}tjƒtjƒtj|ƒ|jt    j
ƒt j ƒt |ƒ|jtƒ|jƒdS(N(RRkR8t
InitPyItemR_tDoReloadRefreshRtOnInittSetTickTypeCountRtTYPE_Map_Tick_CountR´t InitDllAppIDtGameServer_CommMapServerInitOKt    SetInitOKtTruetBalanceServer_MapServerInitOK(RR((sxE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldProcess.pyt InitGameWorld#s 
 
 
 
 
cCsztjƒjƒtjkrvt|jƒ|jƒ|jƒ|j    ƒgƒ}tj
ƒj dddd|t |ƒƒndS(s‡
    Í¨ÖªGameServerµØÍ¼Æô¶¯Íê±Ï
    GetMapID=10010,GetLineID=0,GetRealMapID=10010,GetCopyMapID=0,GetLineNO=-1
    GetMapID=10010,GetLineID=1,GetRealMapID=10010,GetCopyMapID=1,GetLineNO=-1
    GetMapID=10010,GetLineID=2,GetRealMapID=10010,GetCopyMapID=2,GetLineNO=-1
    GetMapID=10010,GetLineID=3,GetRealMapID=10010,GetCopyMapID=3,GetLineNO=-1
    GetMapID=10010,GetLineID=4,GetRealMapID=10010,GetCopyMapID=4,GetLineNO=-1
    GetMapID=10010,GetLineID=5,GetRealMapID=10011,GetCopyMapID=0,GetLineNO=-1
    GetMapID=10010,GetLineID=6,GetRealMapID=10011,GetCopyMapID=1,GetLineNO=-1
    GetMapID=10010,GetLineID=7,GetRealMapID=10011,GetCopyMapID=2,GetLineNO=-1
    GameWorld.DebugLog("GetMapID=%s,GetLineID=%s,GetRealMapID=%s,GetCopyMapID=%s,GetLineNO=%s" 
                       % (gameWorld.GetMapID(), gameWorld.GetLineID(), gameWorld.GetRealMapID(), gameWorld.GetCopyMapID(), gameWorld.GetLineNO()))
    itCommMapServerInitOKN( RRRRR|tstrR*Rt GetRealMapIDt GetCopyMapIDRtGameServer_QueryPlayerResulttlen(RtmsgInfo((sxE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldProcess.pyRÀ5s0+cCstjƒj|ƒdS(N(RRkR
(R((sxE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldProcess.pytCloseFBNscCstjƒ}|jƒ}|jƒdkr.dStƒs;dS|jƒ}|jƒdkr{ttjƒtjƒjƒƒndS(Nii(    RRkRRRnR?R@RRtGetTick(RRDRQ((sxE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldProcess.pytOnPlayerLeaveMapCloseFBVs       cCs+tjƒjƒo*tjƒjƒtjkS(N(RRRSR*RtDef_NoPlayerNotCloseAutoSizeMap(((sxE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldProcess.pyRngscCsttjƒ}tjƒ}|jd|jƒƒ|jd|jƒƒ|jd|jƒƒ|jd|jƒƒdS(Niiii(    RtIPY_MPlayerCountByCountryRRktSetPlayerByCountryCounttGetCountry1CounttGetCountry2CounttGetCountry3CounttGetCountryOtherCount(RLRtpackR((sxE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldProcess.pytGameSever_PlayerCountByCountrys  cCsFtjdƒtjƒjdddddƒtjƒjd|ƒdS(Ns×¢²á¼¶Áª¼ÆÊ±Æ÷t ProcessFighti‚t PlayerStatetPlayerProcessFighti(RRRkt
RegLvTimert StartLvTimer(R((sxE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldProcess.pyRۖs
  cCsYtjƒ}|jtjƒ}tjtj}|||krBdS|jtj|ƒdS(N(RRkRRtTYPE_Map_Tick_ProcessFiveMinuteRƒR„(RRR…t tickInterval((sxE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldProcess.pyR³¤s cCsÆtjƒ}|jtjƒ}tjtj}|||krBdS|jtj|ƒtjƒ}t||ƒtj    ƒ}xEt
|j ƒƒD]1}|j |ƒ}|s®qnt |||ƒqWdS(N(RRkRRtTYPE_Map_Tick_ProcessMinuteRƒR„tGetCurrentTimet __OnMapMinuteR?R,R@RVt__ProcessHalfHour(RRR…RÞtcurTimeRQRLRZ((sxE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldProcess.pyR²·s    cCs6|j}|tjkrdS|t_tj|ƒdS(N(tminuteR tg_mapLastProcess_Minutet
PlayerTeamt"OnCheckTeamPlayerDisconnectTimeout(RãRt    curMinute((sxE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldProcess.pyRáÌs          cCs$|jdkrdStj|ƒdS(Nii(ii(RäR_tEventResponse_OnHalfHour(RZRãR((sxE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldProcess.pyRâÛs ((RRRR=R¶R_RR'R´R8R RæR‹RRRRBR[RdRhRjRlRyR€R†R£R¬R¯R®R±RÄRÀRÌRÎRnR×RÛR³R²RáRâ(((sxE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldProcess.pyt<module>&sN                     V            ,                ;            ,            *