1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Sð    hc@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((sV.\\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((sV.\\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!((sV.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GM\Commands\KillScreenNPC.pyRAs  cCsN| s.|jƒdks.tj|ƒdkr2dS|jƒ}tj|ƒ}|rl|rl||krdSn|tjkrdS|jƒtj    kr˜dS|j
ƒtj tj tj gkrÀdS|jƒsÐdStj||ƒsædStj|ƒ}tj||||ƒtj|dƒ|jtj|jƒƒtj||d|ƒdS(Ni(RtGameObjtGetHPt
GetFactiont    NPCCommonR tCampType_Justicet GetCurActionRtlaNPCDietGetTypet    ntMonstertntPriWoodPilePVEtntPriWoodPilePVPt
GetVisiblet AttackCommontCheckSightLeveltNPCAddObjInHurtListtSetHPtSetDicttDef_PlayerKey_LastHurtt GetPlayerIDt
BaseAttacktDoLogic_AttackResultR(RR!Rt
curFactiont
npcFactiontcurHP((sV.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GM\Commands\KillScreenNPC.pyRIs..   $     ( RRR R:R3R'R*RRRR(((sV.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\GM\Commands\KillScreenNPC.pyt<module>s