local citizenSvargrond = MoveEvent()

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

	if player:getStorageValue(Storage.Quest.U8_0.BarbarianTest.Questline) == 8 then
		player:teleportTo(Position(32212, 31131, 5))
	else
		player:teleportTo(Position(32210, 31134, 7))
		player:say("You have to be a honorary barbarian to access the roof. Talk to the Jarl about it.", TALKTYPE_MONSTER_SAY)
	end

	player:setDirection(DIRECTION_EAST)
	player:getPosition():sendMagicEffect(CONST_ME_TELEPORT)
	return true
end

citizenSvargrond:type("stepin")
citizenSvargrond:aid(30032)
citizenSvargrond:register()
