Jump to content

Recommended Posts

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

That's because 'when login' (or) 'when kill' triggers are counted twice instead of once, problem is coming from sources. There's a thread here to solve it, when I have some time (if you didn't find it) i'll find it for you.

Before that, you can try:

quest costume begin
	state start begin
		when login begin
			timer("give_costume", 3)
		end
		when give_costume.timer begin
			if pc.get_sex() == 0 and pc.get_empire() == 2 then
				pc.give_item2(41023,1)
			else
				pc.give_item2(41024,1)
			end
			if pc.get_sex() == 1 and pc.get_empire() == 1 then
				pc.give_item2(41001,1)
			else
				pc.give_item2(41002,1)
			end
			set_state(shautia)
		end
	end
	state shautia begin
	end
end

 

Link to comment
Share on other sites

Do you mean the player gets two times the same item or two differents?

In the case 'he gets two differents' : you should change your quest to this one:

quest costume begin
	state start begin
		when login begin
			if pc.get_sex() == 0 then
				if pc.get_empire() == 2 then
					pc.give_item2(41023,1)
				else
					pc.give_item2(41024,1)
				end
			elseif pc.get_sex() == 1 then
				if pc.get_empire() == 1 then
					pc.give_item2(41001,1)
				else
					pc.give_item2(41002,1)
				end
			end
			set_state(shautia)
		end
	end
	state shautia begin
	end
end

 

In the case 'he gets two times the same' : you have to edit your sources, precisely the 'when login' trigger. Are you using sources?

Link to comment
Share on other sites

  • 2 months later...
On 4.05.2016 at 9:10 PM, ZenkoKXO. said:

Do you mean the player gets two times the same item or two differents?

In the case 'he gets two differents' : you should change your quest to this one:


quest costume begin
	state start begin
		when login begin
			if pc.get_sex() == 0 then
				if pc.get_empire() == 2 then
					pc.give_item2(41023,1)
				else
					pc.give_item2(41024,1)
				end
			elseif pc.get_sex() == 1 then
				if pc.get_empire() == 1 then
					pc.give_item2(41001,1)
				else
					pc.give_item2(41002,1)
				end
			end
			set_state(shautia)
		end
	end
	state shautia begin
	end
end

 

In the case 'he gets two times the same' : you have to edit your sources, precisely the 'when login' trigger. Are you using sources?

yep

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



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