Ir para conteúdo

Featured Replies

Resolvido por Summ

Ir para solução
Postado
  • Solução
local tab = {
    [9] = 35, -- [vocationID] = número da cor do texto animado
    [10] = 10,
    [11] = 18,
    [12] = 180
}

function ariseText(cid)
    local texts = {"´ .    ,", ".    ´ ,", "`  .  ,", ",    ´ ."}

        if tab[getPlayerVocation(cid)] then
            doSendAnimatedText(getThingPos(cid), texts[math.random(1, #texts)], tab[getPlayerVocation(cid)])
            addEvent(function()
                if isPlayer(cid) then
                    ariseText(cid)
                end
            end, 1000)
        end
        
    return true
end

function onLogin(cid)
    
    ariseText(cid)

    return true
end

EQD4Qy4.gif

Postado
local tab = {
[9] = 35, -- [vocationID] = número da cor do texto animado
[10] = 10,
[11] = 18,
[12] = 180
}

function ariseText(cid)
if not isCreature(cid) then return false end
local texts = {"´ . ,", ". ´ ,", "` . ,", ", ´ ."}
doSendAnimatedText(getThingPos(cid), texts[math.random(1, #texts)], tab[getPlayerVocation(cid)])
if isPlayer(cid) then
addEvent(ariseText, 1000, cid)
end

return true
end

function onLogin(cid)
if tab[getPlayerVocation(cid)] then
ariseText(cid)
end

return true
end



 tumblr_mwfeg45FIV1qk4cb3o4_500.gif

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.7k

Informação Importante

Confirmação de Termo