So, I would like to leverage "9828" create a bridge "446", and after 1 minute the bridge disappears.
I have this script aki, but he is doing the opposite, if he is removing a wall and after a while the back wall alone:
function onUse(cid, item, fromPosition, itemEx, toPosition)
pedra_pos = {x=99, y=97, z=9, stackpos=1}
pedra = getThingfromPos(pedra_pos)
if item.itemid == 9825 and pedra.itemid == 1025 then
doSendMagicEffect(pedra_pos, 9)
doRemoveItem(pedra.uid, 1)
doTransformItem(item.uid, 9826)
addEvent(createPedra, 1 * 60 * 1000)
doCreatureSay(cid, "Você tem 1 minuto para achar a saida !", TALKTYPE_ORANGE_1)
end
if item.itemid == 9826 then
doTransformItem(item.uid, 9825)
else
doPlayerSendCancel(cid,"Desculpe, isso não é possivel.")
end
return TRUE
end
function createPedra()
doCreateItem(1025, pedra_pos)
doSendMagicEffect(pedra_pos, 3)
end
please, someone who understands the script can edit it to do the opposite?