-- Script by Ates, Add/Remove Stone!
-- Edited by Gelio (bugs fixed)
-- Help by Colandus
-- Streamside modification xd
function onUse(cid, item, fromPosition, itemEx, toPosition)
local pos1 = {x=XXX, y=YYY, z=ZZZ}
local pos2 = {x=XXX, y=YYY, z=ZZZ}
local pos3 = {x=XXX, y=YYY, z=ZZZ}
local tile = "the id of the tile, without the quotes"
local tilepos1 = getThingfromPos(pos1)
local tilepos2 = getThingfromPos(pos2)
local tilepos3 = getThingfromPos(pos3)
if item.itemid == 1945 then -- DO NOT EDIT
doRemoveItem(tilepos1.uid, 1) -- DO NOT EDIT
doRemoveItem(tilepos2.uid, 1)
doRemoveItem(tilepos3.uid, 1)
doTransformItem(item.uid, 1946) -- It transform switch to id 1946
elseif item.itemid == 1946 then -- DO NOT EDIT
doCreateItem(tile, 1, pos1)
doCreateItem(tile, 1, pos2)
doCreateItem(tile, 1, pos3)
-- DO NOT EDIT THIS
doTransformItem(item.uid, 1945) -- It transform switch to id 1945
end
end