• 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!

TFS 0.X TFS 0.3.7 EDIT Bridge Lever Actions

OTcreator

Active Member
Joined
Feb 14, 2022
Messages
412
Solutions
1
Reaction score
44
Hello.
I have script, when I pull lever my ground change to stairs. But when I re-pull not back to ground ID.
How change this?

Lua:
local te = {x = 1113, y = 548, z = 7} -- Position of the stone.
function onUse(cid, item, fromPosition, itemEx, toPosition)
    local ste = getTileItemById(te, 804) -- STONE ID
    if ste.uid > 0 then
        doTransformItem(ste.uid, 8560, 1) -- LADDER ID
    end
    return doTransformItem(item.uid, item.itemid == 1945 and 1946 or 1945)
end
 
Back
Top