Jump to content
×
×
  • Create New...
  • 0

quest Bug


Aliremawi

Question

Hello,

I'm currently coding a quest but I'm facing a problem.

I would want to do an action the first time the player click the NPC, and then I want the dialog to dissapear.

It's working the first time, but if I click on the NPC several time I can see the dialog again.

I added a check but it is not enough...

Thanks in advance.

The Bug : 148630152061051.gif[/url]

The Quest :

		
		quest set_begin begin
	    state start begin
	        when 20023.chat."killer_BE" with pc.getqf("fake") == 0 begin
	            if pc.getqf("fake") != 0 or pc.getqf("fake") == 1 then
	                say("Oops, there's a problem out there")
	                pc.setqf("fake", 9)
	            else
	                pc.setqf("fake", 5)
	                say("hello there")
	            end
	        end
	    end
	end		
		

Link to comment

4 answers to this question

Recommended Posts

  • 0

Hi, this is sufficient to fix the problem: 

Hidden Content

    Give reaction to this post to see the hidden content.

After the first time you click it, the condition will not be met anymore, so the dialog will never appear again, until you reset the "fake" qf to 0.

I suggest you to clear the files in the object folder before doing it.

  • Love 1

👑 Premium International Lua Developer 👑

 My service topic: https://bit.ly/2UPly54

 

Ignorant people have the obligation to compensate their ignorance by paying whoever helps them.

Syreldar

Link to comment
  • 0
29 minutes ago, Syreldar said:

Hi, this is sufficient to fix the problem: 

Hidden Content

    Give reaction to this post to see the hidden content.

After the first time you click it, the condition will not be met anymore, so the dialog will never appear again, until you reset the "fake" qf to 0.

I suggest you to clear the files in the object folder before doing it.

thanks man its work but i dont know why 

your quest isnt different with my quest

I expect the problem is the object folder 

thanks for all

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


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.