@Carlinhous1996 Boa noite, seria isso?
local config = {
pos = {x=7508, y=12624, z=11},
stoneOne = 7522,
stoneTwo = 7524,
time = 20 -- time in seconds to remove the stone
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
local posItemOne = getTileItemById(config.pos, config.stoneOne).uid
if (posItemOne > 0) then
doRemoveItem(posItemOne, 1)
doCreateItem(config.stoneTwo, config.pos)
doPlayerSendTextMessage(cid,22,"a parede falsa foi removida.")
doSendMagicEffect(config.pos, CONST_ME_MAGIC_RED)
addEvent(function()
local posItemTwo = getTileItemById(config.pos, config.stoneTwo).uid
doRemoveItem(posItemTwo, 1)
doCreateItem(config.stoneOne, config.pos)
doSendMagicEffect(config.pos, CONST_ME_MAGIC_RED)
end, config.time * 1000)
doTransformItem(item.uid, item.itemid == 1945 and 1946 or 1945)
end
return true
end