Just a fix on these 2 levers, I can't do it I'll rep++
Code:
local tilepos = {x=32860, y=32313, z=11, stackpos=0}
function onUse(cid, item, frompos, item2, topos)
local tile = getThingfromPos(tilepos)
local pos = {x=32860, y=32305, z=11}
if (item.uid == 10209 and item.itemid == 1945 and tile.itemid == 386) then
doRemoveItem(tile.uid,1)
doTransformItem(item.uid,1946)
elseif (item.uid == 10209 and item.itemid == 1946) then
doCreateItem(386,1,tilepos)
doTransformItem(item.uid,1945)
pos.stackpos = 253
if getThingfromPos(pos).itemid > 0 then
doMoveCreature(getThingFromPos(pos).uid, SOUTH)
end
else
doPlayerSendCancel(cid,"Sorry, not possible.")
end
return 1
end
Code:
~local tilepos = {x=32861, y=32305, z=11, stackpos=0}
local tilepos2 = {x=32861, y=32305, z=11, stackpos=1}
local tilepos3 = {x=32861, y=32305, z=11, stackpos=2}
function onUse(cid, item, frompos, item2, topos)
local tile = getThingfromPos(tilepos)
local tile2 = getThingfromPos(tilepos2)
local tile3 = getThingfromPos(tilepos3)
local pos = {x=32861, y=32305, z=11}
if (item.uid == 10208 and item.itemid == 1945 and tile.itemid == 598) then
doRemoveItem(tile2.uid,1)
doRemoveItem(tile3.uid,1)
doTransformItem(tile.uid,1284)
doTransformItem(item.uid,1946)
elseif (item.uid == 10208 and item.itemid == 1946) then
doTransformItem(tile.uid,598)
doCreateItem(4810,1,tilepos2)
doCreateItem(4808,1,tilepos3)
doTransformItem(item.uid,1945)
pos.stackpos = 253
if getThingfromPos(pos).itemid > 0 then
doMoveCreature(getThingFromPos(pos).uid, SOUTH)
end
else
doPlayerSendCancel(cid,"Sorry, not possible.")
end
return 1
end