Ir para conteúdo

Featured Replies

Postado

queria adicionar tabela nesse script,esse script anuncia quando o player pega lvl 100

queria que anuncia-se outros lvls tbm no mesmo script tipo

lvl 150

lvl 200

lvl 300

 

function isInteger(n)
return math.floor(n) == n and true or false
end

function onAdvance(cid, skill, oldLevel, newLevel)
if isInteger(newLevel/100) then
broadcastMessage("O jogador "..getCreatureName(cid).." atingiu o level "..newLevel..".")
end
return true
end

 

Editado por s0beit (veja o histórico de edições)

Postado

 

function isInteger(n)
return math.floor(n) == n and true or false
end
function onAdvance(cid, skill, oldLevel, newLevel)
if isInteger(newLevel/100) then
broadcastMessage("O jogador "..getCreatureName(cid).." atingiu o level "..newLevel..".")
elseif isInteger(newLevel/150) then
broadcastMessage("O jogador "..getCreatureName(cid).." atingiu o level "..newLevel..".")
elseif isInteger(newLevel/200) then
broadcastMessage("O jogador "..getCreatureName(cid).." atingiu o level "..newLevel..".")
elseif isInteger(newLevel/300) then
broadcastMessage("O jogador "..getCreatureName(cid).." atingiu o level "..newLevel..".")
end
return true
end

 

Editado por roriscrave (veja o histórico de edições)

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