Ir para conteúdo

Featured Replies

Postado
26 minutos atrás, Str00per disse:

Ocorreu apenas um unico erro... Criei um character, dei a vocation Novice Swordsman para ele e quando chegou ao 50 foi para Novice novamente, e no 100 foi para Amateur, Devia ser do 50 para Amateur e do 100 para Professional

 

20:34 Congratz! You get 50 or more, and evolved to a novice swordsman!
20:35 Congratz! You get 101 or more, and evolved to a amateur swordsman!

 

Tem certeza que você deu pro char a vocation Novice (id 2) ?

Te ajudei? Clique em  Gostei ! 

²²²d¬¬b²²²

 

 

"She's got a smile that it seems to me...."  ♪♪

  • Respostas 9
  • Visualizações 492
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • Em data/creaturescripts/creaturescripts.xml add essa tag: Em data/creaturescripts/scripts crie um arquivo evolveclass.lua, e adicione o seguinte: function onAdvance(cid, skill, oldLevel, ne

  • Teste com este script então... OBS: crie novo char, para nao bugar as storage. function onAdvance(cid, skill, oldLevel, newLevel) local level = getPlayerLevel(cid) local vocatual = getPlayer

  • Agora funcionou, muito bom. REPUTADO

Postado
3 minutos atrás, Str00per disse:

Absoluta :D

Teste com este script então...

OBS: crie novo char, para nao bugar as storage.

function onAdvance(cid, skill, oldLevel, newLevel)

local level = getPlayerLevel(cid)
local vocatual = getPlayerVocation(cid)
local newvoc = vocatual + 1

          if level >= 50 and getPlayerStorageValue(cid, 88888) <= 0 then
                  doPlayerSetVocation(cid, newvoc)
                  setPlayerStorageValue(cid, 88888, 1)   
                  doPlayerSendTextMessage(cid, 22, "Congratz! You get "..level.." or more, and evolved to "..(getVocationInfo(newvoc).description).."!")
          return true
		  end
		  if level >= 100 and getPlayerStorageValue(cid, 88889) <= 0 then
                  doPlayerSetVocation(cid, newvoc)
                  setPlayerStorageValue(cid, 88889, 1)   
                  doPlayerSendTextMessage(cid, 22, "Congratz! You get "..level.." or more, and evolved to "..(getVocationInfo(newvoc).description).."!")
          return true
		  end
end

 

@Str00per Verifique também se a vocation está realmente errada, e não somente a mensagem que o player recebe..

Te ajudei? Clique em  Gostei ! 

²²²d¬¬b²²²

 

 

"She's got a smile that it seems to me...."  ♪♪

Postado
  • Autor
10 minutos atrás, luangop disse:

Teste com este script então...

OBS: crie novo char, para nao bugar as storage.


function onAdvance(cid, skill, oldLevel, newLevel)

local level = getPlayerLevel(cid)
local vocatual = getPlayerVocation(cid)
local newvoc = vocatual + 1

          if level >= 50 and getPlayerStorageValue(cid, 88888) <= 0 then
                  doPlayerSetVocation(cid, newvoc)
                  setPlayerStorageValue(cid, 88888, 1)   
                  doPlayerSendTextMessage(cid, 22, "Congratz! You get "..level.." or more, and evolved to "..(getVocationInfo(newvoc).description).."!")
          return true
		  end
		  if level >= 100 and getPlayerStorageValue(cid, 88889) <= 0 then
                  doPlayerSetVocation(cid, newvoc)
                  setPlayerStorageValue(cid, 88889, 1)   
                  doPlayerSendTextMessage(cid, 22, "Congratz! You get "..level.." or more, and evolved to "..(getVocationInfo(newvoc).description).."!")
          return true
		  end
end

 

Agora funcionou, muito bom.
REPUTADO

Postado
2 minutos atrás, Str00per disse:

Agora funcionou, muito bom.
REPUTADO

Editei minha primeira resposta com o script certo.. Por favor coloque como melhor resposta, assim um próximo membro que precise do sistema, poderá encontrar mais facilmente!

Te ajudei? Clique em  Gostei ! 

²²²d¬¬b²²²

 

 

"She's got a smile that it seems to me...."  ♪♪

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.6k

Informação Importante

Confirmação de Termo