function onUse(player, item, fromPosition, target, toPosition)
	if item:getId() == 2772 and Game.isItemThere({x = 32614, y = 32209, z = 10},2523) then 
		Game.removeItemOnMap({x = 32614, y = 32209, z = 10}, 2523)
		Game.removeItemOnMap({x = 32614, y = 32208, z = 10}, 1270)
		doRelocate({x = 32614, y = 32209, z = 10},{x = 32614, y = 32208, z = 10})
		Game.createItem(2523, 1, {x = 32614, y = 32208, z = 10})
		Game.createItem(1270, 1, {x = 32614, y = 32209, z = 10})
		Game.removeItemOnMap({x = 32614, y = 32206, z = 10}, 1791)
		Game.removeItemOnMap({x = 32614, y = 32205, z = 10}, 1270)
		Game.createItem(1810, 1, {x = 32614, y = 32204, z = 10})
		Game.removeItemOnMap({x = 32614, y = 32221, z = 10}, 1270)
		Game.removeItemOnMap({x = 32615, y = 32223, z = 10}, 1946)
		Game.createItem(1796, 1, {x = 32615, y = 32223, z = 10})
		Game.createItem(2123, 1, {x = 32615, y = 32221, z = 10})
		Game.createItem(2124, 1, {x = 32615, y = 32223, z = 10})
		Game.createItem(2123, 1, {x = 32613, y = 32220, z = 10})
		Game.sendMagicEffect({x = 32613, y = 32220, z = 10}, 9)
		item:transform(2773, 1)
		item:decay()
		Game.removeItemOnMap({x = 32613, y = 32220, z = 10}, 3050)
		Game.createItem(1823, 1, {x = 32614, y = 32205, z = 10})
		Game.createItem(1270, 1, {x = 32614, y = 32206, z = 10})
		Game.sendMagicEffect({x = 32615, y = 32224, z = 10}, 16)
		Game.sendMagicEffect({x = 32614, y = 32224, z = 10}, 16)
	elseif item:getId() == 2772 then 
		doRelocate({x = 32614, y = 32209, z = 10},{x = 32613, y = 32209, z = 10})
		Game.removeItemOnMap({x = 32614, y = 32221, z = 10}, 1270)
		Game.removeItemOnMap({x = 32615, y = 32223, z = 10}, 1946)
		Game.createItem(1796, 1, {x = 32615, y = 32223, z = 10})
		Game.createItem(2123, 1, {x = 32615, y = 32221, z = 10})
		Game.createItem(2124, 1, {x = 32615, y = 32223, z = 10})
		Game.createItem(2123, 1, {x = 32613, y = 32220, z = 10})
		Game.sendMagicEffect({x = 32613, y = 32220, z = 10}, 9)
		Game.createItem(1270, 1, {x = 32614, y = 32209, z = 10})
		item:transform(2773, 1)
		item:decay()
		Game.removeItemOnMap({x = 32613, y = 32220, z = 10}, 3050)
	elseif item:getId() == 2773 then 
		Game.sendMagicEffect({x = 32616, y = 32222, z = 10}, 3)
	end
	return true
end