- A script made by Clary 100% by a request from jpkulik
---------------------------- Start Config ----------------------------
local wallpos = {x=1000, y=1000, z=7, stackpos=1} -- Stone pos
local WALLID = 1414 -- wall id
----------------------------- End Config -----------------------------
function onUse(cid, item, fromPos, item2, toPos)
if item.actionid == 29001 and item.itemid == 1945 then
doRemoveItem(getThingfromPos(wallpos).uid)
doTransformItem(item.uid,1946)
else
doCreateItem(WALLID, 1, wallpos)
doTransformItem(item.uid, 1945)
end
return 1
end