Jump to content
  • 0

quest problem


Creo

Question

  • Answers 4
  • Created
  • Last Reply

Top Posters For This Question

4 answers to this question

Recommended Posts

  • 0

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

  • 0

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

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

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


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