function onUse(cid, item, fromPosition, itemEx, toPosition)
function Wall()
local x = true
local B = {
{21832,{x=229, y=1061, z=7, stackpos = 1}}
{21926,{x=228, y=1061, z=7, stackpos = 1}}
{21781,{x=229, y=1060, z=7, stackpos = 1}}
{21781,{x=228, y=1060, z=7, stackpos = 1}}
}
for i = 1, #B do
if getTileItemById(B[2], B[1]).uid == 0 then x = false end
if x == true then
doRemoveItem(getThingfromPos(B[2]).uid,1)
else
doCreateItem(B[1], 1, B[2])
end
end
end
Wall()
addEvent(Wall, 5000)
doTransformItem(item.uid, item.itemid == 1945 and 1946 or 1945)
return true
end
<action actionid="8998" script="arquivo.lua"/>
Coloque o Action 8998 em uma Alavancha com ID 1945 ou 1946





info
Grupo: Campones
Registrado: 06/01/14
Posts: 45
Reputação: +1
Mesmo erro...