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
30
31
32
33
34
35
#!/usr/bin/python
# -*- coding: GBK -*-
 
##@package test_OnKill
# ²éѯ»÷ɱÊýÁ¿
#
# @author Administrator
# @date 2010-4-23
# @version 1.0
#
# ÐÞ¸Äʱ¼ä ÐÞ¸ÄÈË ÐÞ¸ÄÄÚÈÝ
# @change: "2010-05-12 18:30" zhengyang Ìí¼Ó×¢ÊÍ
# @change: "2010-05-31 20:00" alee º¯Êý²ÎÊý±ä¸ü
# Ä£¿éÏêϸ˵Ã÷
 
import EventShell
import GameWorld
 
#
#2008-3-7 ÏÂÎç05:13:14
#<NpcID  ÊýÁ¿>
## GMÃüÁîÖ´ÐÐÈë¿Ú
#  @param curPlayer µ±Ç°Íæ¼Ò
#  @param playerList ²ÎÊýÁбí [ÊýÁ¿]
#  @return None
#  @remarks º¯ÊýÏêϸ˵Ã÷.
def OnExec(curPlayer,playerList):
    if not playerList or len(playerList) > 2:
        GameWorld.DebugAnswer(curPlayer, "test_OnKill npcID ¸öÊý")
        return
    npcID = playerList[0]
    count = playerList[1] if len(playerList) > 1 else 1
    for _ in xrange(count):
        EventShell.Event_OnKillByID(curPlayer, npcID)
    return