SoloQ
Hard With Style
Hi guys,
I am trying to make my poi work so for the lava walls you encounter I made this:
Error in console is : unexpected symbol near 'and'
Helpzzzz
-Hansie
I am trying to make my poi work so for the lava walls you encounter I made this:
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local cfg = {
p = {
wall_ = { x = 32831, y = 32333, z = 11 }, -- Where the wall is.
lever = { x = 32820, y = 32321, z = 10 } -- Where the lever is.
},
wall_id = 6289, -- Wall item id.
}
if(item.itemid == 1945) then
doCreateItem(cfg.wall_id, 1, p.wall_) and doTransformItem(getTileItemById(p.lever, 1946).uid, 1945) end
end
elseif(item.itemid == 1946) then
return doRemoveItem(getTileItemById(p.wall_, cfg.wall_id).uid) and doTransformItem(getTileItemById(h.lever, 1945).uid, 1946)
end
return true
end
Error in console is : unexpected symbol near 'and'
Helpzzzz
-Hansie
Last edited: