Jump to content

Corregir quest


Alika

Mensajes recomendados

       quest nation_war begin		    state start begin		  		   	 ---***NPC***---		  				    when 11001.chat."Guerra de reinos" or 11003.chat."Guerra de reinos" or 11005.chat."Guerra de reinos" begin				  							 local akroma_war = {						  									 {19900, 30000},								    {20000, 30000},								    {30000, 30000}								    }				  							 if game.get_event_flag("nation_war")== 0 then						    say("La Nation War esta cerrada, en este momento")						  							 elseif game.get_event_flag("nation_war")== 1 then						    say("La Nation War esta abierta, quieres acceder viajero?")								    local nation_war = select("Si","No")								  									 if nation_war == 1 then										    if pc.level < 65 then										    say("Eres nivel "..pc.level()..", necesitas ser 65.")										    return										    end												    pc.warp(akroma_war[pc.get_empire()][1],akroma_war[pc.get_empire()][2])								    end						    end				    end				  	 ---***GM***---    					 when 70021.use with pc.is_gm() begin				  							 if game.get_event_flag("nation_war")== 0 then						    say("La nation war esta cerrada, deseas abrirla "..pc.get_name().." ")						  									 local open_nation = select("Si","No")								  									 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("La nation war esta abierta, deseas cerrarla "..pc.get_name().." ")						  									 local close_nation = select("Si","No")							    								    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("Marcador: 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("Marcador: 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("Marcador: 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("Marcador: 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("Marcador: 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 ha ganado la nation war")								   warp_to_village()							    								    elseif imperios[2] > imperios[1] and imperios[3] then								   notice_all("Shinso ha ganado la nation war")								   warp_to_village()							    								    elseif imperios[3] > imperios[1] and imperios[2] then								   notice_all("Chunjo ha ganado la nation war")								   warp_to_village()								   end						   end					    	 ---***MUERTES PERSONAS***---    				    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("Guerra no activada")						   warp_to_village()						   end				   end		   end    end
Enlace para comentar
Compartir en otros sitios

  • 4 weeks later...
  • Dilong locked this tema
Guest
Este tema está cerrado a otras respuestas.
  • Recientemente navegando por este tema   0 miembros

    • No hay usuarios registrados visitando esta página.
×
×
  • Crear nuevo...