Jump to content
  • 0

Quest problem


geron552

Question

Hi i need help: /
I entered a quest with "wait ()":

quest welcomemsg begin
	state start begin
		when login begin
			if pc.getqf("basic_weapon") == 0 then
				pc.setqf("basic_weapon", 1)

				if pc.get_level() == 1 then
					say_title("Welcome to the SERVERNAME ")
          say("")
          say("Blah blah blah... ")
          say("Blah blah blah... ")
          say("Blah  blah... ")
          wait()
          say("Have a nice game :) ")
          say("")
				end
			end
		end
	end
end

the quest is compiled, but the "Next" button does not work


syserr game

SYSERR: Jan  1 22:01:01 :: operator(): QUEST NOT END RUNNING on Login/Logout - welcomemsg
SYSERR: Jan  1 22:01:06 :: Resume: wrong QUEST_WAIT request! : 59

syslog game

SYSERR: Jan  1 22:01:01 :: operator(): QUEST NOT END RUNNING on Login/Logout - welcomemsg
Jan  1 22:01:06 :: QUEST ScriptAnswer pid 59 answer 254
SYSERR: Jan  1 22:01:06 :: Resume: wrong QUEST_WAIT request! : 59

 

Can you help me please?

Link to post

2 answers to this question

Recommended Posts

  • 0
  • VIP
Posted (edited)

Uhmm, i think the sysser you get is pretty much self explanatory. QUEST NOT END RUNNING on Login/Logout Resume: wrong QUEST_WAIT request!
I guess it's intended this way, i mean both login and logout events are not created to have a input at this point, specially the logout.

My advice is to either make it as a timer (tho i won't ever do that myself, just letting you know about an option if you are really into doing it) or write the message with less words.

 

Anyway, you can also remove the interogation, but that can lead into other problems, why else it would be there :)

Edited by Braxy

As long as I'll be a threat for you , i will always be your target :3

Link to post
  • 0
  • Developer
Posted (edited)

You can't do such a thing on login trigger, either make a timer or use "letter"

 

quest welcomemsg begin
	state start begin
		when login with pc.getqf("basic_weapon") == 0 begin
			timer("welcome", 2);
		end
			
		when welcome.timer begin
			pc.setqf("basic_weapon", 1)
			say_title("Welcome to the SERVERNAME ")
			say("")
			say("Blah blah blah... ")
			say("Blah blah blah... ")
			say("Blah  blah...[ENTER]")
			wait()
			say("Have a nice game :)[ENTER]")
		end
	end
end

quest welcomemsg begin
	state start begin
		when letter with pc.getqf("basic_weapon") == 0 begin
			pc.setqf("basic_weapon", 1)
			say_title("Welcome to the SERVERNAME ")
			say("")
			say("Blah blah blah... ")
			say("Blah blah blah... ")
			say("Blah  blah...[ENTER]")
			wait()
			say("Have a nice game :)[ENTER]")
		end
	end
end

 

Edited by Syreldar

👑 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 post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



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