local config = {
pos = { x = XXX, y = XXX, z = XXX, stackpos = 0 },
pPos = {x = XXX, y = XXX, z = XXX, stackpos = 253 },
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.itemid == 1945 then
doTransformItem(item.uid,item.itemid+1)
doTransformItem(getThingfromPos(config.pos).uid,5770)
elseif item.itemid == 1946 then
doTransformItem(item.uid,item.itemid-1)
doTransformItem(getThingfromPos(config.pos).uid,4616)
if isCreature(getThingfromPos(config.pPos).uid) == TRUE then
doMoveCreature(getThingfromPos(config.pPos).uid,WEST)
end
end
return TRUE
end