Jump to content
Forgot your email address? ×
×
×
  • Create New...
  • 0

[QUEST] Kill didnt work on enemy empire


yagokurt

Question

Hi guys, i was trying make something for the guild war and i found i problem, idk why but only count the kills if the person is from the same empire. HEre i leave the code for u guys. I alrdy try without the "game flag" and without the "if" and still the same.

 

 

Exemple: Jinno VS Shinsoo didnt work

Shinsoo VS Shinsoo work.

 

[codesyntax] when kill with game.get_event_flag("eventoingguerra") == 1 and pc.get_map_index() >= 110*10000 and pc.get_map_index() <= 112*10000 begin
if pc.empire != npc.empire or pc.empire == npc.empire then
pc.give_item2 (60158, 1) -- Insignea de Guerra
end
end[/codesyntax]

Link to comment
  • Answers 7
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

7 answers to this question

Recommended Posts

  • 0
  • Premium

Why are you doing such a dumb query?

You can do:

quest xxx begin
	state start begin
		when kill with game.get_event_flag("eventoingguerra") == 1 and pc.get_map_index() >= 110*10000 and pc.get_map_index() <= 112*10000 begin
			pc.give_item2 (60158, 1) -- Insignea de Guerra
		end
	end
end
I find that this query is totally useless, since it checks whether the kingdom of EQUAL or NOT EQUAL is. 
Since you can also omit the query ^ ^
Link to comment
  • 0

 

Why are you doing such a dumb query?

You can do:

quest xxx begin
	state start begin
		when kill with game.get_event_flag("eventoingguerra") == 1 and pc.get_map_index() >= 110*10000 and pc.get_map_index() <= 112*10000 begin
			pc.give_item2 (60158, 1) -- Insignea de Guerra
		end
	end
end
I find that this query is totally useless, since it checks whether the kingdom of EQUAL or NOT EQUAL is. 
Since you can also omit the query ^ ^

 

 

 

 

Thx,Sry this if was just for a test,  but like i said before without this if happen the same. 

Link to comment
  • 0

My mapindexes (a1, b1, c1) are 3, 23, 43 (I think) just take a look to your index file in your maps folder

Gesendet von meinem GT-I9505 mit Tapatalk

 

 

But i want use on the guildwar arena, they have mapindex 110 and 111

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Announcements

  • -15% Discount in Metin2 Dev Store (01/10/2021 => 31/12/2021) => Code => 15_PCT_OCT_TO_DEC_2021


Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.