-- Script by Ates, Add/Remove Stone!
function onUse(cid, item, fromPosition, itemEx, toPosition)
local pos = {x=31745, y=31950, z=11, stackpos=1}
local stone = 1304
local stoneFromPos = getThingfromPos(pos)
if item.itemid == 1945 and item.uid == 60007 then
doRemoveItem(stoneFromPos.uid, 1)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You removed a Stone.")
doTransformItem(item.uid,item.id+1)
elseif item.itemid == 1946 and item.uid == 60007 then
doCreateItem(stone, 1, pos)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You added a Stone.")
doTransformItem(item.uid,item.id-1)
end
end