function onUse(cid, item, fromPosition, itemEx, toPosition)
local id,pos,x = 1284,{x=1023, y=1017, z=8},true
if getTileItemById(pos, id).uid == 0 then x = false end
if x == true then
doRemoveItem(getThingfromPos(pos).uid,1)
else
doCreateItem(id, 1, pos)
end
local id,pos,x = 1284,{x=1024, y=1017, z=8},true
if getTileItemById(pos, id).uid == 0 then x = false end
if x == true then
doRemoveItem(getThingfromPos(pos).uid,1)
else
doCreateItem(id, 1, pos)
end
local id,pos,x = 1284,{x=1025, y=1017, z=8},true
if getTileItemById(pos, id).uid == 0 then x = false end
if x == true then
doRemoveItem(getThingfromPos(pos).uid,1)
else
doCreateItem(id, 1, pos)
end
local id,pos,x = 1284,{x=1026, y=1017, z=8},true
if getTileItemById(pos, id).uid == 0 then x = false end
if x == true then
doRemoveItem(getThingfromPos(pos).uid,1)
else
doCreateItem(id, 1, pos)
end
local id,pos,x = ITEM,{x=POS, y=POS, z=POS},true
if getTileItemById(pos, id).uid == 0 then x = false end
if x == true then
doRemoveItem(getThingfromPos(pos).uid,1)
else
doCreateItem(id, 1, pos)
end
doTransformItem(item.uid, item.itemid == 1945 and 1946 or 1945)
return true
end