Ir para conteúdo

Featured Replies

Postado

Eu tenho essa parte de codigo no meu login.lua, o problema é que repete 5x a fala quando loga, tem como ser apenas 1 vez, e de preferencia animetext, tipo de magia.

 

        for i = 1, 5 do 
  if getPlayerLevel(cid) < 250 then
    doPlayerAddBlessing(cid, i)
    doPlayerSendTextMessage(cid, 20, "Blessings free up to level 250.")

end

Resolvido por Dwarfer

Ir para solução
Postado
  • Solução
-- ASSIM

if getPlayerLevel(cid) < 250 then
doPlayerSendTextMessage(cid, 20, "Blessings free up to level 250.")
for i = 1, 5 do 
    doPlayerAddBlessing(cid, i)
end
end

-- OU ASSIM

if getPlayerLevel(cid) < 250 then
doSendAnimatedText(getPlayerPosition(cid), "Bless!", COLOR_ORANGE)
for i = 1, 5 do 
    doPlayerAddBlessing(cid, i)
end
end

 

 

 

 

Contato:

 

Postado
  • Autor
59 minutos atrás, Dwarfer disse:

-- ASSIM

if getPlayerLevel(cid) < 250 then
doPlayerSendTextMessage(cid, 20, "Blessings free up to level 250.")
for i = 1, 5 do 
    doPlayerAddBlessing(cid, i)
end
end

-- OU ASSIM

if getPlayerLevel(cid) < 250 then
doSendAnimatedText(getPlayerPosition(cid), "Bless!", COLOR_ORANGE)
for i = 1, 5 do 
    doPlayerAddBlessing(cid, i)
end
end

 

 

 

 

 

obrigado, eu so fiz uma pequena adaptação q n comentei

 

if (string.find(tostring(getCreatureName(cid)),"Account Manager")) or getPlayerGroupId(cid) >= 3 then
    return true
    end
    	if getPlayerLevel(cid) < 250 then
        doCreatureSay(cid, "you have blessings free to level 250!", TALKTYPE_ORANGE_1)
for i = 1, 5 do 
    doPlayerAddBlessing(cid, i)
end
end

 

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

Informação Importante

Confirmação de Termo