cerere quest batalia regatelor

Totalitatea subiectelor care nu respectă regulamentul vor fi stocate aici.
Deconectat
Avatar utilizator
Gadreel
Nivel 1
Nivel 1
Mesaje: 121
Membru din: 15 Mar 2015
Status: Sunt bine mersi ^.^
Server Metin2: Metin2Ragnaros
Regat: Jinno
Mulțumiri acordate: 0
Mulțumiri primite: 0

cerere quest batalia regatelor

Mesajde Gadreel » 05 Apr 2015, 22:48

salut, ma poate ajuta si pe mine cineva va rog frumos cu un quest la batalia regatelor?
eu am folosit asta http://just4metin.ro/post166114.html#p166114 dar nu merge sa ma teleportez la event de pe cont de player, si de pe gm din cate am vazut nu afiseaza scorul .

Deconectat
Avatar utilizator
C.Marius
Mister Just4Metin
Mister Just4Metin
Mesaje: 682
Membru din: 28 Sep 2014
Localitate: Targoviste
Status: Sunt bine mersi ^.^
Server Metin2: Metin2Delphi
Regat: Jinno
Mulțumiri acordate: 1
Mulțumiri primite: 8
Contact:

Re: cerere quest batalia regatelor

Mesajde C.Marius » 06 Apr 2015, 08:32

Incearca cu asta:
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

Sau asta:
quest nation_war begin
state start begin


--NPC--

when 11001.chat."National War" or 11003.chat."National War" or 11005.chat."National War" begin

local akroma_war = {

{199, 300},
{200, 300},
{300, 300}
}

if game.get_event_flag("nation_war")== 0 then
say("National War este inchis,in acest moment")
say("Vei fi anuntat,cand va fi pornit")

elseif game.get_event_flag("nation_war")== 1 then
say("National War este deschis, vrei sa participi?")
local nation_war = select("Da","Nu")

if nation_war == 1 then
if pc.level < 65 then
say("Ai nivel "..pc.level()..", trebuie sa ai minim 65.")
else
if pc.get_empire()== 1 then
pc.warp(akroma_war[1])

elseif pc.get_empire()== 2 then
pc.warp(akroma_war[2])

elseif pc.get_empire()== 3 then
pc.warp(akroma_war[3])
end
end

elseif nation_war == 2 then
return
end
end
end

--GM--

when 70042.use with pc.is_gm() begin

if game.get_event_flag("nation_war")== 0 then
say("La National War este inchis, crei sa-l deschizi "..pc.get_name().." ")

local open_nation = select("Da","Nu")

if open_nation == 1 then
game.set_event_flag("nation_war", 1)
game.set_event_flag("jinno", 0)
game.set_event_flag("shinso", 0)
game.set_event_flag("chunjo", 0)
timer("nation_war1", 600)

elseif open_nation == 2 then
return
end

elseif game.get_event_flag("nation_war")== 1 then
say("National War deschis, vrei sa-l inchizi? "..pc.get_name().." ")

local close_nation = select("Da",Nu")

if close_nation == 1 then
game.set_event_flag("nation_war", 0)
game.set_event_flag("jinno", 0)
game.set_event_flag("shinso", 0)
game.set_event_flag("chunjo", 0)

elseif close_nation == 2 then
return
end
end

end

--Timers--

when nation_war1.timer begin
notice_all("Scor: Jinno:"..game.get_event_flag("jinno").." Shinso:"..game.get_event_flag("shinso").." Chunjo:"..game.get_event_flag("chunjo").." ")
timer("nation_war2", 600)
end

when nation_war2.timer begin
notice_all("Scor: Jinno:"..game.get_event_flag("jinno").." Shinso:"..game.get_event_flag("shinso").." Chunjo:"..game.get_event_flag("chunjo").." ")
timer("nation_war3", 600)
end

when nation_war3.timer begin
notice_all("Scor: Jinno:"..game.get_event_flag("jinno").." Shinso:"..game.get_event_flag("shinso").." Chunjo:"..game.get_event_flag("chunjo").." ")
timer("nation_war4", 600)
end

when nation_war4.timer begin
notice_all("Scor: Jinno:"..game.get_event_flag("jinno").." Shinso:"..game.get_event_flag("shinso").." Chunjo:"..game.get_event_flag("chunjo").." ")
timer("nation_war5", 600)
end

when nation_war5.timer begin
notice_all("Scor: Jinno:"..game.get_event_flag("jinno").." Shinso:"..game.get_event_flag("shinso").." Chunjo:"..game.get_event_flag("chunjo").." ")
timer("nation_war6", 600)
end

when nation_war6.timer begin

local imperios = {
{game.get_event_flag("jinno")},
{game.get_event_flag("shinso")},
{game.get_event_flag("chunjo")}
}

if imperios[1] > imperios[2] and imperios[3] then
notice_all("Jinno a castigat National War")
warp_to_village()

elseif imperios[2] > imperios[1] and imperios[3] then
notice_all("Shinso a castigat National War")
warp_to_village()

elseif imperios[3] > imperios[1] and imperios[2] then
notice_all("Chunjo a castigat National War")
warp_to_village()
end
end

--Scor kills--

when kill with npc.is_pc() and pc.get_empire() != npc.get_empire() begin
if game.get_event_flag("nation_war") == 1 and pc.get_map_index()== 112 then

if pc.get_empire() == 1 then
game.set_event_flag("jinno", game.get_event_flag("jinno")+1)

elseif pc.get_empire()== 2 then
game.set_event_flag("shinso", game.get_event_flag("shinso")+1)

elseif pc.get_empire()== 3 then
game.set_event_flag("chunjo", game.get_event_flag("chunjo")+1)
end

elseif game.get_event_flag("nation_war") == 2 then
syschat("Razboiul nu e activat.")
warp_to_village()
end
end
end
end

Sper ca ti-am fost de folos si nu uita un Thx.

Deconectat
Avatar utilizator
Gadreel
Nivel 1
Nivel 1
Mesaje: 121
Membru din: 15 Mar 2015
Status: Sunt bine mersi ^.^
Server Metin2: Metin2Ragnaros
Regat: Jinno
Mulțumiri acordate: 0
Mulțumiri primite: 0

Re: cerere quest batalia regatelor

Mesajde Gadreel » 06 Apr 2015, 13:29

nu merge...

Deconectat
Avatar utilizator
Tears^
Fost Moderator
Fost Moderator
Mesaje: 603
Membru din: 07 Apr 2014
Reputație: Fost Moderator
Status: ^.^
Regat: Chunjo
Mulțumiri acordate: 1
Mulțumiri primite: 2

Re: cerere quest batalia regatelor

Mesajde Tears^ » 06 Apr 2015, 20:09

Subiect mutat in Cereri

Deconectat
Avatar utilizator
A4TechZu
Nou Venit
Nou Venit
Mesaje: 28
Membru din: 02 Apr 2015
Status: Somnoros
Server Metin2: Divergent Metin2
Regat: Chunjo
Mulțumiri acordate: 0
Mulțumiri primite: 0

Re: cerere quest batalia regatelor

Mesajde A4TechZu » 15 Apr 2015, 12:57

Incearca asta:

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 Galben a dat sigiliul![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("Divergent Metin2 va multumeste pentru participare!")
         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

Vezi sa se potriveasca indexii


Înapoi la “Topicuri şi mesaje şterse”

Cine este conectat

Utilizatori ce ce navighează pe acest forum: Mihaifx și 11 vizitatori