Olá queria saber se alguém consegue colocar exausted de 3 segundos nesse script
local config = {
--[vocation id] = { level, nova voc, looktype, efeito}
-- Goku --
[1] = { 30, 2, 439, 112},
[2] = { 50, 3, 440, 114},
[3] = { 75, 4, 441, 114},
[4] = { 100, 5, 442, 114},
[5] = { 150, 6, 444, 114},
[6] = { 180, 7, 445, 116},
[7] = { 200, 8, 446, 115},
----------------------------
---------Reborn-------------
----------------------------
[10] = { 50, 11, 448, 114},
[11] = { 100, 12, 449, 114},
[12] = { 150, 13, 450, 114},
[13] = { 199, 14, 451, 34},
[14] = { 200, 15, 452, 112},
[15] = { 400, 16, 454, 116},
-- Goku --
}
function onSay(cid, words, param, channel)
local voc = config[getPlayerVocation(cid)]
if voc then
if getPlayerLevel(cid) >= voc[1] then
doPlayerSetVocation(cid, voc[2])
doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "Voce Transformou!")
local outfit = {lookType = voc[3]}
doCreatureChangeOutfit(cid, outfit)
doSendMagicEffect(getCreaturePosition(cid), voc[4])
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "Voce precisa estar no level " .. voc[1] .. " para transformar.")
end
else
doPlayerSendCancel(cid, "Voce nao pode se Transformar!")
end
return true
end