Dodoxbds 2 Posted October 3, 2020 Boas comunidade! Estou precisando de uma quest para um npc dar level a um player... achei duas porem uma não funciono e a outra estava com link off desde ja agradeço! Share this post Link to post Share on other sites
1 Karbust 1,143 Posted October 6, 2020 quest npc_nivel begin state start begin when 33002.click begin say("Queres nível") local escolha = select("Sim", "Não") if escolha == 1 then pc.set_level(99) else return end end end end Faltava 1 end... Share this post Link to post Share on other sites
1 Karbust 1,143 Posted October 3, 2020 Basta usares a função pc.set_level(<nível>). quest npc_nivel begin state start begin when xxx.click begin pc.set_level(105) end end end 1 Dodoxbds reacted to this Share this post Link to post Share on other sites
1 Karbust 1,143 Posted October 5, 2020 5 horas atrás, Dodoxbds disse: Deu certo, obrigadoo!!! Se nao for pedir demais, sera que tem como por uma mensagem perguntando se a pessoa quer ou nao pegar o level e ai pra pegar tem que clicar sim? Desculpa minha ignorancia, ainda nao entendo muito de quests say("Queres nível") local escolha = select("Sim", "Não") if escolha == 1 then pc.set_level(105) else return Share this post Link to post Share on other sites
0 Dodoxbds 2 Posted October 5, 2020 Em 03/10/2020 em 07:40, Karbust disse: Basta usares a função pc.set_level(<nível>). quest npc_nivel begin state start begin when xxx.click begin pc.set_level(105) end end end Deu certo, obrigadoo!!! Se nao for pedir demais, sera que tem como por uma mensagem perguntando se a pessoa quer ou nao pegar o level e ai pra pegar tem que clicar sim? Desculpa minha ignorancia, ainda nao entendo muito de quests Share this post Link to post Share on other sites
0 Dodoxbds 2 Posted October 5, 2020 1 hora atrás, Karbust disse: say("Queres nível") local escolha = select("Sim", "Não") if escolha == 1 then pc.set_level(105) else return Obrigadaaaao meu ajudou muito Share this post Link to post Share on other sites
0 Dodoxbds 2 Posted October 6, 2020 14 horas atrás, Karbust disse: say("Queres nível") local escolha = select("Sim", "Não") if escolha == 1 then pc.set_level(105) else return Boas... testei aqui nao deu pra por o texto :( montei de duas maneiras a quest, vou por abaixo para voce ver... a primeira tentei assim: quest npc_nivel begin state start begin when 33002.click begin say("Queres nível") local escolha = select("Sim", "Não") if escolha == 1 then pc.set_level(99) else return a segunda tentei assim: quest npc_nivel begin state start begin when 33002.click begin say("Queres nível") local escolha = select("Sim", "Não") if escolha == 1 then pc.set_level(99) else return end end end as duas deram erros, desculpa te incomodar com isso rs, é que ficarem mais topzera se tivesse as escritas, mas se nao der nao tem problema Share this post Link to post Share on other sites
0 Papixxxxxxxxxxxxxx 26 Posted October 6, 2020 De todas as maneiras mencionadas no tópico para dar nível o jogador vai ser desconectado, usa a seguinte função que não terás esse tipo de problema. while pc.get_level() < 90 do pc.give_exp2(pc.get_next_exp()) end Onde está 90 coloca o nível que desejas que o jogador receba. Share this post Link to post Share on other sites
0 Dodoxbds 2 Posted October 6, 2020 5 horas atrás, Karbust disse: quest npc_nivel begin state start begin when 33002.click begin say("Queres nível") local escolha = select("Sim", "Não") if escolha == 1 then pc.set_level(99) else return end end end end Faltava 1 end... Obrigado amigo, vou testar anoite 🙏 Share this post Link to post Share on other sites
0 Dodoxbds 2 Posted October 8, 2020 Em 06/10/2020 em 09:35, Karbust disse: quest npc_nivel begin state start begin when 33002.click begin say("Queres nível") local escolha = select("Sim", "Não") if escolha == 1 then pc.set_level(99) else return end end end end Faltava 1 end... Só lembrando de voltar aqui para te agradecer, deu super certo, obrigadão mesmo rs Share this post Link to post Share on other sites
Boas comunidade!
Estou precisando de uma quest para um npc dar level a um player...
achei duas porem uma não funciono e a outra estava com link off
desde ja agradeço!
Share this post
Link to post
Share on other sites