Jump to content
  • 0
Sign in to follow this  
yagokurt

[QUEST] Kill didnt work on enemy empire

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]

Share this post


Link to post

7 answers to this question

Recommended Posts

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

Share this post


Link to post
  • 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. 

Share this post


Link to post
  • 0

Delete the "*10000" that can't be a mapindex

Gesendet von meinem GT-I9505 mit Tapatalk

Share this post


Link to post
  • 0

Delete the "*10000" that can't be a mapindex

Gesendet von meinem GT-I9505 mit Tapatalk

 

Then i should use like this?

 

1100000 and 1120000

Share this post


Link to post
  • 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

Share this post


Link to post
  • 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

Share this post


Link to post
  • 0

Then use

... pc.getcurrentmapindex() == 110 or pc.getcurrentmapindex() == 111 ...

Share this post


Link to post

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
Sign in to follow this  
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • 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.