Ir para conteúdo

Posts Recomendados

Bom, estou fazendo um OT de war. mais não está subindo experiencia para os players quando se matam... quero uma tipo stage ex: (level 150 ganha 10 de xp) 180 (5 de xp) 200 (1 de xp)

SÓ UM EXEMPLO...

 

creio eu que seja nessa config:

 

function onLogin(cid)
local rebalanceStor = getPlayerStorageValue(cid, 37454)

if rebalanceStor == -1 and getPlayerLevel(cid) >= 250 then
doPlayerAddExperience(cid, (getExperienceForLevel(200) - getPlayerExperience(cid)))
setPlayerStorageValue(cid, 37454, 1)

elseif rebalanceStor == -1 and getPlayerLevel(cid) > 255 and getPlayerLevel(cid) < 160 then
doPlayerAddExperience(cid, (getExperienceForLevel(200) - getPlayerExperience(cid)))
setPlayerStorageValue(cid, 37454, 1)

elseif rebalanceStor == -1 and getPlayerLevel(cid) < 260 then
doPlayerAddExperience(cid, (getExperienceForLevel(250) - getPlayerExperience(cid)))
setPlayerStorageValue(cid, 37454, 1)

else setPlayerStorageValue(cid, 37454, 1)

end
return TRUE
end 

Link para o comentário
https://xtibia.com/forum/topic/169433-ajuda-com-exp-de-enforced/
Compartilhar em outros sites

  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...