local config = {
monster = { -- Monster Name, Teleport Position
["Cult Assassin"] = {pos={ x=1400, y=1200, z=7, stackpos=2 }},
}
}
function onKill(cid, target, lastHit)
if(config.monster[getCreatureName(target)]) then
local t = config.monster[getCreatureName(target)]
local position = t.pos
doSendMagicEffect(getThingPos(cid), CONST_ME_TELEPORT)
doTeleportThing(cid, t.pos)
doSendMagicEffect(t.pos, CONST_ME_TELEPORT)
end
return TRUE
end