Yo guys.
I'm new in lua but i have a question:
function onDeath(creature, corpse, killer, mostDamageKiller, lastHitUnjustified)
addEvent(teleport, 5000, player:getId(), rewardRoom)
rewardRoom:sendMagicEffect(CONST_ME_TELEPORT)
killer:unregisterEvent("bossroom death")...