Ir para conteúdo
Banner com Efeitos

Featured Replies

Postado
function onLogin(cid)
    local loss = getConfigValue('deathLostPercent')
    local level = getPlayerLevel(cid)
if(loss ~= nil and getPlayerStorageValue(cid, "bless") ~= 5) then
   if (level <= 100) then
    doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10)
    elseif (level > 100) and (level <= 300) then
    doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 9)
    elseif (level > 300) and (level <= 599) then
    doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 3)
    elseif (level >= 600) then
    doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 1)
   end
end

 

testa assim e ve o que acontece

  • Respostas 10
  • Visualizações 559
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • Você pode configurar no seu login.lua a porcentagem de perda:   ... function onLogin(cid)     local loss = getConfigValue('deathLostPercent')     if(loss ~= nil and getPlayerStorage

  • function onLogin(cid) local loss = getConfigValue('deathLostPercent') local level = getPlayerLevel(cid) if(loss ~= nil and getPlayerStorageValue(cid, "bless") ~= 5) then if (level <= 100

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.

Conteúdo Similar

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.7k

Informação Importante

Confirmação de Termo