Creaturescripts
TAG:
<event type="kill" name="SummonTeleport" event="script" value="summonteleport.lua"/>
Script:
function onKill(cid, target, lasthit)
if isMonster(target) and getCreatureMaster(target) ~= target then
if isPlayer(getCreatureMaster(target)) then
player = getCreatureMaster(target)
pos = {x = 1234, y = 1234, z = 7}
doTeleportThing(player, pos)
end
end
return true
end
Login.lua:
registerCreatureEvent(cid, "SummonTeleport")
XML do Monstro:
<script>
<event name="SummonTeleport"/>
</script>