Ir para conteúdo

Featured Replies

Postado
  • Solução

Teste com esse:
 

local tab = {
    [13] = {effect = 58}, -- [vocationID] = {effect = Number}
    [14] = {effect = 58},
    [15] = {effect = 58},
    [16] = {effect = 58}
}

local delay = 3 -- tempo do efeito da aura em segundos

function ariseAura(cid)
    doSendMagicEffect(getThingPos(cid), tab[getPlayerVocation(cid)].effect)
    addEvent(function()
		if isPlayer(cid) then
			ariseAura(cid)
		end
	end, delay * 1000)
    return true
end

function onLogin(cid)
    if tab[getPlayerVocation(cid)] then
        ariseAura(cid)
    end
    return true
end

 

  • Respostas 7
  • Visualizações 518
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • Certo, então vamos para outra parte, pode me enviar como está na distro agora?

  • Teste com esse:   local tab = { [13] = {effect = 58}, -- [vocationID] = {effect = Number} [14] = {effect = 58}, [15] = {effect = 58}, [16] = {effect = 58} } local delay = 3 -- t

  • Show de bola, fico feliz que tenha dado certo com os problemas, abraço!

Postado
  • Autor
Agora, lordzetros disse:

Teste com esse:
 


local tab = {
    [13] = {effect = 58}, -- [vocationID] = {effect = Number}
    [14] = {effect = 58},
    [15] = {effect = 58},
    [16] = {effect = 58}
}

local delay = 3 -- tempo do efeito da aura em segundos

function ariseAura(cid)
    doSendMagicEffect(getThingPos(cid), tab[getPlayerVocation(cid)].effect)
    addEvent(function()
		if isPlayer(cid) then
			ariseAura(cid)
		end
	end, delay * 1000)
    return true
end

function onLogin(cid)
    if tab[getPlayerVocation(cid)] then
        ariseAura(cid)
    end
    return true
end

 

perfeito, amigo!

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.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo