this is not a 7.6 script in the begining ive tried to edit it to work.. now i need some help.
Code:
function onUse(cid, item, frompos, item2, topos)
local pos = {X=749, Y=1043, Z=7} -- The Pos [EDIT HERE][Example: X=794, Y=1045, Z=7]
local stone = 1284 -- ID of the stone [DO NOT EDIT]
local stoneFromPos = getThingfromPos(pos) -- It get item uid
if item.itemid == 1945 then -- DO NOT EDIT
doRemoveItem(stoneFromPos.uid, 1) -- DO NOT EDIT
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You removed the bridge.") -- DO NOT EDIT
doTransformItem(item.uid, 1946) -- It transform switch to id 1946
elseif item.itemid == 1946 then -- DO NOT EDIT
doCreateItem(stone, 1, pos) -- DO NOT EDIT
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You added the bridge.") -- DO NOT EDIT
doTransformItem(item.uid, 1945) -- It transform switch to id 1945
end
end
Last edited: