Postado Dezembro 19, 2014 10 anos Droga, li o erro errado. Editei, tente agora. The corrupt fear us. The honest support us. The heroic join us.
Postado Dezembro 19, 2014 10 anos nao ta fufando ainda =( meu server e 8.0 lib? Sim, procure através do diretório do seu servidor: data/lib Crie um arquivo no diretório da sua lib e adicione os seguintes códigos à ele (desconheço as funções dessa versão, então tente estes códigos com funções um pouco mais "básicas"): exhaustion = { check = function (cid, storage) return getPlayerStorageValue(cid, storage) >= os.time(t) end, get = function (cid, storage) local exhaust = getPlayerStorageValue(cid, storage) if(exhaust > 0) then local left = exhaust - os.time(t) if(left >= 0) then return left end end return false end, set = function (cid, storage, time) setPlayerStorageValue(cid, storage, os.time(t) + time) end, make = function (cid, storage, time) local exhaust = exhaustion.get(cid, storage) if(not exhaust) then exhaustion.set(cid, storage, time) return true end return false end } The corrupt fear us. The honest support us. The heroic join us.
Postado Dezembro 19, 2014 10 anos Teste assim: local tempo = 10 -- em segundos local strg = 12980 -- Storage onde salvará o tempo (Não Mexa) function onSay(cid, words, param) if exhaustion.check(cid, strg) then doPlayerSendCancel(cid, "Voce precisa aguardar "..exhaustion.get(cid, strg).." segundos para usar novamente.") return true end if doPlayerRemoveItem(cid, 2160, 10) then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Voce Desbugou!") doSendMagicEffect(getPlayerPosition(cid), 12) exhaustion.set(cid, strg, tempo) addLevel(cid, 1) else doPlayerSendCancel(cid, "Precisa de 10 Gold Para Desbugar!") doSendMagicEffect(getPlayerPosition(cid), 2) end return true end Abraços, boa sorte. Editado Dezembro 19, 2014 10 anos por Adriano SwaTT (veja o histórico de edições) Gosta do meu trabalho? Curta e siga a página do meu projeto de 2016 e 2017 (Lab Z Games) que trará vários servidores OTServs. Atenciosamente,Adriano Swatt' Para ver meus tutoriais acesse meu perfil.
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.