local scrollOfAscencion = Action()

function scrollOfAscencion.onUse(player, item, fromPosition, target, toPosition, isHotkey)
	if math.random(10) > 1 then
		player:setMonsterOutfit("Demon", 30 * 10 * 1000)
	else
		player:setMonsterOutfit("Ferumbras", 30 * 10 * 1000)
	end
	item:transform(22772)
	item:getPosition():sendMagicEffect(CONST_ME_MAGIC_RED)
	item:decay()
	player:say("Magical sparks whirl around the scroll as you read it and then your appearance is changing.", TALKTYPE_MONSTER_SAY)
	return true
end

scrollOfAscencion:id(22771)
scrollOfAscencion:register()
