1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
 
Gpec@s|ddlZddlZddlZddlZddlZddlZddlZd„Zd„Zd„Z    d„Z
dS(iÿÿÿÿNcCsFd}t|ƒdkr%|d}n|r8t|ƒn
t|ƒdS(Ni(tlent__KillMapAllNPCt__KillScreenNPC(t    curPlayert
playerListt isMapAllNPC((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GM\Commands\KillScreenNPC.pytOnExec!s  
c    Cs/tjƒ}tjƒjƒ}x
t|jƒtj|jƒtjƒD]ß}xÖt|jƒtj|jƒtjƒD]«}|j    ||ƒ}|sœqxnx„td|j
ƒƒD]m}|j |ƒ}|dkrÙq²n|j ƒtjkrôq²ntj|jƒtjƒ}t|||ƒq²WqxWqHWdS(Ni(t    GameWorldtGetMapt GetGameWorldtGetTicktrangetGetPosXtChConfigtDef_Screen_AreatGetPosYt    GetPosObjt GetObjCountt GetObjByIndextNonetGetGameObjTypet IPY_GameWorldtgotNPCtGetObjtGetIDt __DoKillNPC(    RtgameMaptticktitjttempObjtktcurObjtcurNPC((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GM\Commands\KillScreenNPC.pyR-s  00 cCs^tjƒjƒ}tjƒ}x9t|jƒƒD]%}|j|ƒ}t|||ƒq1WdS(N(RR    R
t GetNPCManagerR t GetNPCCountt GetNPCByIndexR(RRtgameNPCManagertindexR!((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GM\Commands\KillScreenNPC.pyRAs  cCsT| s.|jƒdks.tj|ƒdkr2dS|jƒ}tj|ƒ}|rl|rl||krdSn|tjkrdS|jƒtj    kr˜dS|j
ƒtj tj tj tjgkrÆdS|jƒsÖdStj||ƒsìdStj|ƒ}tj||||ƒtj|dƒ|jtj|jƒƒtj||d|ƒdS(Ni(RtGameObjtGetHPt
GetFactiont    NPCCommonR tCampType_Justicet GetCurActionRtlaNPCDietGetTypet    ntMonstertntPriWoodPilePVEtntPriWoodPilePVPtntPVPt
GetVisiblet AttackCommontCheckSightLeveltNPCAddObjInHurtListtSetHPtSetDicttDef_PlayerKey_LastHurtt GetPlayerIDt
BaseAttacktDoLogic_AttackResultR(RR!Rt
curFactiont
npcFactiontcurHP((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GM\Commands\KillScreenNPC.pyRIs..   *     ( RRR R;R4R'R*RRRR(((srE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GM\Commands\KillScreenNPC.pyt<module>s