• 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!
  • If you're using Gesior 2012 or MyAAC, please review this thread for information about a serious security vulnerability and a fix.

TFS 0.X TFS 0.3.7 EDIT Bridge Lever Actions

OTcreator

Banned User
Joined
Feb 14, 2022
Messages
51
Reaction score
2
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
 
Top