Jump to content

Recommended Posts

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
https://metin2.dev/topic/360-quest-kill-didnt-work-on-enemy-empire/
Share on other sites

  • Replies 7
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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 ^ ^

 

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. 

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

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

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.