Problema Lupta Regatelor

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

Mister Just4Metin
Mesaje: 619
Membru din: 28 Iun 2015, 16:07
Server: Draco
Regat: Shinsoo
Aprecieri: 127  
Mulţumiri: 168  
 Contact:
Medalii

*Problemă/Întrebare:
Tipologie server:
*Resursă folosită:
*ServerFiles utilizat:
*Syserr:
Poză:
*Detalii suplimentare:


Salut, folosesc acest quest, am mapele funtionale, questul este perfect dar nu se spawneaza mobii ...
https://www.google.ro/amp/s/www.elitepv ... ft=1435259
La voi dacă merge spuneți-mi va rog cum ați făcut.

[ Postat de pe iPhone ] Imagine
Avatar utilizator
Petrinel
Nivel 4

Nivel 4
Mesaje: 539
Membru din: 31 Mar 2018, 00:58
Server: Fara
Regat: Jinno
Aprecieri: 319  
Mulţumiri: 101  
Discord: Copiază ID
Medalii

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("Multumim.")
			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
Incearca.
Imagine
Afișează semnătura
Avatar utilizator
Vaynz
Ţepar / Untrusted User

Ţepar / Untrusted User
Mesaje: 729
Membru din: 07 Iun 2018, 15:16
Server: -
Regat: Chunjo
Aprecieri: 153  
Mulţumiri: 3618  
Medalii

Subiect inactiv, arhivat.
Închis
Răspunsuri
8
Vizualizări
379
Răspunsuri
20
Vizualizări
2015

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

  • Informaţie
  • Cine este conectat

    Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 70 vizitatori