#!/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
|