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
x{[c@s”ddlZddlZddlZddlZddlZddlZddlZddlZddlZd„Z    d„Z
d„Z d„Z dS(iÿÿÿÿNcCs|jƒjtjƒdS(N(t GetNPCAngrytInittChConfigtDef_NormalNPCAngryCount(tcurNPC((s[.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCAI\AIType_5.pytDoInit!scCsÍt|ƒrdStj|ƒ}|j|ƒtj|ƒdkrEdS|j|ƒ|jƒsrtj    ||ƒdS|j
ƒ}|dkržtj    ||ƒdS|j ƒ}|j ƒ}t||||ƒdS(Ni(t
AppearMovet    NPCCommont
NPCControltRefreshBuffStatetGameObjtGetHPtRefreshAngryListtGetIsNeedProcesstAICommontNormalNPCFree_MovetGetMaxAngryTagtNonet
GetObjTypetGetObjIDt
__NPCFight(Rttickt
npcControlt curNPCAngrytcurNPCAngryTypet curNPCAngryID((s[.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCAI\AIType_5.pyt    ProcessAI*s"        c    Cs tj|ƒtj|ƒ}|jƒs6|jƒdStj||ƒ}|dksitj    |ƒdkrmdStj
|j ƒ|j ƒ|j ƒ|j ƒƒ}||j ƒkrtj
|jƒ|jƒ|j ƒ|j ƒƒ}||j ƒkr
|jƒtjkr
dS|j|ƒdS|jƒ||jƒ|jƒkrEdS|j|j ƒ|j ƒƒrgdS|jƒ}|tjkr†dStj||d|ƒdS(Ni(RtSetNPCInBattleStateRtIsInRefreshAreatMoveBackt    GameWorldtGetObjRR
R tGetDisttGetPosXtGetPosYt
GetAtkDistt GetDestPosXt GetDestPosYt GetCurActiont IPY_GameWorldt    laNPCMovetMoveToObj_DeteltStopMovet GetAttackTicktGetAtkIntervalt    FixTagPost
BaseAttacktAttack(    RttagIDttagTypeRRtcurTagttagDisttdestDistt curNPCAction((s[.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCAI\AIType_5.pyRUs2  
!00' 
 cCs£|jdƒrtS|jƒtjkr,dStjddiƒ}|jtjƒ}|j    |gƒ}|sotS|d\}}|j
||ƒ|j ddƒt S(Nt
appearmovetAIRefreshPointNPCRunii( t GetDictByKeytFalseR&R'R(t IpyGameDataPYtGetFuncEvalCfgRtDef_NPC_Dict_FromRefreshMarktgettMovetSetDicttTrue(RtaiRefreshPointNPCRunt refreshMarkt movePointListtdestPosXtdestPosY((s[.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCAI\AIType_5.pyR†s( R'RRR.RRtrandomR
R:RRRR(((s[.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCAI\AIType_5.pyt<module>s                         +    1