local SPECIAL_QUESTS = {2215, 2216, 10544, 12374, 12513, 26300, 27300, 28300}

function onStepIn(creature, item, position, fromPosition)
	local player = creature:getPlayer()
	if not player then
		return true
	end

	if (Container(item.uid) and not isInArray(SPECIAL_QUESTS, item.actionid) and item.uid > 65535) then
		return true
	end

	if position == fromPosition then
		if creature:isPlayer() then
			local temple = creature:getTown():getTemplePosition()
			creature:teleportTo(temple, false)
		else
			creature:remove()
		end
	else
		creature:teleportTo(fromPosition, false)
	end

	return true
end