I wonder if it could be well scripted.
XML:
<action actionid="3000" event="script" value="secretlever.lua"/>
Lua:
local config = {2552, 2548}
function onUse(cid, item, fromPosition, itemEx, toPosition)
local leverState = -1
local leverItem = getTileItemById(fromPosition, config[1])
if leverItem.uid > 0 then
doTransformItem(leverItem.uid, config[2])
leverState = 1
else
leverItem = getTileItemById(fromPosition, config[2])
if leverItem.uid > 0 then
doTransformItem(leverItem.uid, config[1])
leverState = 0
else
return false
end
end
if leverState == 0 then
doPlayerSay(cid, "Lever is up")
elseif leverState == 1 then
doPlayerSay(cid, "Lever is down")
end
return true
end
Feel free to create a thread with that whole idea