Postado Novembro 3, 2016 8 anos 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
Postado Novembro 3, 2016 8 anos 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 Editado Novembro 3, 2016 8 anos por login12 (veja o histórico de edições) @This life is filled with hurt When happiness doesn't work Trust me and take my hand When the lights go out you will understand
Postado Novembro 3, 2016 8 anos Em 03/11/2016 em 16:46, ADM Esdras disse: irei testar Deu? @This life is filled with hurt When happiness doesn't work Trust me and take my hand When the lights go out you will understand
Postado Novembro 6, 2016 8 anos Autor Em 03/11/2016 em 19:17, login12 disse: Deu? Deu funcionou Obrigado só achei estranho quando ele da o exausted ele sai o nome ex: antes o script voce falava transformar ele nao falava tipo como um flod ele esta agora quando da exausted ele fala o nome transformar sem parar acho que deve ser coisa simples de se arrumar.
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.