Problema quest

Totalitatea subiectelor care nu respectă regulamentul impus in sectiunea "Probleme şi Întrebări" vor fi stocate aici.
Închis
Avatar utilizator
AnonsBoat
Nivel 2

Nivel 2
Mesaje: 264
Membru din: 29 Apr 2015, 23:45
Server: Wanted2
Regat: Chunjo
Aprecieri: 38  
Mulţumiri: 0
Discord: Copiază ID
 Contact:
Medalii

Salut,
Poate cineva sa imi ofere quest-ul batalia regatelor ?
Am un quest dar nu teleporteaza playeri ci doar gm-ii!
Va rog am mare nevoie ! Am gasit mai multe quest-uri dar toate fac la fel!

Cod: Selectaţi tot

quest forked_road begin
    state start begin
   when login begin
      -- 114 sungzi
      -- 115 116 117 118 119 120 Road
       if forked.isforkedmapindex( pc.get_map_index() ) == 1  then
         if game.get_event_flag("threeway_war") == 0 then
            warp_to_village();
         else
            --if forked.getdeadcount() <= 0 then
            --   warp_to_village();
            --end
            if forked.issungzimapindex( pc.get_map_index() ) == 0 then
               say( "Batalia Regatelor" )
               say( "Trebuie sa omori Regele Tigru Galben" )
               say( "El detine sigiliul acestei harti!" )
               say( "Fara el nu poti sa treci mai departe:" )
               say_item( "Acesta este sigiliul!",50089,"");
            else
               say( "Bun venit la Batalia Regatelor!" )
               say( "Aici te porti intalni cu alte regate" )
               say( "Pentru a va da cate o palma peste fundu" )
               say( "unu altuia sa vedeti care doare mai tare!!" )
            end
            
         end
      end
   end
   when 11001.chat."Batalia Regatelor" or 11003.chat."Batalia Regatelor" or 11005.chat."Batalia Regatelor" begin
       if game.get_event_flag("threeway_war") == 0 then
         say("Protile regatelor de lupta")
         say("Sunt inchise pentru moment!")
       else
         say("Buna!")
         say("Portile de lupta sunt deschise!")
         say("Vrei sa intrii?")
         local s = select("Da","Nu!")
         if s == 1 then
         if pc.get_level() < 50 then
            say("Nivelul tau este prea mic.Vino cand o sa ai peste LVL 50!");
            return 
         end
            
         forked.setdeadcount();
         if pc.getempire() == 1 then
            if game.get_event_flag("threeway_war_open_gate1" ) == 0 then
               say("Aceasta este o Tara Sfanta.[ENTER] Unde cei mai buni pot intra aici!" );
               return
            end
         elseif pc.getempire() == 2 then
            if game.get_event_flag("threeway_war_open_gate2" ) == 0 then
               say("Aceasta este o Tara Sfanta.[ENTER] Unde cei mai buni pot intra aici!" );
               return
            end
         elseif pc.getempire() == 3 then
            if game.get_event_flag("threeway_war_open_gate3" ) == 0 then
               say("Aceasta este o Tara Sfanta.[ENTER] Unde cei mai buni pot intra aici!" );
               return
            end
         else
            say(locale.forked_man_say_you_cant2 )
         end
         pc.warp( forked.getpassstartposx() , forked.getpassstartposy() )
         end
      end
   end
   when 1306.kill begin      
      game.drop_item(50089, 1 )
      say("TIgrul Galebn a dat sigilil![ENTER]Acum puteti intra in lupta!") ;
   end   


   when 20081.take with item.vnum == 50089 begin
      say_in_map( pc.get_map_index() , locale.forked_open_gate , 1); 
      npc.purge()
      item.remove()
      
      --??? ???
      forked.setdeadcount()
      forked.initkillcount()
      forked.initmobkillcount()
      
      if pc.getempire() == 1 then
         game.set_event_flag("threeway_war_open_gate1", 0 )
         notice_all("Intra in Tara Sfanta" ) 
      elseif pc.getempire() == 2 then
         game.set_event_flag("threeway_war_open_gate2", 0 )
          notice_all("Intra in Tara Sfanta" )
      elseif pc.getempire() == 3 then
         game.set_event_flag("threeway_war_open_gate3", 0 )
         notice_all("Intra in Tara Sfanta" )
      else
         say(locale.forked_man_say_you_cant2 )
      end
      local iEmpire = pc.getempire()
      
      warp_all_in_map( pc.get_map_index() , forked.getsungzimapindex() ,forked.getsungziposx() , forked.getsungziposy() , 10 );
   end

   when 11001.chat."Manager Lupte Regat" or 11003.chat."Manager Lupte Regat" or 11005.chat."Manager Lupte Regat" with pc.is_gm() begin
      
      local s = select("Lupta Regatelor Start" , "Lupta Regatelor Sfarsit" );
      if s == 1 then

         -- ??? ?? ?? ?? ???
         kill_all_in_map( forked.getsungzimapindex() );
         kill_all_in_map( forked.getpassmapindexbyempire(1) );
         kill_all_in_map( forked.getpassmapindexbyempire(2) );
         kill_all_in_map( forked.getpassmapindexbyempire(3) );

         -- ??? 
         forked.initforked()
         -- ??? ??? ?? 
         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" );

         -- ?? ??? ??
         game.set_event_flag("threeway_war",1)


         -- ??? ?? ? ?? ??
         game.set_event_flag("threeway_war_dead_count", 5)
         game.set_event_flag("threeway_war_mob_count", 150 )
         game.set_event_flag("threeway_war_kill_count", 200 )
         game.set_event_flag("threeway_war_kill_boss_count", 1 );
         -- ??? ?? ??/?? ??
         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 )
         
         notice_all("Batalia Regatelor Incepe!")
         notice_all("" )
      else   
         game.set_event_flag("threeway_war",0)
         kill_all_in_map( forked.getsungzimapindex() );
         kill_all_in_map( forked.getpassmapindexbyempire(1) );
         kill_all_in_map( forked.getpassmapindexbyempire(2));
         kill_all_in_map( forked.getpassmapindexbyempire(3));
         notice_all("Batalia Regatelor incheiata!")
         notice_all("Pro-Area.com")
         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 )
      end
   end
   
   
   when 11001.chat."Sungzi Deschis" or 11003.chat."Sungzi Deschis" or 11005.chat."Sungzi Deschis" with pc.is_gm() begin
      game.set_event_flag("threeway_war",1)
      game.set_event_flag("threeway_war_dead_count", 5)
      game.set_event_flag("threeway_war_mob_count", 150 )
      game.set_event_flag("threeway_war_kill_count", 200 )
      game.set_event_flag("threeway_war_kill_boss_count", 1 );
      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 )
      command("warp 9463 254")
   end
   end
end
Ultima oară modificat 08 Oct 2015, 10:45 de către AnonsBoat, modificat 1 dată în total.
Imagine
Afișează semnătura
Avatar utilizator
Emil2d
Nivel 3

Nivel 3
Mesaje: 429
Membru din: 07 Feb 2015, 06:22
Server: -interzis-.com
Regat: Chunjo
Aprecieri: 6  
Mulţumiri: 41  
 Contact:
Medalii

Posteaza codul , poate te pot ajuta :/ , e ceva in neregula pe acolo.
Imagine
Imagine
Afișează semnătura
Avatar utilizator
AnonsBoat
Nivel 2

Nivel 2
Mesaje: 264
Membru din: 29 Apr 2015, 23:45
Server: Wanted2
Regat: Chunjo
Aprecieri: 38  
Mulţumiri: 0
Discord: Copiază ID
 Contact:
Medalii

L-am pus mai sus , am editat postarea!
Imagine
Afișează semnătura
Avatar utilizator
Pietonu'
Nivel 7

Nivel 7
Mesaje: 1351
Membru din: 18 Mar 2015, 13:47
Regat: Chunjo
Aprecieri: 3  
Mulţumiri: 52  
Medalii

when 11001.chat."Manager Lupte Regat" or 11003.chat."Manager Lupte Regat" or 11005.chat."Manager Lupte Regat" with pc.is_gm() begin linia asta trebuie modificata nu ma pricep la questuri dar sigur ea e
Imagine
Afișează semnătura
Avatar utilizator
AnonsBoat
Nivel 2

Nivel 2
Mesaje: 264
Membru din: 29 Apr 2015, 23:45
Server: Wanted2
Regat: Chunjo
Aprecieri: 38  
Mulţumiri: 0
Discord: Copiază ID
 Contact:
Medalii

Poi da dar stie cineva sa o mofice?
Imagine
Afișează semnătura
Avatar utilizator
Helios
Membru Club

Membru Club
Mesaje: 1950
Membru din: 09 Apr 2014, 21:02
Aprecieri: 2  
Mulţumiri: 208  
 Contact:
Medalii

Încearcă quest-ul official, numai trebuie tradus.

Cod: Selectaţi tot

quest forked_road begin 
    state start begin 
        when login with forked.isforkedmapindex( pc.get_map_index() ) == true begin 
            if game.get_event_flag("threeway_war") == 0 then 
                warp_to_village() 
            else 
                local noticeShow = false 

                if forked.is_registered_user() == false then 
                    forked.register_user() 
                    forked.setdeadcount() 
                    pc.remove_item(50089) 
                    noticeShow = true 
                end 

                if forked.getdeadcount() <= 0 then 
                    warp_to_village() 
                elseif true == noticeShow then 
                    if forked.issungzimapindex( pc.get_map_index() ) == true then 
                        say( locale.forked_condition2 ) 
                        say( locale.NOTICE_COLOR..locale.forked_rule_sungzi ) 
                    else 
                        say( locale.forked_condition ) 
                        say( locale.NOTICE_COLOR..locale.forked_rule ) 
                        say_item_vnum(50089) 
                                end 
                        end 
                end 
        end 
        when 11001.chat.locale.forked_man_chat or 11003.chat.locale.forked_man_chat or 11005.chat.locale.forked_man_chat begin 
            if game.get_event_flag("threeway_war") == 0 then 
                        say(locale.forked_man_say_cant) 
            else 
                        say(locale.forked_man_say) 
                        local s = select(locale.forked_enter,locale.forked_no_enter) 
                        if s == 1 then 
                    local limit = math.min(game.get_event_flag("threeway_war_level"), 30) 

                    if pc.get_level() < limit then 
                        say("In order to join three way war, your level must be over "..limit.."")     
                        return 
                    end 

                    local canJoin = false 

                    if (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) then 
                        canJoin = true 
                    else 
                        say( locale.forked_man_say_you_cant2 ) 
                    end 

                    if true == canJoin then 
                        pc.warp( forked.get_pass_start_pos() ) 
                    else 
                        say("You cannot join after gate to holy land is opened!") 
                        say("Pray for our kingdom to conquer Holy land !!") 
                        end 
                        end 
                end 
        end 
         
        when 1306.kill with forked.isforkedmapindex(pc.get_map_index()) == true begin 
            game.drop_item(50089, 1) 
        ----"12345678901234567890123456789012345678901234567890"| 
                say("If the Stone of Hermetic Seal is opened with the") 
                say("Stone of Dismantling ,All users will be") 
                say("brought onto the street.") 
                say("Nobody will be able to go back to the holy ground.") 
                say("") 
        end 

        when 1902.kill with forked.issungzimapindex(pc.get_map_index()) == true begin 
            if 0 == game.get_event_flag("threeway_war") then 
                return 
            end 

            local remainBossCount = game.get_event_flag("threeway_war_boss_count") - 1 

            game.set_event_flag("threeway_war_boss_count", remainBossCount) 

            if remainBossCount > 1 then 
                return 
        end 

            game.set_event_flag("threeway_war", 0) 
            local nation = { "Pandemonia","Asmodia","Elgoria" } 
            notice_all("The winner of three way war is "..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) 
        end 

        when 20081.take with item.vnum == 50089 begin 
            say_in_map(pc.get_map_index(), locale.forked_open_gate) 
                npc.purge() 
                item.remove() 

                forked.initkillcount() 

                if pc.getempire() == 1 then 
                game.set_event_flag("threeway_war_open_gate1", 0) 
                        notice_all("Pandemonia-empire enters the holy ground." ) 
                elseif pc.getempire() == 2 then 
                game.set_event_flag("threeway_war_open_gate2", 0) 
                    notice_all("Asmodia-empire enters the holy ground." ) 
                elseif pc.getempire() == 3 then 
                game.set_event_flag("threeway_war_open_gate3", 0) 
                        notice_all("Elgoria-empire enters the holy ground." ) 
                else 
                        say(locale.forked_man_say_you_cant2 ) 
                end 

            local x, y = forked.get_sungzi_start_pos() 
            forked.warp_all_in_map( pc.get_map_index(), forked.getsungzimapindex(), x, y, 10) 
        end 

        when 11001.chat."GM; Three Empires Street Fighting?" or 11003.chat."GM; Three Empires Street Fighting?" or 11005.chat."GM: Three Empires Street Fighting?" with pc.is_gm() begin 
           local s = select( "Start the Empires Street Fighting" , "Enter the Empires Street Fighting" ); 

            if s == 1 then 
                -- ±âÁ¸¿¡ ÀÖ´ø ¸÷À» ¸&#287;µÎ Á×Àδ٠
                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() then 
                    game.set_event_flag("threeway_war_kill_count", 5)    -- PC ¸î ¸í Á×ÀÌ¸é ¼øÀ§ ¸Ô¿© Å»¶ô½Ãų °ÍÀΰ¡ 
                else 
                    game.set_event_flag("threeway_war_kill_count", 250)    -- PC ¸î ¸í Á×ÀÌ¸é ¼øÀ§ ¸Ô¿© Å»¶ô½Ãų °ÍÀΰ¡ 
                end 

                game.set_event_flag("threeway_war_boss_count", 5)    -- ÃÖÁ¾ º¸½º ¸î ¸¶¸® ¼ÒȯÇÒ °ÍÀΰ¡ 

                -- »ï°Å¸® ÀÔ±¸ ¿*°í/´&#304;±â ¼³Á¤ 
                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("Starting three way war.") 
                notice_all("Talk to the town guard to join three way war.") 

            elseif 2 == s then 
                game.set_event_flag("threeway_war", 0) 

                notice_all("Ending three way war") 
                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) 
                end 
        end 
        end 
        end
Imagine
Afișează semnătura
Avatar utilizator
AnonsBoat
Nivel 2

Nivel 2
Mesaje: 264
Membru din: 29 Apr 2015, 23:45
Server: Wanted2
Regat: Chunjo
Aprecieri: 38  
Mulţumiri: 0
Discord: Copiază ID
 Contact:
Medalii

Multumesc dar nu merge sa ma teleportez in mapa
Imagine
Afișează semnătura
Avatar utilizator
Emil2d
Nivel 3

Nivel 3
Mesaje: 429
Membru din: 07 Feb 2015, 06:22
Server: -interzis-.com
Regat: Chunjo
Aprecieri: 6  
Mulţumiri: 41  
 Contact:
Medalii

Ai incercat si cu lvl acolo zice ca trebuie 50+ ?
Imagine
Imagine
Afișează semnătura
Avatar utilizator
Helios
Membru Club

Membru Club
Mesaje: 1950
Membru din: 09 Apr 2014, 21:02
Aprecieri: 2  
Mulţumiri: 208  
 Contact:
Medalii

Arhivat, subiect inactiv.
Imagine
Afișează semnătura
Închis
Răspunsuri
6
Vizualizări
410
Răspunsuri
4
Vizualizări
227
Răspunsuri
4
Vizualizări
415
Răspunsuri
3
Vizualizări
740

Înapoi la “Arhivă Probleme şi Întrebări”

  • Informaţie