ɱɑcɑcѳ 71 Posted August 25, 2013 Boas pessoal fiz uma quest que um player ganha dinheiro por estar no servidor. Está 1 hora no server ganha 1000000 de yang. Está 2 horas no server ganha 2000000 de yang. Está 3 horas no server ganha 3000000 de yang. Aqui está , qualquer erro corrijam-me pff: quest Tempo begin state start begin when name.server_timer("uma_hora" , 3600 ) begin say_title("Olá "..pc.get_name()) say (" Passaste uma hora no servidor! ") say (" Ganhaste 1000000 de yang! ") pc.change_money(1000000) end when name.server_timer("duas_hora" , 7200 ) begin say_title("Olá "..pc.get_name()) say (" Passaste duas horas no servidor! ") say (" Ganhaste 2000000 de yang! ") pc.change_money(2000000) end when name.server_timer("tres_hora" , 10800 ) begin say_title("Olá "..pc.get_name()) say (" Passaste tres horas no servidor! ") say (" Ganhaste 3000000 de yang! ") pc.change_money(3000000) end endend Cumps 5 SINVAL o.O, rnunest, Joao537 and 2 others reacted to this Share this post Link to post Share on other sites
YonN 28 Posted April 5, 2014 Ta mais a quest eh rotativa ou so ganha 1 vez ?? e contar denovo mesmo deslogado voçê ainda ganha a gold ? Share this post Link to post Share on other sites
Sandra Borges 0 Posted May 1, 2014 Estou com problemas nesta quest..... faço tudo como esta la em cima! depois dou o comando : cd /usr/home/game/share/locale/germany/quest depois dou o comando: ./qc yang.quest que é o nome da quest. depois aparece assim.... QUEST : Tempo STATE : start WHEN : name.server_timer When dosen`t have begin-end clause. ( ( ) yang.quest :3: abort (core dumped) o que sera q está mal?? Share this post Link to post Share on other sites
Sandra Borges 0 Posted May 1, 2014 Estou com problemas nesta quest..... faço tudo como esta la em cima! depois dou o comando : cd /usr/home/game/share/locale/germany/quest depois dou o comando: ./qc yang.quest que é o nome da quest. depois aparece assim.... QUEST : Tempo STATE : start WHEN : name.server_timer When dosen`t have begin-end clause. ( ( ) yang.quest :3: abort (core dumped) o que sera q está mal?? alguem consegue me ajudar??? Share this post Link to post Share on other sites
ɱɑcɑcѳ 71 Posted May 2, 2014 quest yang begin state start begin when login begin timer("yang_tempo", 3600) end when yang_tempo.begin begin local lista = { {1, 100000}, {2, 200000}, {3, 300000}, {4, 400000}, } pc.setqf("contagem", pc.getqf("contagem") + 1) say_title("Ola "..pc.get_name()) say (" Passaste uma hora no servidor! ") say (" Ganhaste "..lista[pc.getqf("contagem")][1].. "de yang! ") pc.change_money(..lista[pc.getqf("contagem")][1]..) end endend Ta ai uma que faz o msm quest. Essa quest na verdade ta errada e peço desculpa era um bocado nabo na altura. Share this post Link to post Share on other sites
Sandra Borges 0 Posted May 2, 2014 Mas esta esta a funcionar??? certinho??? Share this post Link to post Share on other sites
ɱɑcɑcѳ 71 Posted May 2, 2014 Sei lá nem testei xD mas deve tar :like: Share this post Link to post Share on other sites
Z3R0 33 Posted November 14, 2015 Alguem por favor tem como arrumar a quest e postar ela corrigida ? A ideia da quest é boa mais ela nao funciona Share this post Link to post Share on other sites
ualleson 0 Posted June 27, 2016 quest yang begin state start begin when login begin timer("yang_tempo", 3600) end when yang_tempo.begin begin local lista = { {1, 100000}, {2, 200000}, {3, 300000}, {4, 400000}, } pc.setqf("contagem", pc.getqf("contagem") + 1) say_title("Ola "..pc.get_name()) say (" Passaste uma hora no servidor! ") say (" Ganhaste "..lista[pc.getqf("contagem")][1].. "de yang! ") pc.change_money(..lista[pc.getqf("contagem")][1]..) end end end esta dando erro Tempo.quest:13:syntax error : [string "start"]:6: unexpected symbol near `..' Abort trap (core dumped) Share this post Link to post Share on other sites
TugaZinho 7 Posted May 31, 2020 Em 27/06/2016 at 00:39, ualleson disse: quest yang begin state start begin when login begin timer("yang_tempo", 3600) end when yang_tempo.begin begin local lista = { {1, 100000}, {2, 200000}, {3, 300000}, {4, 400000}, } pc.setqf("contagem", pc.getqf("contagem") + 1) say_title("Ola "..pc.get_name()) say (" Passaste uma hora no servidor! ") say (" Ganhaste "..lista[pc.getqf("contagem")][1].. "de yang! ") pc.change_money(..lista[pc.getqf("contagem")][1]..) end end end esta dando erro Tempo.quest:13:syntax error : [string "start"]:6: unexpected symbol near `..' Abort trap (core dumped) quest yang begin state start begin when login begin timer("yang_tempo", 3600) end when yang_tempo.timer begin local lista = { {1, 100000}, {2, 200000}, {3, 300000}, {4, 400000}, } pc.setqf("contagem", pc.getqf("contagem") + 1) say_title("Ola "..pc.get_name()) say (" Passaste uma hora no servidor! ") say (" Ganhaste "..lista[pc.getqf("contagem")][1].. "de yang! ") pc.change_money(..lista[pc.getqf("contagem")][1]..) end end end Share this post Link to post Share on other sites