cehua_hzl
2018-08-24 665841283fff2465f886b3dba5b8480b73daa63f
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
zÇ{[c@s'ddlZddlZddlZddlZddlZddlZddlZddlZddlZe    dƒ\Z
Z Z Z ZdZdZdZdZdZd„Zd    „Zd
„Zd „Zed „Zd „Zd„Zd„Zed„Zd„Zd„Zd„Z dd„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.pytOnEnterFBEvent4scCstS(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.pytOnChangeMapAskCscCsdS(N((RR((sp.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Dogz.pyt    DoEnterFBKscCsdS(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
DoFBActiongscCs|jƒ}|sdS|jƒtjkr/dStjƒj|jƒƒ}|jƒ}|j    ƒ}tj
ƒ}|j |t ƒ}t jddiƒj|dƒ}||d|}    |    dkrÖ|j|t |ƒdS|    sàdS|jt |ƒt jddiƒj|dƒ}
d\} } tttj|ƒ|
dƒ|    tj|ƒdƒ} | dkrddStj|| | | |ƒdS(    Nt DogzFBCollectiièiiigY@(iN(t GetActionObjtGetGameObjTypeR    tgotNPCt    GameWorldt GetNPCManagert GetNPCByIndextGetIndextGetNPCIDtGetIDt    GetGameFBtGetPlayerGameFBDictByKeytMap_Dogzfb_CollectLostHPTickt IpyGameDataPYtGetFuncEvalCfgtgettSetPlayerGameFBDictt SetGameFBDicttNonetmintinttGameObjtGetMaxHPtGetHPt SkillCommont SkillLostHP(RRttagObjtcurNPCtnpcIDtplayerIDtgameFBtcollectLostHPTicktlostCDtlostTimet    lostHPPert skillTypeIDt    buffOwnert    lostValue((sp.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Dogz.pyt OnCollectingms2    ! ! 7 cCst|ƒdS(N(tCheckRefreshBoss(R((sp.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Dogz.pyt    OnProcess“s
c    CsÃtjƒ}|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ƒ| |<q5Wx#|j
ƒD]\}}    |    t }
|rÅ|    tn|    t}|jt|
|ƒ|    t}t|tƒr|gn    t|ƒ}tj|ƒx‚|D]z}|dkr;Pn| j|dƒ}||kr_q%nt|||ƒ}||8}tj ||
|fg|||ƒq%Wt!|
|    t"ƒqŸWt#ƒdS(NiètDogzFBRefreshCfgii($RRtGetGameFBDictByKeytMap_Dogzfb_LastCheckTickR$R R!R'ttimet GetGameWorldtitemst    Def_NPCIDtGetGameWorldDictByKeytMap_Dogzfb_NextNeedTimetMap_Dogzfb_LastRefreshTimeRtxrangetGetCustomNPCRefreshCounttGetCustomNPCRefreshAttGetCounttGetRefreshMarkR"tDef_FirstRefreshCnttDef_RefreshCnttSetGameWorldDictt
Def_MaxCntt
isinstancetlisttrandomtshuffleR&tNPCCustomRefresht SetNPCRefresht__UpdateBossTimetDef_TimeFormulatSyncNPCRefreshTime(RtisFirstR1t lastCheckTicktdogzRefreshCfgtcurTimet    gameWorldt refreshDicttmarkInfot refreshInfoR/t nextNeedTimetlastRefreshTimet
npcCntDicttgameNPCtit
npcRefreshtnpcCnttrmarkt
refreshCnttmaxCnttmarkListtrMarktcurCnttneedRefreshCnt((sp.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Dogz.pyR:˜s`  
   $
 
$    
'cCs¤tjddƒ}t|ƒ|kr(dStjƒ}|jtƒ}|s tjddiƒ}x/|jƒD]!}|t    }t
||t ƒqkWt |t ƒndS(NR<ii(R t
GetFuncCfgtstrRRR=R>R!tvaluesRBRURVR:R(tkeyRtbossidR1RYRZR_R/((sp.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Dogz.pytOnOnlineCntChangeÔs 
cCsBtjƒ}|jtjƒ}t|ƒ}|jt||ƒdS(N(RR@RCt ShareDefinet%Def_Notify_WorldKey_BossOnlineHeroCnttevalRMRD(R/tformulat gameWorldMgrt    onlineCnttnextTime((sp.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Dogz.pyRUâs
  cCsGtjƒ}|jt|ƒ}|jt|ƒ}td|||ƒS(Ni(RR@RCRERDtmax(R[R/RxRaR`((sp.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Dogz.pytGetDogzNPCRefreshTimeês icCs’ttjƒƒ}tjddƒ}i}x'|D]}t||ƒ}|||<q1Wt||gƒ}tjƒjdddd|t    |ƒƒdS(NR<iit DogzNPCTime(
R'R?R R!R|RoRtGetPlayerManagertGameServer_QueryPlayerResulttlen(tplayeridR[t syncNPCIDListtsyncDictR/t refreshTimetmsgStr((sp.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Dogz.pyRWñs (("RR R    RtRSR+R(R?RQtrangeRBRNRVRLRKRERDR>tMap_Dogzfb_NPCRemainCntRRRR R tFalseRRR9R;R:RsRUR|RW(((sp.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GameWorldLogic\FBProcess\GameLogic_Dogz.pyt<module>s6                                      &     <