hxp
2018-11-25 4e50bcfc0c19c5bff491289698f596c21da22c2f
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
îù[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    ##      cCstj|ƒ|jdƒ|jdƒ|jdƒ|jƒ}|jdƒ|jdƒtj    d|j
ƒ|j ƒfƒ|j t jƒ|jƒ}|jƒ}|dkrµdS|t jkrû|jtjƒ}|tjkrûtjj|ƒqûntjƒtj|jƒƒ}i}g}tjƒ}    x6t|    jƒƒD]"}
|    j|
ƒ} |j | ƒqEWxÛ|D]Ó} | sr| j!ƒr‘qrn|t jkrµ|jtjƒ}n*| j"ƒtj#krÙ| j$ƒ}nd}| j%ƒ} |r;| j&ƒtj'kr;|j(|gƒ}|j t)j*| ƒƒ|||<n| j+ƒqrW|tj,kr´|r´xS|j-ƒD]B\}}tj    d||ƒt.j/d|g||jƒgƒqkWn|j0ƒ}|j1ƒdkræ|j t j2ƒdS|j t jƒt3|ƒdS(Nis%FB Close! lineID = %s, openState = %ss·¢ËÍδʰȡµÄÎïÆ·¸øÍæ¼Ò: %st ItemNoPickUp(4Rt    OnCloseFBR    R
tSetFBFirstOpenR tSetPlayerLogoffTicktSetIsSafeCloseRRRRRRt
fbosClosedtGetMapt GetMapFBTypet    fbtSingletGetGameFBDictByKeytChConfigtDef_FB_SingleFBPlayerIDt
PyGameDatatg_fbHelpBattlePlayerDicttpoptFBCommont
ClearFBNPCtGetRecordMapIDtGetMapIDtGetMapItemManagertxrangetGetMapItemCounttGetMapItemByIndextappendtIsEmptyt GetOwnerTypetDef_NPCHurtTypePlayert
GetOwnerIDtGetItemtGetTypetDef_ItemType_Moneytgett
ItemCommontGetMailItemDictt    DisappeartDef_SendUnPickItemMailMapIDListtitemst PlayerControlt SendMailByKeytGetMapCopyPlayerManagertGetPlayerCounttfbosWaitForClosetFreeOrClearFBByAutoSize(RRt    gameFBMgrtgameMaptfbTypetownerIDtmapIDtunPickItemDictt mapItem_ListtmapItemManagertindext
curMapItemtmapItemtcurItemt mailItemListt playerManager((sxE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldProcess.pyt    __CloseFBTsd       #   
    ) 
cCs?|jƒjƒdkr1tjƒ}|jƒn
|jƒdS(Ni(Rt GetAutoSizeRR tClearR(RR((sxE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldProcess.pyR>¤s  cCs™|jƒtjkrdS|jƒ}x6t|jƒƒD]"}|j|ƒ}tj|ƒq8Wt    j
ƒj dƒt    j d|jƒƒt ||ƒdS(Nis---------------%d(RRRR;trangeR<tGetPlayerByIndexR9t PlayerLeaveFBRR tGameServer_FbInfoRefreshRRM(RRRLtit    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;RPR<RQt GetLoginTickt
EventShelltEventResponse_OnFBTimeOutRRRRV(RRtopenTickt    existTimeRLRTRUtplayerExistTime((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_FBKickPlayerTimeRRRRV(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 GetGameWorldRRNRe(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"tGetPlayerLogoffTicktGetIsSafeCloseRRRRV(    RRRLRtfbIndext
exitFBTypetexitTicktpassTickt
logOffTick((sxE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldProcess.pyt__ProcessClose0s2         
       # cCsptjs dS||jƒdkr'dStjƒ}|jƒtjkrLdS|j|ƒ|j    ƒt
t_dS(Ni
ièi'( R tg_needRefreshMapServerStatetGetSyncMapServerStateTickRRRRtfbtNulltSetSyncMapServerStateTicktGameServer_MapServerStatetFalse(RRR@((sxE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldProcess.pyt__ProcessRefreshMapServerStateks      
    cCsctjƒ}|jtjƒ}|dkr.dS||tjtjkrLdS|jtj|ƒdS(Niÿÿÿÿ(RRft 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 cmePlayerFullRNt IsMapCopyFulltGetBMChangeMapAskCountR#tCheckFBStateCanEnterttypettupletlistRtOnChangeMapAsktNonet    cmeAccept(
Rt    askStructRR@tnearPosXtnearPosYtcheckRettcanEntert
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( RRfRPRtGetBMChangeMapAskAtRžR‘tinttRouteServer_ChangeMapAnswert GetPlayerIDtClearBMChangeMapAsk(RRRTtasktresult((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(RRfRhReR_RcRtR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~RRRft 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(RRfR4t
InitPyItemRZtDoReloadRefreshRtOnInittSetTickTypeCountRtTYPE_Map_Tick_CountR¯t InitDllAppIDtGameServer_CommMapServerInitOKt    SetInitOKtTruetBalanceServer_MapServerInitOK(RR((sxE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldProcess.pyt InitGameWorlds 
 
 
 
 
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( RRRRRwtstrR&Rt GetRealMapIDt GetCopyMapIDR‹tGameServer_QueryPlayerResulttlen(RtmsgInfo((sxE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldProcess.pyR»/s0+cCstjƒj|ƒdS(N(RRfR
(R((sxE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldProcess.pytCloseFBHscCstjƒ}|jƒ}|jƒdkr.dStƒs;dS|jƒ}|jƒdkr{ttjƒtjƒjƒƒndS(Nii(    RRfRRRiR;R<RMtGetTick(RR@RL((sxE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldProcess.pytOnPlayerLeaveMapCloseFBPs       cCs+tjƒjƒo*tjƒjƒtjkS(N(RRRNR&RtDef_NoPlayerNotCloseAutoSizeMap(((sxE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldProcess.pyRiascCsttjƒ}tjƒ}|jd|jƒƒ|jd|jƒƒ|jd|jƒƒ|jd|jƒƒdS(Niiii(    RtIPY_MPlayerCountByCountryRRftSetPlayerByCountryCounttGetCountry1CounttGetCountry2CounttGetCountry3CounttGetCountryOtherCount(RGRtpackR((sxE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldProcess.pytGameSever_PlayerCountByCountryys  cCsFtjdƒtjƒjdddddƒtjƒjd|ƒdS(Ns×¢²á¼¶Áª¼ÆÊ±Æ÷t ProcessFighti‚t PlayerStatetPlayerProcessFighti(RRRft
RegLvTimert StartLvTimer(R((sxE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldProcess.pyR֐s
  cCsYtjƒ}|jtjƒ}tjtj}|||krBdS|jtj|ƒdS(N(RRfR|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(RRfR|RtTYPE_Map_Tick_ProcessMinuteR~RtGetCurrentTimet __OnMapMinuteR;R(R<RQt__ProcessHalfHour(RRR€RÙtcurTimeRLRGRU((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ßRZtEventResponse_OnHalfHour(RURÞR((sxE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldProcess.pyRÝÕs ((RRRR9R±RZRR#R¯R4R RáR†RRMR>RVR_RcReRgRtR{RRžR§RªR©R¬R¿R»RÇRÉRiRÒRÖR®R­RÜRÝ(((sxE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\GameWorldProcess.pyt<module>&sN                     P            ,                ;            ,            *