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
²+ \c@s²ddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    d„Z
d„Z d„Z d„Z d„Zd„ZdS(iÿÿÿÿNcCs|jƒjtjƒdS(N(t GetNPCAngrytInittChConfigtDef_SuperFBBossAngryCount(tcurNPC((slE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCAI\AIType_21.pytDoInit$scCs|jtƒdS(N(tSetIsNeedProcesstTrue(R((slE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCAI\AIType_21.pyt OnNPCReborn(s cCsÒtj|ƒ}|jƒtjks1|jƒ r5dS|j|ƒtj|ƒdkr[dS|j    |ƒ|j
ƒ}|dkr£|j ƒdkrŸt |ƒndS|jƒ}|jƒ}t||||ƒdS(Ni(t    NPCCommont
NPCControlt GetCurActiont IPY_GameWorldtlaNPCDietIsAlivetRefreshBuffStatetGameObjtGetHPtRefreshAngryListtGetMaxAngryTagtNonetGetSpeedt __RobotMovet
GetObjTypetGetObjIDt
__NPCFight(Rttickt
npcControlt curNPCAngrytcurNPCAngryTypet curNPCAngryID((slE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCAI\AIType_21.pyt    ProcessAI1s "       c Cs˜|jƒtjkrdStjƒjƒ}tjƒ}d||f}tj    ddƒ}||krˆd|df}||krˆdSn||}d}|j
|ƒd}|dkrÖt j dt |ƒdƒ}nM||\}}    tj|jƒ|jƒ||    ƒ}
|
dkr#|d7}n|dksA|t |ƒkr`t j dt |ƒdƒ}n|j||dƒ||\}}    |j||    ƒdS(Ns%d%02dt
AI198PointiitRobotMovePosIndexi(R R t    laNPCMovet    GameWorldtGetMaptGetMapIDtFBCommontGetFBPropertyMarkt IpyGameDataPYt
GetFuncCfgt GetDictByKeytrandomtrandinttlentGetDisttGetPosXtGetPosYtSetDicttMove( RtmapIDtlineIDtposKeyt fbMovePosDicttposListt Key_PosIndextposIndexttagPosXttagPosYttagDist((slE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCAI\AIType_21.pyRNs2   
 $  cCsåtj|ƒtj|ƒ}tj||ƒ}|dksOtj|ƒdkrSdStj|j    ƒ|j
ƒ|j    ƒ|j
ƒƒ}t j ||||ƒrŸdS|j ƒdkr||jƒkrÇdS||jƒ|jƒkrçdStj||d|ƒdS||jƒkrtj|jƒ|jƒ|j    ƒ|j
ƒƒ}||jƒkrn|jƒtjkrndS|j|ƒdS|jƒ||jƒ|jƒkr©dS|j|j    ƒ|j
ƒƒrËdStj||d|ƒdS(Ni(R    tSetNPCInBattleStateR
R#tGetObjRRRR.R/R0tAICommontDoAutoUseSkillRt
GetAtkDistt GetAttackTicktGetAtkIntervalt
BaseAttacktAttackt GetDestPosXt GetDestPosYR R R"tMoveToObj_DeteltStopMovet    FixTagPos(RttagIDttagTypeRRtcurTagR<tdestDist((slE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCAI\AIType_21.pyRws8 !00' 
cCstj|ƒdS(N(R?tDoNPCUseSkillOnDie(RthurtTypethurtID((slE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCAI\AIType_21.pytOnDie´s (RR?R    RDR(R R#R&RR+RRRRRRR(((slE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\NPC\NPCAI\AIType_21.pyt<module>s                              )    =