Ir para conteúdo

ADM Esdras

Membro
  • Registro em

  • Última visita

Histórico de Curtidas

  1. Gostei
    ADM Esdras deu reputação a Vodkart em Colocar Exausted em script!   
    só adc um return true
     
     
    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 time = 30 -- Quanto tempo de exausted você deseja local storage = 4557 -- Storage utilizada no check local voc = config[getPlayerVocation(cid)] if getPlayerStorageValue(cid, storage) <= os.time() then 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]) setPlayerStorageValue(cid, storage, os.time()+time) else doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "Voce precisa estar no level " .. voc[1] .. " para transformar.") end else doPlayerSendCancel(cid, "Voce nao pode se Transformar!") return true end else doPlayerSendTextMessage(cid, 2, "You can't use this again right now.") doSendMagicEffect(getThingPos(cid),CONST_ME_POFF) return true end return true end  
  2. Gostei
    ADM Esdras deu reputação a Pedriinz em Colocar Exausted em script!   
    Não testei, mas acho que resolve.
    Teste:
    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 time = 1 -- Quanto tempo de exausted você deseja local storage = 4557 -- Storage utilizada no check local voc = config[getPlayerVocation(cid)] if getPlayerStorageValue(cid, storage) <= os.time() then 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]) setPlayerStorageValue(cid, storage, os.time()+time) 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 else doPlayerSendTextMessage(cid, 2, "You can't use this again right now.") doSendMagicEffect(getThingPos(cid),CONST_ME_POFF) return false end return true end Pra configurar edite apenas isto:
     
    local time = 1 -- Quanto tempo de exausted você deseja local storage = 4557 -- Storage utilizada no check

Informação Importante

Confirmação de Termo