ʀąԲą7q 165 Posted February 12, 2013 Oi eu tenho aqui um problema e que o meu evento ox nao esta a lançar perguntas e nao sei porque.Se alguém me ajudar agradecia.A quest e esta: quest oxevent_manager beginstate start beginwhen 20011.chat."Evento OX" beginif game.get_event_flag("oxevent_status") == 0 thensay("Não há nenhum evento OX de momento.")say("")say("")elseif game.get_event_flag("oxevent_status") == 1 thensay("O evento OX começou.")say("Queres entrar?")say("")local s = select("Sim", "Assistir", "Fechar")if s == 1 thensay("Vou-te teleportar para lá.")say("")wait()pc.warp(896500, 24600)elseif s == 2 thensay("Queres apenas assistir?")say("Vou-te teleportar para lá.")say("")wait()pc.warp(896300, 28900)endelseif game.get_event_flag("oxevent_status") == 2 thensay("Não podes participar mais.")say("O evento foi encerrado.")say("Podes assistir, mas não jogar.")local s = select("Assistir", "Fechar")if s == 1 thensay("Vou-te teleportar para lá.")say("")wait()pc.warp(896300, 28900)endendendwhen 20358.chat."Evento OX" with pc.is_gm() beginlocal stat = oxevent.get_status()if stat == 0 thensay("Evento OX")say("")local s = select("Iníciar OX", "Para trás")if s == 1 thenlocal v = oxevent.open()if v == 0 thensay("O evento OX já está activo!")say("")elseif v == 1 thensay("O Evento OX começou!")say("")notice_all("O evento OX começou!!!")elsesay("Erro...")say("")endendelseif stat == 1 thensay("Há "..oxevent.get_attender().." players")say("Fechar acesso?")say("")local s = select("Fechar Acesso", "Para trás")if s == 1 thenoxevent.close()say("O acesso foi fechado.")say("")endelseif stat == 2 thensay("Evento OX")say("")local s = select("Perguntar", "Final", "Final", "Nada")if s == 1 thenlocal v = oxevent.quiz(1, 30)if v == 0 thensay("O evento não iniciou correctamente!")say("")elseif v == 1 thensay("A pergunta é:")say("")elsesay("Já perguntou isso...")say("")endelseif s == 2 thenoxevent.end_event()notice_all("Terminou o Evento OX!")say("O evento terminou.")say("")elseif s == 3 thenoxevent.end_event()notice_all("O evento OX terminou!")say("Você terminou o evento")say("")endelseif stat == 3 thensay("Espere por favor.")say("")elsesay("Ocorreu um erro")endendwhen 20358.chat."Terminar OX" with pc.is_gm() beginsay("Terminar o Evento OX?")say("")local s = select("Sim", "Não")if s == 1 thenoxevent.end_event_force()say("Evento OX Terminou")endendwhen 20358.chat."Recompensa" with pc.is_gm() beginsay("Qual item?")say("")local item_vnum = input()say("Quantas vezes?")say("")local item_count = input()oxevent.give_item(item_vnum, item_count)say("Você "..oxevent.get_attender().." Itens dados.")say("")endendend Share this post Link to post Share on other sites
0 'PACI 2,317 Posted February 12, 2013 Ham, tu tens perguntas colocadas no oxquiz.lua ? Share this post Link to post Share on other sites
0 ʀąԲą7q 165 Posted February 12, 2013 sim se estao desta meneira: add_ox_quiz(1," (No metin2 existe 9 mapas?)",false)add_ox_quiz(1," (2012 Será o fim do mundo segundo o calendário Celta.)",false)add_ox_quiz(1," (A build recomendada do shura designa somente 40 pontos em VIT.)",false) Share this post Link to post Share on other sites
0 'PACI 2,317 Posted February 12, 2013 sim se estao desta meneira: add_ox_quiz(1," (No metin2 existe 9 mapas?)",false) add_ox_quiz(1," (2012 Será o fim do mundo segundo o calendário Celta.)",false) add_ox_quiz(1," (A build recomendada do shura designa somente 40 pontos em VIT.)",false) Está mal o sintaxe. Tens que colocar assim: add_ox_quiz(1, "No metin2 existe 9 mapas?", false) add_ox_quiz(1, "2012 Será o fim do mundo segundo o calendário Celta.", false) add_ox_quiz(1, "A build recomendada do shura designa somente 40 pontos em VIT.", false) Share this post Link to post Share on other sites
0 ʀąԲą7q 165 Posted February 12, 2013 ja mudei e nao lança na mesma mas eu acho que talvez seja a quest pois eu meto um player a jogar e la dentro na cena da pergunta aparece 0 jogadores Share this post Link to post Share on other sites
0 ɓʀuɳѳ' ИИ#92 350 Posted February 12, 2013 when 20011.chat."Evento OX" begin não será preciso os parenteses por fora do "Evento OX" ? Share this post Link to post Share on other sites
0 ʀąԲą7q 165 Posted February 12, 2013 nao sei pois de codigo de quest nao sei anda se alguem visse se a quest esta bem agradecia Share this post Link to post Share on other sites
0 'PACI 2,317 Posted February 12, 2013 when 20011.chat."Evento OX" begin não será preciso os parenteses por fora do "Evento OX" ? Não bruno. rafa7q, eis a quest que tenho: quest oxevent_manager begin state start begin when 20011.chat."Evento OX" begin if game.get_event_flag("oxevent_status") == 0 then say("O Evento OX Está Desativado") say("") say("") elseif game.get_event_flag("oxevent_status") == 1 then say("Olha o Evento OX Está Ativado!") say("Que Queres Fazer?") say("") local s = select("Participar", "Observar", "Nada") if s == 1 then say("Vais ser Teleportado.") say("") wait() pc.warp(896500, 24600) elseif s == 2 then say("Ahhh... Apenas Queres Observar?") say("Ok, Vais Ser Teleportado.....") say("") wait() pc.warp(896300, 28900) end elseif game.get_event_flag("oxevent_status") == 2 then say("Não Podes Participar Mais") say("") local s = select("Observar", "Deixa...") if s == 1 then say("Vais Ser teleportado....") say("") wait() pc.warp(896300, 28900) end end end when 20358.chat."Evento OX" with pc.is_gm() begin local stat = oxevent.get_status() if stat == 0 then say("Evento OX") say("") local s = select("Iniciar", "Fechar") if s == 1 then local v = oxevent.open() if v == 0 then say("") say("O Evento Ox Começou!") say("") notice_all("O Evento Ox Começou!") notice_all("Para Participar Dirige-te ao Uriel.") else say("Falhou...") say("") end end elseif stat == 1 then say("Tem "..oxevent.get_attender().." Jogadores") say("Fechar Acesso?") say("") local s = select("Fechar Acesso", "Sair") if s == 1 then oxevent.close() notice_all("Acesso ao Evento Ox Fechado.") say("Acesso Fechado.") say("") end elseif stat == 2 then say("Evento OX") say("") local s = select("Lançar Pergunta", "Finalizar Evento", "Finalizar Evento", "Sair") if s == 1 then local v = oxevent.quiz(1, 30) if v == 0 then say("Event läuft nichma!") say("") elseif v == 1 then say("Pergunta Lançada") say("") else say("Wird schon ne FRage gestellt...") say("") end elseif s == 2 then oxevent.end_event() notice_all("Acabou o Evento Ox") say("Evento Acabou") say("") elseif s == 3 then oxevent.end_event() notice_all("Acabou o Evento Ox") say("O Evento Ox Acabou") say("") end elseif stat == 3 then say("Por Favor, Espera.") say("") else say("Ocorreu Um Erro.") end end when 20358.chat."Finalizar Evento OX" with pc.is_gm() begin say("Queres Acabar o Evento?") say("") local s = select("Sim", "Não") if s == 1 then oxevent.end_event_force() warp_to_village() say("Acabou o Evento") end end when 20358.chat."Dar Prémio" with pc.is_gm() begin say("Item?") say("") local item_vnum = input() say("Número de Itens?") say("") local item_count = input() oxevent.give_item(item_vnum, item_count) say("Deste o Item a "..oxevent.get_attender().." Jogadores!") say("") end end end Ainda não vi o Evento Ox, se funciona ou não, mas experimenta. 1 ɓʀuɳѳ' ИИ#92 reacted to this Share this post Link to post Share on other sites
0 ʀąԲą7q 165 Posted February 13, 2013 pah ja tentei tudo mudei de quest mudei as perguntas tudo tudo e continua a nao dar e nao sei porque ja tentei de todas as formas (das que sabia, das que me disseram pah fazer, igual ao server do rancoroso e nada)Alguem que faça um milagre e me resolva isto xD Share this post Link to post Share on other sites
Oi eu tenho aqui um problema e que o meu evento ox nao esta a lançar perguntas e nao sei porque.Se alguém me ajudar agradecia.A quest e esta:
quest oxevent_manager beginstate start beginwhen 20011.chat."Evento OX" beginif game.get_event_flag("oxevent_status") == 0 thensay("Não há nenhum evento OX de momento.")say("")say("")elseif game.get_event_flag("oxevent_status") == 1 thensay("O evento OX começou.")say("Queres entrar?")say("")local s = select("Sim", "Assistir", "Fechar")if s == 1 thensay("Vou-te teleportar para lá.")say("")wait()pc.warp(896500, 24600)elseif s == 2 thensay("Queres apenas assistir?")say("Vou-te teleportar para lá.")say("")wait()pc.warp(896300, 28900)endelseif game.get_event_flag("oxevent_status") == 2 thensay("Não podes participar mais.")say("O evento foi encerrado.")say("Podes assistir, mas não jogar.")local s = select("Assistir", "Fechar")if s == 1 thensay("Vou-te teleportar para lá.")say("")wait()pc.warp(896300, 28900)endendendwhen 20358.chat."Evento OX" with pc.is_gm() beginlocal stat = oxevent.get_status()if stat == 0 thensay("Evento OX")say("")local s = select("Iníciar OX", "Para trás")if s == 1 thenlocal v = oxevent.open()if v == 0 thensay("O evento OX já está activo!")say("")elseif v == 1 thensay("O Evento OX começou!")say("")notice_all("O evento OX começou!!!")elsesay("Erro...")say("")endendelseif stat == 1 thensay("Há "..oxevent.get_attender().." players")say("Fechar acesso?")say("")local s = select("Fechar Acesso", "Para trás")if s == 1 thenoxevent.close()say("O acesso foi fechado.")say("")endelseif stat == 2 thensay("Evento OX")say("")local s = select("Perguntar", "Final", "Final", "Nada")if s == 1 thenlocal v = oxevent.quiz(1, 30)if v == 0 thensay("O evento não iniciou correctamente!")say("")elseif v == 1 thensay("A pergunta é:")say("")elsesay("Já perguntou isso...")say("")endelseif s == 2 thenoxevent.end_event()notice_all("Terminou o Evento OX!")say("O evento terminou.")say("")elseif s == 3 thenoxevent.end_event()notice_all("O evento OX terminou!")say("Você terminou o evento")say("")endelseif stat == 3 thensay("Espere por favor.")say("")elsesay("Ocorreu um erro")endendwhen 20358.chat."Terminar OX" with pc.is_gm() beginsay("Terminar o Evento OX?")say("")local s = select("Sim", "Não")if s == 1 thenoxevent.end_event_force()say("Evento OX Terminou")endendwhen 20358.chat."Recompensa" with pc.is_gm() beginsay("Qual item?")say("")local item_vnum = input()say("Quantas vezes?")say("")local item_count = input()oxevent.give_item(item_vnum, item_count)say("Você "..oxevent.get_attender().." Itens dados.")say("")endendend
Share this post
Link to post
Share on other sites