Ir para conteúdo
  • 0

gente upando muita ml


Pergunta

  • Respostas 52
  • Created
  • Última resposta

Top Posters For This Question

Posts Recomendados

  • 0

Ta funcionando sim cara, eu testo antes de colocar. Seguinte, mudei um pouco o código aqui, lá vai:

 

function onAdvance(cid, skill, oldlevel, newlevel)
local maxMl = 10
if skill == 7 then
if newlevel >= maxMl then
doPlayerSetMagicRate(cid, 0)
setPlayerStorageValue(cid, 20130314, maxMl)
end
end
return true
end

 

login.lua:

 

--resto do código
registerCreatureEvent(cid, "LimitMl")
if getPlayerStorageValue(cid, 20130314) ~= -1 and getPlayerMagLevel(cid, true) >= getPlayerStorageValue(cid, 20130314) then
doPlayerSetMagicRate(cid, 0)
end
return true
end

 

Esse com certeza funciona, eu testei aqui.

 

O ruim desse código é que você não pode mudar o magic level depois que você escolheu, só se mudar o storage junto.

Link para o comentário
https://xtibia.com/forum/topic/208869-gente-upando-muita-ml/page/4/#findComment-1485861
Compartilhar em outros sites

  • 0

Man o script,quando o player morre o ml dele sobe +3,mas so usando magia claro...exemplo ml ta 120 ai morro e vai pro 199 ai uso magia vai pro 123~124,ai vai almentando

Link para o comentário
https://xtibia.com/forum/topic/208869-gente-upando-muita-ml/page/4/#findComment-1486404
Compartilhar em outros sites


×
×
  • Criar Novo...