local dimension = {
	{ itemid = 12386, position = Position(33639, 32718, 12) },
	{ itemid = 12386, position = Position(33638, 32715, 12) },
	{ itemid = 12386, position = Position(33645, 32715, 12) },
	{ itemid = 12386, position = Position(33644, 32727, 12) },
	{ itemid = 12386, position = Position(33637, 32725, 12) },
	{ itemid = 12386, position = Position(33639, 32713, 12) },
	{ itemid = 12386, position = Position(33638, 32727, 12) },
	{ itemid = 12386, position = Position(33647, 32726, 12) },
	{ itemid = 12386, position = Position(33641, 32714, 12) },
	{ itemid = 12386, position = Position(33643, 32720, 12) },
	{ itemid = 12386, position = Position(33644, 32722, 12) },
	{ itemid = 12386, position = Position(33636, 32717, 12) },
	{ itemid = 12386, position = Position(33636, 32718, 12) },
	{ itemid = 12386, position = Position(33636, 32724, 12) },
	{ itemid = 12386, position = Position(33646, 32726, 12) },
	{ itemid = 12385, position = Position(33637, 32719, 12) },
	{ itemid = 12385, position = Position(33638, 32721, 12) },
	{ itemid = 12385, position = Position(33639, 32716, 12) },
	{ itemid = 12385, position = Position(33636, 32726, 12) },
	{ itemid = 12385, position = Position(33637, 32720, 12) },
	{ itemid = 12385, position = Position(33644, 32721, 12) },
	{ itemid = 12385, position = Position(33645, 32724, 12) },
	{ itemid = 12385, position = Position(33645, 32716, 12) },
	{ itemid = 12385, position = Position(33640, 32712, 12) },
	{ itemid = 12384, position = Position(33646, 32723, 12) },
	{ itemid = 12384, position = Position(33646, 32722, 12) },
	{ itemid = 12384, position = Position(33648, 32727, 12) },
	{ itemid = 12384, position = Position(33647, 32716, 12) },
	{ itemid = 12384, position = Position(33644, 32719, 12) },
	{ itemid = 12384, position = Position(33644, 32715, 12) },
	{ itemid = 12384, position = Position(33642, 32713, 12) },
	{ itemid = 12384, position = Position(33637, 32726, 12) },
	{ itemid = 12384, position = Position(33641, 32718, 12) },
	{ itemid = 12384, position = Position(33645, 32720, 12) },
	{ itemid = 12384, position = Position(33640, 32716, 12) },
	{ itemid = 12384, position = Position(33639, 32726, 12) },
	{ itemid = 12384, position = Position(33635, 32723, 12) },
	{ itemid = 12384, position = Position(33638, 32722, 12) },
	{ itemid = 12384, position = Position(33648, 32715, 12) },
	{ itemid = 12384, position = Position(33648, 32713, 12) },
	{ itemid = 12384, position = Position(33635, 32719, 12) },
	{ itemid = 12384, position = Position(33648, 32712, 12) },
	{ itemid = 12384, position = Position(33634, 32722, 12) },
	{ itemid = 12383, position = Position(33643, 32725, 12) },
	{ itemid = 12383, position = Position(33639, 32724, 12) },
	{ itemid = 12383, position = Position(33639, 32712, 12) },
	{ itemid = 12383, position = Position(33645, 32723, 12) },
	{ itemid = 12383, position = Position(33644, 32724, 12) },
	{ itemid = 12383, position = Position(33641, 32725, 12) },
	{ itemid = 12382, position = Position(33640, 32722, 12) },
	{ itemid = 12382, position = Position(33640, 32719, 12) },
	{ itemid = 12382, position = Position(33645, 32722, 12) },
	{ itemid = 12382, position = Position(33636, 32725, 12) },
	{ itemid = 12382, position = Position(33643, 32715, 12) },
	{ itemid = 12382, position = Position(33638, 32723, 12) },
	{ itemid = 12382, position = Position(33637, 32718, 12) },
	{ itemid = 12382, position = Position(33646, 32727, 12) },
	{ itemid = 12382, position = Position(33634, 32723, 12) },
	{ itemid = 12382, position = Position(33638, 32725, 12) },
	{ itemid = 12382, position = Position(33648, 32714, 12) },
	{ itemid = 12382, position = Position(33640, 32726, 12) },
	{ itemid = 12382, position = Position(33641, 32713, 12) },
	{ itemid = 12382, position = Position(33641, 32712, 12) },
	{ itemid = 12382, position = Position(33641, 32722, 12) },
	{ itemid = 12382, position = Position(33637, 32724, 12) },
	{ itemid = 12382, position = Position(33642, 32726, 12) },
	{ itemid = 12382, position = Position(33643, 32721, 12) },
	{ itemid = 12382, position = Position(33637, 32723, 12) },
	{ itemid = 12382, position = Position(33643, 32717, 12) },
	{ itemid = 12381, position = Position(33648, 32725, 12) },
	{ itemid = 12381, position = Position(33645, 32725, 12) },
	{ itemid = 12381, position = Position(33635, 32724, 12) },
	{ itemid = 12381, position = Position(33642, 32727, 12) },
	{ itemid = 12381, position = Position(33642, 32725, 12) },
	{ itemid = 12381, position = Position(33638, 32716, 12) },
	{ itemid = 12381, position = Position(33647, 32715, 12) },
	{ itemid = 12381, position = Position(33642, 32722, 12) },
	{ itemid = 12381, position = Position(33635, 32718, 12) },
	{ itemid = 12381, position = Position(33644, 32718, 12) },
	{ itemid = 12381, position = Position(33640, 32718, 12) },
	{ itemid = 12381, position = Position(33637, 32717, 12) },
	{ itemid = 12380, position = Position(33638, 32719, 12) },
	{ itemid = 12380, position = Position(33638, 32717, 12) },
	{ itemid = 12380, position = Position(33638, 32720, 12) },
	{ itemid = 12380, position = Position(33640, 32717, 12) },
	{ itemid = 12380, position = Position(33645, 32727, 12) },
	{ itemid = 12380, position = Position(33641, 32721, 12) },
	{ itemid = 12380, position = Position(33644, 32716, 12) },
	{ itemid = 12380, position = Position(33641, 32727, 12) },
	{ itemid = 12380, position = Position(33639, 32714, 12) },
	{ itemid = 12380, position = Position(33645, 32714, 12) },
	{ itemid = 12380, position = Position(33645, 32721, 12) },
	{ itemid = 12380, position = Position(33648, 32716, 12) },
	{ itemid = 12380, position = Position(33639, 32719, 12) },
	{ itemid = 12380, position = Position(33639, 32721, 12) },
	{ itemid = 12380, position = Position(33646, 32715, 12) },
	{ itemid = 12380, position = Position(33639, 32720, 12) },
	{ itemid = 12380, position = Position(33647, 32725, 12) },
	{ itemid = 12379, position = Position(33639, 32727, 12) },
	{ itemid = 12379, position = Position(33636, 32727, 12) },
	{ itemid = 12379, position = Position(33647, 32714, 12) },
	{ itemid = 12379, position = Position(33644, 32717, 12) },
	{ itemid = 12379, position = Position(33640, 32713, 12) },
	{ itemid = 12379, position = Position(33640, 32714, 12) },
	{ itemid = 12379, position = Position(33639, 32725, 12) },
	{ itemid = 12379, position = Position(33639, 32722, 12) },
	{ itemid = 12379, position = Position(33640, 32725, 12) },
	{ itemid = 12379, position = Position(33639, 32723, 12) },
	{ itemid = 12379, position = Position(33635, 32727, 12) },
	{ itemid = 12379, position = Position(33647, 32724, 12) },
	{ itemid = 12379, position = Position(33641, 32726, 12) },
	{ itemid = 12379, position = Position(33646, 32724, 12) },
	{ itemid = 12379, position = Position(33647, 32713, 12) },
	{ itemid = 12379, position = Position(33636, 32719, 12) },
	{ itemid = 12379, position = Position(33644, 32725, 12) },
	{ itemid = 12379, position = Position(33644, 32726, 12) },
	{ itemid = 12379, position = Position(33636, 32720, 12) },
	{ itemid = 12379, position = Position(33640, 32715, 12) },
	{ itemid = 12379, position = Position(33644, 32723, 12) },
	{ itemid = 12379, position = Position(33648, 32717, 12) },
	{ itemid = 12379, position = Position(33644, 32720, 12) },
	{ itemid = 12379, position = Position(33648, 32726, 12) },
	{ itemid = 12379, position = Position(33645, 32717, 12) },
	{ itemid = 12379, position = Position(33646, 32725, 12) },
	{ itemid = 12379, position = Position(33645, 32726, 12) },
	{ itemid = 12379, position = Position(33646, 32716, 12) },
	{ itemid = 12379, position = Position(33646, 32721, 12) },
	{ itemid = 12379, position = Position(33638, 32724, 12) },
	{ itemid = 12379, position = Position(33647, 32727, 12) },
	{ itemid = 12379, position = Position(33638, 32726, 12) },
	{ itemid = 12379, position = Position(33646, 32714, 12) },
	{ itemid = 12379, position = Position(33643, 32716, 12) },
	{ itemid = 12379, position = Position(33638, 32718, 12) },
	{ itemid = 12379, position = Position(33635, 32725, 12) },
	{ itemid = 12379, position = Position(33637, 32727, 12) },
	{ itemid = 12379, position = Position(33638, 32714, 12) },
	{ itemid = 12379, position = Position(33643, 32723, 12) },
	{ itemid = 12379, position = Position(33643, 32722, 12) },
	{ itemid = 12379, position = Position(33640, 32727, 12) },
	{ itemid = 12379, position = Position(33639, 32715, 12) },
	{ itemid = 12379, position = Position(33634, 32724, 12) },
	{ itemid = 12379, position = Position(33642, 32714, 12) },
	{ itemid = 12379, position = Position(33642, 32715, 12) },
	{ itemid = 12379, position = Position(33639, 32717, 12) },
	{ itemid = 12379, position = Position(33642, 32721, 12) },
	{ itemid = 12379, position = Position(33643, 32727, 12) },
	{ itemid = 12379, position = Position(33643, 32726, 12) },
	{ itemid = 12367, position = Position(33634, 32726, 12) },
	{ itemid = 12367, position = Position(33634, 32720, 12) },
	{ itemid = 12367, position = Position(33637, 32712, 12) },
	{ itemid = 12367, position = Position(33635, 32721, 12) },
	{ itemid = 12367, position = Position(33642, 32724, 12) },
	{ itemid = 12367, position = Position(33647, 32718, 12) },
	{ itemid = 12366, position = Position(33646, 32718, 12) },
	{ itemid = 12366, position = Position(33648, 32722, 12) },
	{ itemid = 12365, position = Position(33643, 32712, 12) },
	{ itemid = 12365, position = Position(33648, 32723, 12) },
	{ itemid = 12365, position = Position(33648, 32721, 12) },
	{ itemid = 12365, position = Position(33634, 32716, 12) },
	{ itemid = 12365, position = Position(33647, 32720, 12) },
	{ itemid = 12365, position = Position(33641, 32724, 12) },
	{ itemid = 12365, position = Position(33635, 32721, 12) },
	{ itemid = 12365, position = Position(33636, 32722, 12) },
	{ itemid = 12365, position = Position(33646, 32719, 12) },
	{ itemid = 12364, position = Position(33646, 32712, 12) },
	{ itemid = 12364, position = Position(33636, 32722, 12) },
	{ itemid = 12364, position = Position(33634, 32726, 12) },
	{ itemid = 12364, position = Position(33642, 32724, 12) },
	{ itemid = 12364, position = Position(33644, 32713, 12) },
	{ itemid = 12364, position = Position(33635, 32716, 12) },
	{ itemid = 12364, position = Position(33637, 32713, 12) },
	{ itemid = 12363, position = Position(33635, 32720, 12) },
	{ itemid = 12363, position = Position(33637, 32721, 12) },
	{ itemid = 12363, position = Position(33634, 32725, 12) },
	{ itemid = 12363, position = Position(33643, 32724, 12) },
	{ itemid = 12363, position = Position(33647, 32717, 12) },
	{ itemid = 12363, position = Position(33638, 32712, 12) },
	{ itemid = 12363, position = Position(33642, 32723, 12) },
	{ itemid = 12363, position = Position(33635, 32726, 12) },
	{ itemid = 12363, position = Position(33634, 32718, 12) },
	{ itemid = 12362, position = Position(33640, 32723, 12) },
	{ itemid = 12362, position = Position(33647, 32722, 12) },
	{ itemid = 12362, position = Position(33645, 32718, 12) },
	{ itemid = 12362, position = Position(33646, 32717, 12) },
	{ itemid = 12361, position = Position(33642, 32712, 12) },
	{ itemid = 12361, position = Position(33648, 32724, 12) },
	{ itemid = 12361, position = Position(33646, 32720, 12) },
	{ itemid = 12361, position = Position(33647, 32723, 12) },
	{ itemid = 12361, position = Position(33640, 32724, 12) },
	{ itemid = 12361, position = Position(33634, 32717, 12) },
	{ itemid = 12361, position = Position(33643, 32714, 12) },
	{ itemid = 12361, position = Position(33647, 32721, 12) },
	{ itemid = 12361, position = Position(33636, 32723, 12) },
	{ itemid = 12361, position = Position(33645, 32719, 12) },
	{ itemid = 12361, position = Position(33635, 32722, 12) },
	{ itemid = 12360, position = Position(33637, 32716, 12) },
	{ itemid = 12360, position = Position(33638, 32713, 12) },
	{ itemid = 12360, position = Position(33634, 32727, 12) },
	{ itemid = 12360, position = Position(33637, 32722, 12) },
	{ itemid = 12360, position = Position(33644, 32714, 12) },
	{ itemid = 12360, position = Position(33647, 32712, 12) },
	{ itemid = 12360, position = Position(33646, 32713, 12) },
	{ itemid = 12360, position = Position(33635, 32717, 12) },
	{ itemid = 12359, position = Position(33643, 32713, 12) },
	{ itemid = 12358, position = Position(33636, 32723, 12) },
	{ itemid = 12358, position = Position(33637, 32714, 12) },
	{ itemid = 12358, position = Position(33637, 32715, 12) },
	{ itemid = 12358, position = Position(33634, 32719, 12) },
	{ itemid = 12357, position = Position(33648, 32718, 12) },
	{ itemid = 12357, position = Position(33641, 32723, 12) },
	{ itemid = 12357, position = Position(33636, 32721, 12) },
	{ itemid = 12356, position = Position(33636, 32716, 12) },
	{ itemid = 12356, position = Position(33645, 32713, 12) },
	{ itemid = 12356, position = Position(33643, 32724, 12) },
	{ itemid = 12356, position = Position(33642, 32724, 12) },
	{ itemid = 12356, position = Position(33634, 32721, 12) },
	{ itemid = 12356, position = Position(33641, 32724, 12) },
	{ itemid = 12356, position = Position(33635, 32726, 12) },
	{ itemid = 12355, position = Position(33641, 32717, 12) },
	{ itemid = 12355, position = Position(33641, 32715, 12) },
	{ itemid = 12355, position = Position(33642, 32717, 12) },
	{ itemid = 12355, position = Position(33641, 32716, 12) },
	{ itemid = 12355, position = Position(33642, 32716, 12) },
	{ itemid = 12354, position = Position(33639, 32716, 12) },
	{ itemid = 12354, position = Position(33639, 32712, 12) },
	{ itemid = 12353, position = Position(33643, 32717, 12) },
	{ itemid = 12353, position = Position(33644, 32716, 12) },
	{ itemid = 12352, position = Position(33644, 32715, 12) },
	{ itemid = 12352, position = Position(33642, 32713, 12) },
	{ itemid = 12351, position = Position(33639, 32715, 12) },
	{ itemid = 12351, position = Position(33640, 32714, 12) },
	{ itemid = 12350, position = Position(33642, 32715, 12) },
	{ itemid = 12350, position = Position(33641, 32712, 12) },
	{ itemid = 12349, position = Position(33640, 32715, 12) },
	{ itemid = 12349, position = Position(33641, 32714, 12) },
	{ itemid = 12348, position = Position(33643, 32716, 12) },
	{ itemid = 12347, position = Position(33640, 32712, 12) },
	{ itemid = 12347, position = Position(33640, 32716, 12) },
	{ itemid = 12347, position = Position(33641, 32713, 12) },
	{ itemid = 12346, position = Position(33642, 32714, 12) },
	{ itemid = 12083, position = Position(33643, 32715, 12) },
	{ itemid = 12490, position = Position(33641, 32717, 12) },
	{ itemid = 12490, position = Position(33646, 32720, 12) },
	{ itemid = 12488, position = Position(33642, 32724, 12) },
	{ itemid = 12487, position = Position(33636, 32722, 12) },
	{ itemid = 10604, position = Position(33639, 32722, 12) },
	{ itemid = 10603, position = Position(33641, 32722, 12) },
	{ itemid = 10603, position = Position(33644, 32720, 12) },
	{ itemid = 10603, position = Position(33643, 32721, 12) },
	{ itemid = 10602, position = Position(33644, 32717, 12) },
	{ itemid = 10601, position = Position(33639, 32719, 12) },
	{ itemid = 10601, position = Position(33640, 32718, 12) },
	{ itemid = 10601, position = Position(33641, 32717, 12) },
	{ itemid = 10599, position = Position(33640, 32719, 12) },
	{ itemid = 10599, position = Position(33641, 32718, 12) },
	{ itemid = 10598, position = Position(33643, 32720, 12) },
	{ itemid = 10598, position = Position(33641, 32721, 12) },
	{ itemid = 10596, position = Position(33644, 32719, 12) },
	{ itemid = 10596, position = Position(33644, 32718, 12) },
	{ itemid = 10595, position = Position(33642, 32721, 12) },
	{ itemid = 10595, position = Position(33640, 32722, 12) },
	{ itemid = 10594, position = Position(33639, 32720, 12) },
	{ itemid = 10594, position = Position(33639, 32721, 12) },
	{ itemid = 10593, position = Position(33643, 32717, 12) },
	{ itemid = 10593, position = Position(33642, 32717, 12) },
	{ itemid = 10592, position = Position(33642, 32718, 12) },
	{ itemid = 10592, position = Position(33643, 32718, 12) },
	{ itemid = 10592, position = Position(33641, 32719, 12) },
	{ itemid = 10592, position = Position(33642, 32719, 12) },
	{ itemid = 10592, position = Position(33643, 32719, 12) },
	{ itemid = 10592, position = Position(33640, 32720, 12) },
	{ itemid = 10592, position = Position(33641, 32720, 12) },
	{ itemid = 10592, position = Position(33642, 32720, 12) },
	{ itemid = 10592, position = Position(33640, 32721, 12) },
	{ itemid = 417, position = Position(33635, 32716, 12) },
	{ itemid = 417, position = Position(33635, 32720, 12) },
	{ itemid = 417, position = Position(33647, 32720, 12) },
	{ itemid = 417, position = Position(33635, 32721, 12) },
	{ itemid = 417, position = Position(33635, 32726, 12) },
	{ itemid = 417, position = Position(33647, 32721, 12) },
	{ itemid = 417, position = Position(33635, 32713, 12) },
	{ itemid = 417, position = Position(33636, 32712, 12) },
	{ itemid = 417, position = Position(33647, 32723, 12) },
	{ itemid = 417, position = Position(33647, 32719, 12) },
	{ itemid = 417, position = Position(33635, 32717, 12) },
	{ itemid = 417, position = Position(33647, 32718, 12) },
	{ itemid = 417, position = Position(33635, 32715, 12) },
	{ itemid = 417, position = Position(33647, 32717, 12) },
	{ itemid = 417, position = Position(33635, 32714, 12) },
	{ itemid = 417, position = Position(33635, 32722, 12) },
	{ itemid = 417, position = Position(33647, 32722, 12) },
	{ itemid = 417, position = Position(33635, 32712, 12) },
	{ itemid = 417, position = Position(33634, 32720, 12) },
	{ itemid = 417, position = Position(33634, 32726, 12) },
	{ itemid = 417, position = Position(33634, 32715, 12) },
	{ itemid = 417, position = Position(33648, 32722, 12) },
	{ itemid = 417, position = Position(33634, 32716, 12) },
	{ itemid = 417, position = Position(33648, 32721, 12) },
	{ itemid = 417, position = Position(33648, 32723, 12) },
	{ itemid = 417, position = Position(33648, 32724, 12) },
	{ itemid = 417, position = Position(33634, 32714, 12) },
	{ itemid = 417, position = Position(33634, 32713, 12) },
	{ itemid = 417, position = Position(33634, 32727, 12) },
	{ itemid = 417, position = Position(33634, 32717, 12) },
	{ itemid = 417, position = Position(33648, 32719, 12) },
	{ itemid = 417, position = Position(33634, 32721, 12) },
	{ itemid = 417, position = Position(33634, 32725, 12) },
	{ itemid = 417, position = Position(33648, 32720, 12) },
	{ itemid = 417, position = Position(33636, 32713, 12) },
	{ itemid = 417, position = Position(33634, 32718, 12) },
	{ itemid = 417, position = Position(33634, 32719, 12) },
	{ itemid = 417, position = Position(33648, 32718, 12) },
	{ itemid = 417, position = Position(33636, 32714, 12) },
	{ itemid = 417, position = Position(33646, 32713, 12) },
	{ itemid = 417, position = Position(33647, 32712, 12) },
	{ itemid = 417, position = Position(33641, 32723, 12) },
	{ itemid = 417, position = Position(33641, 32724, 12) },
	{ itemid = 417, position = Position(33642, 32712, 12) },
	{ itemid = 417, position = Position(33645, 32712, 12) },
	{ itemid = 417, position = Position(33645, 32713, 12) },
	{ itemid = 417, position = Position(33640, 32724, 12) },
	{ itemid = 417, position = Position(33640, 32723, 12) },
	{ itemid = 417, position = Position(33645, 32718, 12) },
	{ itemid = 417, position = Position(33644, 32714, 12) },
	{ itemid = 417, position = Position(33644, 32712, 12) },
	{ itemid = 417, position = Position(33643, 32713, 12) },
	{ itemid = 417, position = Position(33643, 32714, 12) },
	{ itemid = 417, position = Position(33644, 32713, 12) },
	{ itemid = 417, position = Position(33643, 32712, 12) },
	{ itemid = 417, position = Position(33642, 32723, 12) },
	{ itemid = 417, position = Position(33642, 32724, 12) },
	{ itemid = 417, position = Position(33643, 32724, 12) },
	{ itemid = 417, position = Position(33636, 32715, 12) },
	{ itemid = 417, position = Position(33645, 32719, 12) },
	{ itemid = 417, position = Position(33638, 32713, 12) },
	{ itemid = 417, position = Position(33637, 32712, 12) },
	{ itemid = 417, position = Position(33637, 32713, 12) },
	{ itemid = 417, position = Position(33637, 32714, 12) },
	{ itemid = 417, position = Position(33636, 32723, 12) },
	{ itemid = 417, position = Position(33636, 32721, 12) },
	{ itemid = 417, position = Position(33636, 32722, 12) },
	{ itemid = 417, position = Position(33636, 32716, 12) },
	{ itemid = 417, position = Position(33646, 32712, 12) },
	{ itemid = 417, position = Position(33646, 32720, 12) },
	{ itemid = 417, position = Position(33646, 32719, 12) },
	{ itemid = 417, position = Position(33637, 32722, 12) },
	{ itemid = 417, position = Position(33638, 32712, 12) },
	{ itemid = 417, position = Position(33637, 32715, 12) },
	{ itemid = 417, position = Position(33646, 32717, 12) },
	{ itemid = 417, position = Position(33646, 32718, 12) },
	{ itemid = 417, position = Position(33637, 32721, 12) },
	{ itemid = 417, position = Position(33637, 32716, 12) },
	{ itemid = 417, position = Position(33634, 32712, 12) },
	{ itemid = 12084, position = Position(33640, 32718, 12) },
	{ itemid = 12084, position = Position(33640, 32717, 12) },
}

local function transformArea()
	for x = 33634, 33648 do
		for y = 32712, 32727 do
			local position = Position(x, y, 12)
			local tile = Tile(position)
			if not tile then
				return
			end
			local ground = tile:getGround()
			if not ground then
				return
			end
			local grounds = ground:getId()
			local items = tile:getItems()
			if items then
				for i = 1, #items do
					local item = items[i]
					if item then
						item:remove()
					end
				end
			end
			ground:remove()
		end
	end
	for i = 1, #dimension do
		local item = dimension[i]
		local ground = Tile(item.position):getGround()
		local transformid = item.itemid
		local tp = Game.createItem(item.itemid, 1, item.position)
	end
	return true
end

local function resetFerumbrasAscendantHabitats(player)
	player:setStorageValue(Storage.Quest.U10_90.FerumbrasAscension.Habitats.Roshamuul, -1)
	player:setStorageValue(Storage.Quest.U10_90.FerumbrasAscension.Habitats.Grass, -1)
	player:setStorageValue(Storage.Quest.U10_90.FerumbrasAscension.Habitats.Mushroom, -1)
	player:setStorageValue(Storage.Quest.U10_90.FerumbrasAscension.Habitats.Desert, -1)
	player:setStorageValue(Storage.Quest.U10_90.FerumbrasAscension.Habitats.Venom, -1)
	player:setStorageValue(Storage.Quest.U10_90.FerumbrasAscension.Habitats.Ice, -1)
	player:setStorageValue(Storage.Quest.U10_90.FerumbrasAscension.Habitats.Corrupted, -1)
	player:setStorageValue(Storage.Quest.U10_90.FerumbrasAscension.Habitats.Dimension, -1)
	player:setStorageValue(Storage.Quest.U10_90.FerumbrasAscension.Habitats.AllHabitats, 0)
end

local ferumbrasAscendantHabitatDimension = Action()

function ferumbrasAscendantHabitatDimension.onUse(player, item, fromPosition, target, toPosition, isHotkey)
	if item.itemid == 9125 then
		if player:getStorageValue(Storage.Quest.U10_90.FerumbrasAscension.Habitats.Dimension) >= 1 then
			player:say("The lever are stuck, need some time to it can be movable again.", TALKTYPE_MONSTER_SAY)
			return true
		end
		Game.createMonster("lovely souleater", Position(33642, 32722, 12), true, true)
		addEvent(transformArea, 2 * 1000)
		item:transform(9126)
		local basin = Tile(Position(33631, 32721, 12)):getItemById(11114)
		if basin then
			basin:getPosition():sendMagicEffect(CONST_ME_ENERGYAREA)
			basin:transform(22196)
		end
		player:setStorageValue(Storage.Quest.U10_90.FerumbrasAscension.Habitats.Dimension, 1)
		player:setStorageValue(Storage.Quest.U10_90.FerumbrasAscension.Habitats.AllHabitats, player:getStorageValue(Storage.Quest.U10_90.FerumbrasAscension.Habitats.AllHabitats) + 1)
		player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "The room transforms into a completely different landscape.")
		if player:getStorageValue(Storage.Quest.U10_90.FerumbrasAscension.Habitats.AllHabitats) >= 7 then
			addEvent(function()
				resetFerumbrasAscendantHabitats(player)
				local basin = Tile(Position(33631, 32721, 12)):getItemById(22196)
				if basin then
					basin:getPosition():sendMagicEffect(CONST_ME_ENERGYAREA)
					basin:transform(11114)
				end
			end, 1 * 60 * 60 * 1000)
		end
	elseif item.itemid == 9126 then
		item:transform(9125)
	end
	return true
end

ferumbrasAscendantHabitatDimension:aid(34312)
ferumbrasAscendantHabitatDimension:register()
