xdh
2018-09-26 d1f0d90ad32f4db0d66ae0cce3268770bf3d7f0f
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
Éy«[c@s3ddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    e
dƒ\Z Z Z ZZZdZdZdZdZdZd„Zd    „Zd
„Zd „Zed „Zd „Zd„Zd„Zed„Zd„Z d„Z!d„Z"d„Z#dS(iÿÿÿÿNisDogzfb_LastRefreshTime%ssNextNeedTime%st LastCheckTicksNPCRemainCnt_%stCollectLostHPTickcCstS(N(tTrue(t    curPlayertmapIDtlineIDttick((sp.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Dogz.pytOnEnterFBEvent6scCstS(N(R(R((sp.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Dogz.pyt    OnCanOpen=scCstjS(N(t IPY_GameWorldt    cmeAccept(taskR((sp.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Dogz.pytOnChangeMapAskEscCsdS(N((RR((sp.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Dogz.pyt    DoEnterFBMscCsdS(N((RRtisEnter((sp.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Dogz.pytDoFBHelp^scCsdS(N((Rt
actionTypet
actionInfoR((sp.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Dogz.pyt
DoFBActioniscCs¡|jƒ}|sdS|jƒtjkr/dStjƒj|jƒƒ}|jƒ}|j    ƒ}tj
ƒ}|j |t ƒ}t jddiƒj|dƒ}||d|}    |    dkrÖ|j|t |ƒdS|    sàdS|j|t |ƒt jddiƒj|dƒ}
d\} } tttj|ƒ|
dƒ|    tj|ƒdƒ} | dkrgdStjd||
|    | fƒtj|| | | |ƒdS(    Nt DogzFBCollectiièiigY@s<OnCollecting npcID=%s, lostHPPer=%s,lostTime=%s,lostValue=%s(iN(t GetActionObjtGetGameObjTypeR    tgotNPCt    GameWorldt GetNPCManagert GetNPCByIndextGetIndextGetNPCIDtGetIDt    GetGameFBtGetPlayerGameFBDictByKeytMap_Dogzfb_CollectLostHPTickt IpyGameDataPYtGetFuncEvalCfgtgettSetPlayerGameFBDicttNonetmintinttGameObjtGetMaxHPtGetHPtDebugLogt SkillCommont SkillLostHP(RRttagObjtcurNPCtnpcIDtplayerIDtgameFBtcollectLostHPTicktlostCDtlostTimet    lostHPPert skillTypeIDt    buffOwnert    lostValue((sp.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Dogz.pyt OnCollectingns4    ! ! 7 cCst|ƒdS(N(tCheckRefreshBoss(R((sp.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Dogz.pyt    OnProcess”s
c    CsFtjƒ}|jtƒ}|p4|o4||dks;dS|jt|ƒtjddiƒ}ttjƒƒ}tj    ƒ}i}x||j
ƒD]n\}}    |    t }
|j t |
ƒ} | sÆq‘n|j t|
ƒ} | rõ|| | krõq‘n|    ||<q‘W|s dSi} tjƒ}xptd|jƒƒD]Y}|j|ƒ}|jƒ}|sbq5n|jƒ}| j|dƒ|jƒ| |<q5Wt}x—|j
ƒD]‰\}}    |    t }
|rË|    tn|    t}|jt|
|ƒ|    t}t|tƒr |gn    t|ƒ}d}x$|D]}|| j|dƒ7}q$Wt||    t|ƒ}|dkrütj |ƒx…|D]z}|dkr‘Pn| j|dƒ}||krµq{nt|||ƒ}||8}t!j"||
|fg|||ƒq{Wnt#|
|    t$ƒ|
tjddƒkr¥t%}q¥q¥W|rBt&ƒndS(NiètDogzFBRefreshCfgiii('RRtGetGameFBDictByKeytMap_Dogzfb_LastCheckTickt SetGameFBDictR R!R&ttimet GetGameWorldtitemst    Def_NPCIDtGetGameWorldDictByKeytMap_Dogzfb_NextNeedTimetMap_Dogzfb_LastRefreshTimeRtxrangetGetCustomNPCRefreshCounttGetCustomNPCRefreshAttGetCounttGetRefreshMarkR"tFalsetDef_FirstRefreshCnttDef_RefreshCnttSetGameWorldDictt
Def_MaxCntt
isinstancetlistR%tDef_TotalLimittrandomtshuffletNPCCustomRefresht SetNPCRefresht__UpdateBossTimetDef_TimeFormulaRtSyncNPCRefreshTime(RtisFirstR1t lastCheckTicktdogzRefreshCfgtcurTimet    gameWorldt refreshDicttmarkInfot refreshInfoR/t nextNeedTimetlastRefreshTimet
npcCntDicttgameNPCtit
npcRefreshtnpcCnttrmarkt
isNeedSynct
refreshCnttmaxCnttmarkListt curTotalCnttrMarktcurCnttneedRefreshCnt((sp.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Dogz.pyR:™sr  
   $
 
$      
* 
cCsÃtjƒjƒtjkrdStjddƒ}t|ƒ|krGdStjƒ}|j    t
ƒ}|s¿tj ddiƒ}x/|j ƒD]!}|t }t||tƒqŠWt|tƒndS(NR<ii(RtGetMaptGetMapIDtChConfigtDef_FBMapID_DogzR t
GetFuncCfgtstrRR=R>R!tvaluesRCRXRYR:R(tkeyRtbossidR1R\R]RbR/((sp.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Dogz.pytOnOnlineCntChangeÜs 
cCsBtjƒ}|jtjƒ}t|ƒ}|jt||ƒdS(N(RRARDt ShareDefinet%Def_Notify_WorldKey_BossOnlineHeroCnttevalRORE(R/tformulat gameWorldMgrt    onlineCnttnextTime((sp.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Dogz.pyRXìs
  cCsGtjƒ}|jt|ƒ}|jt|ƒ}td|||ƒS(Ni(RRARDRFREtmax(R^R/RRdRc((sp.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Dogz.pytGetDogzNPCRefreshTimeôs cCs£tjddƒ}i}xP|D]H}tjƒ}|jt|ƒ}|jt|ƒ}||g||<qWt|ƒ}tjƒj    dddd|t
|ƒƒdS(NR<iit DogzNPCTime( R R!RRARDRFRERxtGetPlayerManagertGameServer_QueryPlayerResulttlen(t syncNPCIDListtsyncDictR/RRdRctmsgStr((sp.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Dogz.pyRZûs   (($RR R    R}RVR+R'R@RTRutrangeRCRPRYRNRMRSRFRER>tMap_Dogzfb_NPCRemainCntRRRR R RLRRR9R;R:R|RXR…RZ(((sp.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Dogz.pyt<module>s8                                       &     C