antiblock
https://arwen2.global/
  • Chatbox

    Did you check out our Discord? https://discord.gg/FFdvMjk9xA
    You don't have permission to chat.
    Load More
Sign in to follow this  
NerD

Evento Tocha

6 posts in this topic

Bom Galera Aki Venho Deixa uma Simples Quest do Evento TochaPS : Ainda nao testei.quest tocha begin state start begin when letter with pc.is_gm() begin send_letter ( "Painel da Tocha" ) endwhen button or info beginlocal b = select("Começar", "Acabar", "Sair") if b == 1 then game.set_event_flag("tocha", 1) game.set_event_flag("tocha_kill", 5)game.get_event_flag("tocha_kill_count1", 0)game.get_event_flag("tocha_kill_count2", 0)game.get_event_flag("tocha_kill_count3", 0)notice_all("A Guerra da Tocha começou!!")notice_all("Boa Sorte para Os Reinos!")npc.purge()say_reward("Guerra da Tocha")say("Voce ativou a guerra!")wait()regen_in_map(63, "data/dungeon/tochared.txt")regen_in_map(63, "data/dungeon/tochablue.txt")regen_in_map(63, "data/dungeon/tochayellow.txt") elseif b == 2 then if game.get_event_flag("tocha") == 1 thengame.set_event_flag("tocha", 0) say("")say("Voce conclui com exito o evento tocha!") game.set_event_flag("tocha_kill", 2)game.get_event_flag("tocha_kill_count1", 0)game.get_event_flag("tocha_kill_count2", 0)game.get_event_flag("tocha_kill_count3", 0)warp_all_to_village( pc.get_map_index() , 5 )notice_all("O Evento tocha Foi finalizado..")npc.purge()else say("")say("Não pode terminar o evento,")say("pois ainda nem o começou...")say("")endelseif b == 3 then return endendwhen 11506.kill with pc.get_map_index() == 63 beginnation = { "Shinsu" , "Chunjo" , "Jinno" }notice_all ( "A Tocha Do Reino Blue foi Destruida pelo Reino " .. nation [ pc . getempire ( ) ] .. " !" )game.set_event_flag("tocha_kill_count"..pc.get_empire(), game.get_event_flag("tocha_kill_count"..pc.get_empire()) + 1)endwhen 11507.kill with pc.get_map_index() == 63 beginnation = { "Shinsu" , "Chunjo" , "Jinno" }notice_all ( "A Tocha Do Reino Red foi Destruida pelo Reino " .. nation [ pc . getempire ( ) ] .. " !" )game.set_event_flag("tocha_kill_count"..pc.get_empire(), game.get_event_flag("tocha_kill_count"..pc.get_empire()) + 1)endwhen 11508.kill with pc.get_map_index() == 63 beginnation = { "Shinsu" , "Chunjo" , "Jinno" }notice_all ( "A Tocha Do Reino Yellow foi Destruida pelo Reino " .. nation [ pc . getempire ( ) ] .. " !" )game.set_event_flag("tocha_kill_count"..pc.get_empire(), game.get_event_flag("tocha_kill_count"..pc.get_empire()) + 1)endwhen 11506.kill or 11507.kill or 11508.kill with pc.get_map_index() == 63 beginif game.get_event_flag("tocha_kill_count1") == game.get_event_flag("tocha_kill") orgame.get_event_flag("tocha_kill_count2") == game.get_event_flag("tocha_kill") orgame.get_event_flag("tocha_kill_count3") == game.get_event_flag("tocha_kill") thenelseif npc.is_pc() and npc.get_empire ~= pc.get_empire() thengame.set_event_flag("tocha_kill_count"..pc.get_empire(), game.get_event_flag("tocha_kill_count"..pc.get_empire()) + 1)notice_in_map("Pontuação atual: Shinsoo: "..game.get_event_flag("tocha_kill_count1").." Chunjo: "..game.get_event_flag("tocha_kill_count2").." Jinno: "..game.get_event_flag("tocha_kill_count3").."")if game.get_event_flag("tocha_kill_count1") == game.get_event_flag("tocha_kill") thennotice_all("Reino Shinsoo Ganho a Guera De Encruzilhada!!!")notice_all(" Mais uma vez, revela-se o mais poderoso reino!")game.set_event_flag("tocha", 0)game.set_event_flag("tohca_kill_count", 2)game.set_event_flag("tohca_kill_count1" , 0 )game.set_event_flag("tohca_kill_count2" , 0 )game.set_event_flag("tohca_kill_count3" , 0 )npc.purge()warp_all_to_village( pc.get_map_index() , 5 )__give_empire_priv(1, 4, 100, 60*60*24)notice_all("O Reino Shinsoo Tera aumento de 100% da Experiencia por 24Horas!")elseif game.get_event_flag("tocha_kill_count2") == game.get_event_flag("tocha_kill") thennotice_all("Reino Chunjo Ganho a Guera De Encruzilhada!!!")notice_all(" Mais uma vez, revela-se o mais poderoso reino!")game.set_event_flag("tocha", 0)game.set_event_flag("tohca_kill_count", 2)game.set_event_flag("tohca_kill_count1" , 0 )game.set_event_flag("tohca_kill_count2" , 0 )game.set_event_flag("tohca_kill_count3" , 0 )npc.purge()warp_all_to_village( pc.get_map_index() , 5 )__give_empire_priv(2, 4, 100, 60*60*24)notice_all("O Reino Chunjo Tera aumento de 100% da Experiencia por 24Horas!")elseif game.get_event_flag("tocha_kill_count3") == game.get_event_flag("tocha_kill") thennotice_all(" Reino Jinno Ganho a Guera De Encruzilhada!")notice_all(" Mais uma vez, revela-se o mais poderoso reino!")game.set_event_flag("tocha", 0)game.set_event_flag("tohca_kill_count", 2)game.set_event_flag("tohca_killl_count1" , 0 )game.set_event_flag("tohca_kill_count2" , 0 )game.set_event_flag("tohca_kill_count3" , 0 )npc.purge()warp_all_to_village( pc.get_map_index() , 5 )__give_empire_priv(3, 4, 100, 60*60*24)notice_all("O Reino Jinno Tera aumento de 100% da Experiencia por 24Horas!")endendendendendOs Arquivos basta vc criar 3 txt cada 1 com o nometocharedtochabluetochayellowe dentro coloca a warp onde vc quer q caia as tochas no desertoEx :m 892 601 10 10 0 0 9999s 100 1 11508m 881 605 10 10 0 0 9999s 100 1 20037m 886 587 10 10 0 0 9999s 100 1 20037m 875 594 10 10 0 0 9999s 100 1 20037m 891 598 10 10 0 0 9999s 100 1 20037Bom Isso ae Glr..

Share this post


Link to post
Share on other sites
antiblock
Cyphriun

pc.get_empire(), no pc.getempire ^^.

Share this post


Link to post
Share on other sites

Qm Fez Correçoes Posta ela certa ae p galera. eu reedito o topico e meto creditos :P

Share this post


Link to post
Share on other sites

Alguém conseguiu colocar essa quest?da um aviso aqui.

Share this post


Link to post
Share on other sites

tem bug !

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this