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?
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