function onUse(cid, item, frompos, item2, topos)
wall1 = {x=392, y=1195, z=8, stackpos=0}
wall2 = {x=392, y=1195, z=8, stackpos=1}
wall3 = {x=393, y=1195, z=8, stackpos=0}
wall4 = {x=393, y=1195, z=8, stackpos=1}
getwall1 = getThingfromPos(wall1)
getwall2 = getThingfromPos(wall2)
getwall3 = getThingfromPos(wall3)
getwall4 = getThingfromPos(wall4)
if (item.uid == 9018 or item.uid == 9019) and item.itemid == 1945 then
doRemoveItem(getwall1.uid,1)
doCreateItem(493,0,wall1)
doCreateItem(4799,1,wall1)
doRemoveItem(getwall3.uid,1)
doCreateItem(493,0,wall3)
doCreateItem(4797,1,wall3)
doTransformItem(item.uid,item.itemid+1)
elseif (item.uid == 9018 or item.uid == 9019) and item.itemid == 1946 then
doRemoveItem(getwall1.uid,1)
doRemoveItem(getwall2.uid,1)
doCreateItem(5770,1,wall1)
doRemoveItem(getwall3.uid,1)
doRemoveItem(getwall4.uid,1)
doCreateItem(5770,1,wall3)
doTransformItem(item.uid,item.itemid-1)
else
doPlayerSendCancel(cid,"Sorry, not possible.")
end
return 1
end
addEvent(revert, 10 * 60 * 1000, a)
function revert(item)
doTransformItem(item.uid, 1945)
end