i tried:
local rewardRoom = Position(8675, 8748, 7)
function onDeath(creature, corpse, killer, mostDamageKiller, lastHitUnjustified)
addEvent(teleportTo, 5000, rewardRoom)
rewardRoom:sendMagicEffect(CONST_ME_TELEPORT)
killer:unregisterEvent("bossroom death")
bossRoom.player = nil...