Ir para conteúdo

Featured Replies

Postado

eu peguei o script e tente colocar pra premmy o 'efeito' ele tinha uma linha que era pra vip, ele não da nenhum erro no console mais não funciona, ele ta add no login e no xml

Spoiler

local rnd = {"VIP"}

function onLogin(cid)
    if isPremium(cid) == true then 
    sendEffect(cid)
    registerCreatureEvent(cid, "AdvEffect")
   return true
end

function sendEffect(cid)
    if isCreature(cid) then
        if isPremium(cid) == true then
        pos = getThingPos(cid)
        doSendAnimatedText(pos, rnd[math.random(#rnd)], 251)
        addEvent(sendEffect, 2000,cid)
        end
    end
end

 

 

 

  • Respostas 5
  • Visualizações 431
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • @mostjf local tempo = 10 --tempo em segundos function onLogin(cid)         if isPremium(cid) == true then             TopEffect(cid)         end     return true end function TopEffect(cid)     i

Postado

@mostjf

local tempo = 10 --tempo em segundos

function onLogin(cid)
        if isPremium(cid) == true then
            TopEffect(cid)
        end
    return true
end

function TopEffect(cid)
    if isPlayer(cid) then
        doSendAnimatedText(getCreaturePosition(cid), "[VIP]", TEXTCOLOR_LIGHTBLUE)
        addEvent(TopEffect, tempo*1000, cid)
    end
    return true
end

 

Postado

@mostjf veja se o seu funciona assim:

local rnd = {"VIP"}

function onLogin(cid)
    if isPremium(cid) == true then 
    sendEffect(cid)
        end
    return true
end

function sendEffect(cid)
    if isPlayer(cid) then
	local w = math.random (1,#rnd)
        doSendAnimatedText(getCreaturePosition(cid), ""..rnd[w].."", 251)
        addEvent(sendEffect, 2000,cid)
    end
    return true
end

 

Ps: Não testei!

  • 2 weeks later...
Postado

@gabrielzika Porque ta randomizando se so tem uma frase?

Ajudei? REP+

 

Meus Servers:

PokeUnwind Em Breve

Rust Tibia Fechado

 

Tópicos: 

[Tutorial] Adicionando Pokemons com icon system

[Solução] ElfBot não abre corpos

 

Projetos:

DigiTibia Fechado

Rust Tibia Fechado(temporariamente!)

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