local config = {
item = 2160,
toget = 8930,
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
local pos = {x = 1052, y = 1473, z = 6}
if getTileItemById(pos, config.item).uid > 0 then
if doRemoveItem(getTileItemById(pos, config.item).uid,1) then
if item.itemid == 1945 then
doTransformItem(item.uid, 1946)
elseif item.itemid == 1946 then
doTransformItem(item.uid, 1945)
end
doPlayerAddItem(cid, config.toget)
return true
end
end
doPlayerSendTextMessage(cid, MESSAGE_EVENT_ORANGE, "You dont have put the right items on the table!")
return true
end