f430 41 Posted January 7, 2012 Para quem têm problemas com a quest forked_road.quest ou a quest tá bugada,vou postar a quest oficial da Ymir. OBS:A tradução não está correctamente igual há da oficial. quest forked_road beginstate start beginwhen login with forked.isforkedmapindex( pc.get_map_index() ) == true beginif game.get_event_flag("threeway_war") == 0 thenwarp_to_village()elselocal noticeShow = falseif forked.is_registered_user() == false thenforked.register_user()forked.setdeadcount()pc.remove_item(50089)noticeShow = trueendif forked.getdeadcount() <= 0 thenwarp_to_village()elseif true == noticeShow thenif forked.issungzimapindex( pc.get_map_index() ) == true thensay( locale.forked_condition2 )say( locale.NOTICE_COLOR..locale.forked_rule_sungzi )elsesay( locale.forked_condition )say( locale.NOTICE_COLOR..locale.forked_rule )say_item_vnum(50089)endendendendwhen 11001.chat.locale.forked_man_chat or 11003.chat.locale.forked_man_chat or 11005.chat.locale.forked_man_chat beginif game.get_event_flag("threeway_war") == 0 thensay(locale.forked_man_say_cant)elsesay(locale.forked_man_say)local s = select(locale.forked_enter,locale.forked_no_enter)if s == 1 thenlocal limit = math.min(game.get_event_flag("threeway_war_level") , 30)if pc.get_level() < limit thensay("Para entrares na guerra de reinos o teu nível deve ser "..limit.."")returnendlocal canJoin = falseif (pc.getempire() == 1 and game.get_event_flag("threeway_war_open_gate1" ) != 0) or(pc.getempire() == 2 and game.get_event_flag("threeway_war_open_gate2" ) != 0) or(pc.getempire() == 3 and game.get_event_flag("threeway_war_open_gate3" ) != 0) thencanJoin = trueelsesay( locale.forked_man_say_you_cant2 )endif true == canJoin thenpc.warp( forked.get_pass_start_pos() )elsesay("Não podes entrar, as portas estão fechadas, já começou!")say("Agora só tem que lutar pelo teu reino, dei-a força no chat!")endendendendwhen 1306.kill with forked.isforkedmapindex(pc.get_map_index()) == true begingame.drop_item(50089, 1)----"1234567890123456789012345678901234567890123456789 0"|say("Se a pedra for aberta por")say("o item, todos os jogadores vão")say("ser postos na rua.")say("Ninguém mais volta.")say("")endwhen 1902.kill with forked.issungzimapindex(pc.get_map_index()) == true beginif 0 == game.get_event_flag("threeway_war") thenreturnendlocal remainBossCount = game.get_event_flag("threeway_war_boss_count") - 1game.set_event_flag("threeway_war_boss_count", remainBossCount)if remainBossCount > 1 thenreturnendgame.set_event_flag("threeway_war", 0)local nation = { "vermelho","amarelo","azul" }notice_all("O reino vencedor é o reino "..nation[pc.getempire()])warp_all_to_village(forked.getsungzimapindex(), 30)warp_all_to_village(forked.getpassmapindexbyempire (1), 30)warp_all_to_village(forked.getpassmapindexbyempire (2), 30)warp_all_to_village(forked.getpassmapindexbyempire (3), 30)endwhen 20081.take with item.vnum == 50089 beginsay_in_map(pc.get_map_index(), locale.forked_open_gate)npc.purge()item.remove()forked.initkillcount()if pc.getempire() == 1 thengame.set_event_flag("threeway_war_open_gate1", 0)notice_all("Vermelhos já entraram." )elseif pc.getempire() == 2 thengame.set_event_flag("threeway_war_open_gate2", 0)notice_all("Amarelos já entraram." )elseif pc.getempire() == 3 thengame.set_event_flag("threeway_war_open_gate3", 0)notice_all("Azuis já entraram." )elsesay(locale.forked_man_say_you_cant2 )endlocal x, y = forked.get_sungzi_start_pos()forked.warp_all_in_map( pc.get_map_index(), forked.getsungzimapindex(), x, y, 10)endwhen 11001.chat."GM; Guerra de Reinos?" or 11003.chat."GM; Guerra de Reinos??" or 11005.chat."GM: Guerra de Reinos?" with pc.is_gm() beginlocal s = select( "Iniciar a Guerra!" , "Fechar a Guerra!" );if s == 1 then-- ±âḿ¡ ÀÖ´ø ¸÷À» ¸ğµÎ á×ÀδÙforked.purge_all_monsters()-- ãê±âÈ*forked.initforked()-- ½ãÀÛ çã·¡±× ¼³á¤game.set_event_flag("threeway_war", 1)-- »ï°Å¸® ÀüÅõ ų á¦çÑ ¼³á¤game.set_event_flag("threeway_war_dead_count", 25) -- ºÎÈ° °¡´é ¼Öif true == is_test_server() thengame.set_event_flag("threeway_war_kill_count", 5) -- PC ¸Î ¸í á×ÀÌ¸é ¼øÀ§ ¸Ô¿© Å»¶Ô½ãų °íÀΰ¡elsegame.set_event_flag("threeway_war_kill_count", 250) -- PC ¸Î ¸í á×ÀÌ¸é ¼øÀ§ ¸Ô¿© Å»¶Ô½ãų °íÀΰ¡endgame.set_event_flag("threeway_war_boss_count", 5) -- ãÖá¾ º¸½º ¸Î ¸¶¸® ¼ÒȯçÒ °íÀΰ¡-- »ï°Å¸® ÀÔ±¸ ¿*°í/´İ±â ¼³á¤game.set_event_flag("threeway_war_open_gate1", 1)game.set_event_flag("threeway_war_open_gate2", 1)game.set_event_flag("threeway_war_open_gate3", 1)say("Three way war has begun.")say("")wait()-- ¸ó½ºÅí »õ·ó°Ô ¸®á¨regen_in_map( forked.getpassmapindexbyempire(1), forked.getpasspathbyempire(1) .."regen.txt" )regen_in_map( forked.getpassmapindexbyempire(1), forked.getpasspathbyempire(1) .."npc.txt" )regen_in_map( forked.getpassmapindexbyempire(2), forked.getpasspathbyempire(2) .."regen.txt" )regen_in_map( forked.getpassmapindexbyempire(2), forked.getpasspathbyempire(2) .."npc.txt" )regen_in_map( forked.getpassmapindexbyempire(3), forked.getpasspathbyempire(3) .."regen.txt" )regen_in_map( forked.getpassmapindexbyempire(3), forked.getpasspathbyempire(3) .."npc.txt" )notice_all("A guerra de reinos foi iniciada.")notice_all("Fala com o guarda para entrar na batalha!")elseif 2 == s thengame.set_event_flag("threeway_war", 0)notice_all("A guerra de reinos foi fechada.")forked.purge_all_monsters()warp_all_to_village(forked.getsungzimapindex(), 1)warp_all_to_village(forked.getpassmapindexbyempire (1), 1)warp_all_to_village(forked.getpassmapindexbyempire (2), 1)warp_all_to_village(forked.getpassmapindexbyempire (3), 1)endendendend Credits,Epvp 4 proestrela, f430, Valenza and 1 other reacted to this Share this post Link to post Share on other sites
nahtanoj 15 Posted August 6, 2012 Este script está com erros ^^quem souber faazer a guerra de reinos funcionar da uma força ae no meu não aparece mobs nenhum,e quando entra os players no mapa de matar não conta as kills na tela Share this post Link to post Share on other sites
YonN 28 Posted April 20, 2014 sobre os mobs apenas fixa-los isso eh de boa.. mais o grande problema e a contagem... Share this post Link to post Share on other sites
Z3R0 33 Posted February 17, 2015 Segue ai a imagem do erro que ta a dar quando fasso a instalação da quest. Share this post Link to post Share on other sites
Karbust 1,143 Posted February 17, 2015 Adiciona essa funções ao quest_functions... Share this post Link to post Share on other sites
ISunset 4 Posted August 10, 2015 Faz a contagem ou não?sabem? Share this post Link to post Share on other sites
wesleycanalha 0 Posted December 28, 2015 meu npc e regen ta configurado mais msm assim nao aparece bicho nenhum, oq pode ser, alguem sabe me dizer? Share this post Link to post Share on other sites