Olá, fiz uma quest que o player ganha um key (acompanhada de uma storage) e queria que essa storage sumisse depois de certo tempo, e consequentemente a Key que estava com o player junto
Obter a key:
Citarfunction onUse(cid, item, frompos, item2, topos) if item.uid == 60003 then if getPlayerStorageValue(cid,60003) == -1 then doPlayerSendTextMessage(cid,25,"Voce ganhou a chave para Quest.") local bag = doPlayerAddItem(cid,1987,1) doAddContainerItem(bag,55571,1) setPlayerStorageValue(cid,60003,1) else doPlayerSendTextMessage(cid,25,"O bau esta vazio.") end end return true end
Linhas para deletar item quando não tiver a storage:
Citarlocal sto = 60003
function onEquip(cid, item, slot)
if getPlayerStorageValue(cid, sto) <= 0 then
doRemoveItem(item.uid, 1)
end
return true
end