cehua_ZWJ
2019-01-30 6afaa4408f4e09e3e95dbd92f0d1cd5a1fb2942b
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
f«\c@s¹ddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z ddl Z ddlZddlZddlZddlZejddƒejddƒd„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ÿÿÿÿNs Script\NPC\tNPCAItcCsMtjƒd}tj|dƒtjƒd}tj|dƒtt_dS(NsScript\NPC\NPCAIRs
Script\NPCR(tChConfigt
GetAppPatht    GameWorldt ReloadScripttOnNPCDiet    NPCCommon(ttickt
scriptPath((sS.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\ChNPC.pyt    ReloadNPC;s     cCsKtjtd|jƒdfƒ}|dkr>tjtjfS|||ƒS(Ns AIType_%d.%stOnGetOwnerRelation(Rt GetExecFuncRt    GetAITypetNoneRtType_Relation_FriendtDef_PASysMessage_None(tcurNPCtownertcallFunc((sS.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\ChNPC.pyR Gs" cCs?tjtd|jƒdfƒ}|dkr2dS|||ƒS(Ns AIType_%d.%stGetNPCAttackTagLimit(RR RR R(RttagObjR((sS.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\ChNPC.pyROs" cCsÄtjƒj|jƒtjfƒtjtj|ƒ}|r~|j    d|j
ƒƒtj |ddt jtjƒjƒƒntjtd|jƒdfƒ}|dkr°dS||||ƒdS(Nt    summondies AIType_%d.%stOnDie(tPassiveBuffEffMngtGetPassiveEffManagertRemovePassiveEfftGetIDt IPY_GameWorldtgotNPCRtGetSummonNPCOwnert    gotPlayertSetDicttGetNPCIDtOnPassiveSkillTriggerRRtTriggerType_SummonDieRt GetGameWorldtGetTickR RR (RtHurtTypetHurtIDRR((sS.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\ChNPC.pyR[s"" cCs@tjtd|jƒdfƒ}|dkr2dS||ƒdS(Ns AIType_%d.%st OnNPCSetDead(RR RR R(RR((sS.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\ChNPC.pyR(ls
" 
cCsMtj|ƒtjtd|jƒdfƒ}|dkr?dS||ƒdS(Ns AIType_%d.%st OnNPCReborn(tFBLogictOnNPCRebornInFBRR RR R(RR((sS.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\ChNPC.pyR)ss  " 
cCsYtjtd|jƒdfƒ}|dkr2dS|||||ƒtj||ƒdS(Ns AIType_%d.%st
OnAttacked(RR RR RtPlayerActivitytOnAttackNPCActivity(tatkObjRtskillRR((sS.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\ChNPC.pyt OnNPCAttackeds
" cCsEtjtd|jƒdfƒ}|dkr2tS|||||ƒS(Ns AIType_%d.%st OnCheckCanDie(RR RR RtTrue(R/RR0RR((sS.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\ChNPC.pyR2Šs" cCstjtƒ|ƒdS(N(Rt GetPsycoFunct__Func_InitNPC(R((sS.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\ChNPC.pytInitNPC•sc
Csštt_tjƒjƒ}tjd|ƒtjƒjƒ}g}tj    ddiƒ}||kr±t
d||dƒ}||kr±tj    ddƒ}tjd|ƒq±ntj ƒ}|j ƒ}x½t |ƒD]¯}|j|ƒ}    |    jƒ|kr|    jtƒqÖntj|    ƒ|    jƒdkrÖ|    jƒdkrÖtjd|    jƒ|    jƒ|    jƒ|    jƒfƒtd    ƒ‚qÖqÖWtjd
ƒdS( NsNPC Initing...FB %dtMapLineiiiis    hideNPCIDList=%ss@###NPC²ß»®Ìî±í´íÎó£¬NPC = %s , %s , Ë¢Ðµã = %sºÍÖØÉúµã = %s´íÎós ###NPC ²ß»®Ìî´í±íÀ­ s NPC Init OK!(RRRR$tGetCurGameWorldIndextLogtGetMaptGetMapIDt IpyGameDataPYtGetFuncEvalCfgtmaxt GetNPCManagert GetNPCCounttxranget GetNPCByIndexR!t
SetVisibletFalseR6tGetRefreshPosCounttGetPatrolPosCounttGetNamet    Exception(
RtgameWorldIndextmapIDt hideNPCIDListtactivityMapLineDicttactivityLineIDtgameNPCtnpcCounttiR((sS.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\ChNPC.pyR5žs0          $5 cCstjtƒ|ƒdS(N(RR4t__Func_NormalNPCAI(R((sS.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\ChNPC.pyt NormalNPCAIÃscCsÖtjƒ}g}xŸtd|jƒƒD]ˆ}|j|ƒ}|jƒdkrUq(n|jƒtjkr£tj    |ƒ}|dkr‹q(nt j |ƒr£q(q£n|j |ƒq(Wx|D]}t||ƒq»WdS(Ni(RR?trangetGetActiveNPCCounttGetActiveNPCByIndexRtGetGameNPCObjTypeRt
gnotSummont GetObjDetailRRt
IsGameBosstappendt ProcessNPCAI(RRNtnormal_NPC_ListtindexR((sS.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\ChNPC.pyRQÍs        cCstjtƒ|ƒdS(N(RR4t__Func_BossSummonNPCAI(R((sS.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\ChNPC.pytBossSummonNPCAIüsc    Csñtjƒ}g}x–td|jƒƒD]}|j|ƒ}|jƒdkrUq(n|jƒtjkrpq(n|j    ƒdkrˆq(n|j ƒsšq(n|j |ƒq(Wx|D]}t ||ƒq²Wtjƒ}||jtjƒtjtjkrÿdS|jtj|ƒg}x¦td|jƒƒD]}|j|ƒ}|jƒdkr[q.n|jƒtjkrvq.n|j    ƒdkržtj|ƒ ržq.n|j ƒs°q.n|j |ƒq.Wx|D]}t ||ƒqÈWg}xQtd|jƒƒD]:}|j|ƒ}|jƒdkr(qûn|j |ƒqûWx|D]}t ||ƒq@Wg}x_t|jƒƒD]K}|j|ƒ}|j ƒs®tjd|jƒƒqpn|j |ƒqpWx|D]}t ||ƒqÆWt|||ƒdS(Nis###ïÚ³µËÀÍö , %s(RR?RStGetSummonNPCCounttGetSummonNPCAtRtGetTypeRtntElftGetOwnerRtIsAliveRZR[R$t GetTickByTypeRtTYPE_Map_Tick_BossAITicktTYPE_Map_Tick_Timet SetTickByTypeRYt GetBossCountt    GetBossAtt GetTruckCountt
GetTruckAtR9RGt ProcessPetAI(    RRNt gameElf_ListR]Rt    gameWorldtgameSummon_Listt gameBoss_ListtgameTruck_List((sS.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\ChNPC.pyR^sh    "     cCsÝ||jtjƒtjtjkr*dS|jtj|ƒg}xutd|jƒƒD]^}|j|ƒ}|jƒdkr†qYn|j    ƒs˜qYn|j
ƒsªqYn|j |ƒqYWx|D]}t ||ƒqÂWdS(Ni( RfRtTYPE_Map_Tick_PetAITickRhRiRSt GetPetCounttGetPetAtRt GetIsSummonReRZR[(RpRNRt gamePet_ListR]tcurPet((sS.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\ChNPC.pyRnms"   cCstjtƒ|ƒdS(N(RR4t__Func_NPCRefreshPoint(R((sS.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\ChNPC.pytNPCRefreshPoint“scCstj|ƒdS(N(tNPCCustomRefreshtProcessAllNPCRefresh(R((sS.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\ChNPC.pyRz›s cCs»|jƒ}tjƒjtj|ƒ}|rx||kr>dStjƒjtj|dƒtjd|||fƒntjt    d|j
ƒdfƒ}|dkrªdS|||ƒdS(Nis1NPCÐã½áÊø£¬¿ªÊ¼´¦ÀíAI!npcID=%s,tick=%s,endTick=%ss AIType_%d.%st    ProcessAI( R!Rt    GetGameFBtGetGameFBDictByKeyRtDef_FBDict_NPCShowEndTickt SetGameFBDicttDebugLogR RR R(RRtnpcIDtendTickR((sS.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\ChNPC.pyR[¦s      " cCs9tjtd|jƒdfƒ}|r5|||ƒSdS(Ns AIType_%d.%st OnCollectEnd(RR RR (t    curPlayerRR((sS.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\ChNPC.pyR†Ìs" cCs||jƒ}|jƒtjkr%tStj|ƒtj|ƒdkrKtStj    |tj|ƒƒt
j d||ƒtS(Nis!²»ËÀbossѪÁ¿Îª0ÉèÖÃÂúѪ! npcID=%s( R!RbRt    ntUndeathRDtGameObjtGetHPtGetMaxHPR3tSetHPRRƒ(RR„((sS.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\ChNPC.pytOnUndeathBossAttacked s "cCstjd||fƒtjƒj|ƒ}tj||ƒtjtd|jƒdfƒ}|dkrndS|||ƒdS(Ns----NPCAppearWarn:%s %ss AIType_%d.%st NPCAppearWarn(
RRƒR?t FindNPCByIDt
SkillShelltNotifyNPCSkillWarnR RR R(RtobjIDRR((sS.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\ChNPC.pyRŽs"  ((RRRRRR|t GameLogInfottimetmatht ReadChConfigR-t SkillCommont    BuffSkillR‰RR*RR<t    ImportAllR
R RRR(R)R1R2R6R5RRRQR_R^RnR{RzR[R†RRŽ(((sS.\\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\ChNPC.pyt<module> sP                                                                     %    
    /        i    &             &    @