[TUTORIAL]Guerra de Reinos.
Autor: Matheus Saliba | Publicado: 2012-07-04T10:50:00-07:00

Bom Nesse Tutorial Vou Ajudalos a Traduzir e Executar a Guerra de Reinos Vamos la...1 - Baixem Este Arquivo.

Spoiler&nbsp;

http://www.4shared.c...rradereino.html


Ow Abram o Bloco de Notas Coloque Isto Dentro Dele
Spoiler&nbsp;

------ QUEST By : NerD ------quest guerradereino 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() &lt;= 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() &lt; 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 &gt; 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) --elsegame.set_event_flag("threeway_war_kill_count", 250) --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


Ai Voce Clika em Salvar Como e o Nome voce Coloca guerradereino.quest e em Tipo Voce Coloca Todos os Tipos de Arquivo2 - Ai Voce Coloca Este Arquivo no Diretorio "Em NerD Coloque o da Sua Files"
Spoiler&nbsp;

/usr/NerD/channel/share_data/locale/hongkong/quest


3 - Va no Virtual PC ow Putty e Digite&nbsp;
Spoiler&nbsp;

./qc guerradereino.quest


4 - De Reboot e Teste !Scrip e Tutorial By : NerD&nbsp;