LUA:
function onUse(cid, item, frompos, item2, topos)
local door = getThingFromPos(doorPos)
local doorPos = {x=401, y=766, z=2}
doTransformItem(door.uid, door.itemid + 1)
return true
end
when using lever the door should open.
errorlog:
Code:
attempt to index a nil value