local cultsOfTibiaMagnifier = Action()
function cultsOfTibiaMagnifier.onUse(player, item, fromPosition, target, toPosition, isHotkey)
	local sqm = Position(33296, 32140, 8)
	local tile = Tile(Position(target:getPosition()))

	if not player then
		return true
	end

	if not target:isItem() then
	return false
	end

	if target:isCreature() then
	return false
	end

	if (isInArray({2622, 2601, 2596, 2612, 2618}, target:getId())) then
		player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Nothing special. This picture looks genuine.")
		target:getPosition():sendMagicEffect(CONST_ME_POFF)
	elseif target:getPosition() == sqm and target:getId() == 2613 and player:getStorageValue(Storage.CultsOfTibia.MotA.Mission) == 8 then
		target:getPosition():sendMagicEffect(CONST_ME_POFF)
		player:setStorageValue(Storage.CultsOfTibia.MotA.Mission, 9)
		player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "This is it. It looks like it was painted by a child!")
	end

	return true
end

cultsOfTibiaMagnifier:id(25306)
cultsOfTibiaMagnifier:register()