• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

dont know how to edit this to work propertly with 7.6

tompan

Member
Joined
Dec 13, 2008
Messages
646
Reaction score
24
Location
Sweden
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:
Back
Top