Fredrikli
Member
- Joined
- May 26, 2010
- Messages
- 133
- Reaction score
- 7
Code:
function onUse(cid, item, frompos, item2, topos)
if item.itemid == 9827 then
doChangeTypeItem(item.uid, 9828)
addEvent(doChangeTypeItem, 3 * 1000, item.uid, 9827)
end
end
When i use the lever, it should just stay "used" for 3 seconds, and then return to it's original state.
After 3 seconds i get this in my console:
Code:
[Error - Action Interface]
In a timer event called from:
data/action/scripts/lever.lua:onUse
Description:
(LuaInterface::luaGetThing) Thing not found
What am I doing wrong?
Thanks in advance!