Ir para conteúdo

Featured Replies

  • Respostas 13
  • Visualizações 724
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • local amuletos = {        [1] = 2130,        [2] = 2131,        [3] = 2132,        [4] = 2133,        [5] = 2135,        [6] = 2136,     }       function onLogin(cid)        if getPlayerLastLoginSaved

Postado

Pega esse, o antigo tem um problema:

 

local amuletos = {2170, 2171, 2172, 2173, 2174, 2175}
 
function onLogin(cid)
   if getPlayerLastLoginSaved(cid) < 1 then
      doPlayerAddItem(cid, amuletos[1])
   end
   
   if getPlayerItemCount(cid, amuleto1) > 0 then
      registerCreatureEvent(cid, "AmuletoChange")
   end
 
   return true
end
 
function onAdvance(cid, skill, oldlevel, newlevel)
   if skill == 8 then 
      for index, id in ipairs(amuletos) do
         if getPlayerItemCount(cid, id) > 0 and amuletos[index + 1] then
            doPlayerRemoveItem(cid, id)
            doPlayerAddItem(cid, amuletos[index + 1])
            break
         end
      end
   end
 
   return true
end

-"Supra Omnes Lux Lucis"

- Acima de todos brilha a Luz -

5VGnDyBz.png

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