local t = {
teleportTo = {x=1000,y=1000,z=7},
monsterName = 'koshei the deathless'
}
function onKill(cid, target, flags)
if getCreatureName(target):lower() == t.monsterName:lower() then
doSendMagicEffect(getThingPos(cid), CONST_ME_TELEPORT)
doTeleportThing(cid, t.teleportTo)
doSendMagicEffect(t.teleportTo, CONST_ME_TELEPORT)
end
return true
end
<event type="kill" name="[B]EVENT_NAME[/B]" event="script" value="[B]SCRIPT_NAME[/B].lua"/>