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

Quest info event isn't working anymore


Yiv

Question

Dear community,

 

since I switched over from 34k to source (long time ago) I never tried my quests and today I did. There is an error in my bio quest which I don't really understand ...

 

Syserr says no info event found (Function in source I located: bool NPC::OnInfo(PC & pc, unsigned int quest_index)).

 

Quest (just beginning because I don't really want to post full quest :/):

quest bio_blood begin
	state start begin
		when login or levelup with pc.get_level() >= 30 and pc.getqf("bio_quest_line") == 0 begin
			set_state(information)
		end
	end
	state information begin
		when letter begin
			send_letter("Die Forschung des Biologen")
		end
		when button or info begin
			say_title("Die Forschung des Biologen")
			say("")
			say("Der Biologe sucht dich.")
			say("Er braucht Hilfe bei seiner aktuellen Forschung")
			say("und sucht einige Personen, die ihm helfen")
			say("können. Er hat auch eine Belohnung versprochen.")
			say("Vielleicht meldest du dich mal bei ihm.")
			say("")
			say_reward("Sprich mit dem Biologen.")
			local v = find_npc_by_vnum(20084)
			if v != 0 then target.vid("__TARGET__", v, "Biologe") end
		end
		when __TARGET__.target.click or 20084.chat."Die Forschung des Biologen" begin
			target.delete("__TARGET__")
.
.
.

I didn't find an error and compiling of quest works fine.

I also deleted my object folder and recompiled and reloaded the quests even restarted the whole server.

 

Who can help or has a suggestion what I can do?

 

Regards

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

Try like this:

                when letter begin
                        local v = find_npc_by_vnum(20084)
                        if v != 0 then
                                target.vid("__TARGET__", v, "Die Forschung des Biologen")
                        end
                        send_letter("Die Forschung des Biologen")
                end

				when button or info begin
					say_title("Die Forschung des Biologen")
					say("")
					say("Der Biologe sucht dich.")
					say("Er braucht Hilfe bei seiner aktuellen Forschung")
					say("und sucht einige Personen, die ihm helfen")
					say("können. Er hat auch eine Belohnung versprochen.")
					say("Vielleicht meldest du dich mal bei ihm.")
					say("")
					say_reward("Sprich mit dem Biologen.")
				end

I hope its work. (On my server it works)

  • Love 1
Link to comment
Share on other sites

  • 0

Of course I trust you but I know questing and I can see that there isn't a big difference.

 

And it's working ... That's unexplainable.

 

You can say me why this is working? There isn't a big difference, as I said!

 

Regards

Link to comment
Share on other sites

  • 0
  • Premium
  when letter begin
            send_letter("Die Forschung des Biologen")
  end
 
If you haven't sent a letter beforehand, "when letter" will never happen that's why.

 

 

Link to comment
Share on other sites

  • 0

 

  when letter begin
            send_letter("Die Forschung des Biologen")
  end
 
If you haven't sent a letter beforehand, "when letter" will never happen that's why.

 

 

Yes ... it's strange but funny :D

Link to comment
Share on other sites

  • 0
  • Wiki Manager

Sorry for dugging up this topic but...

What if stil gets same problem even with letter started?

error svside: OnInfo: QUEST no info event (quest )

 

Can it be from interfacemodule.py from client-root, when trying to open a window, on def OpenQuestWindow, it doesnt give the index?

Altough, maybe what i said makes no sense bcuz, other quest i have compiled in server, uses same start letter method and then button info, and works properly...

 

 

 

 

252709OrangeWarning.pngThis funny

Ok?

 

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


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.