Jump to content

Quest text bug


Go to solution Solved by Syreldar,

Recommended Posts

hey guys,

 

FIX: Use send_letter not in the state before. when you want a letter in next state, send it in that state, not in the state before.

problem: 3c4b7e3a46.gif

 

quest: https://pastebin.com/HGcEdv6A

All other quests working fine. the letter you get after is also working.

Kind regards

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • Premium
  • Solution

Hi LordZiege,

 

the problem is that you're issuing a normal send_letter inside a quest window. This is not possible under normal circumstances since it sets your quest skin to NOWINDOW, and so the window fails to create and render.

 

Solutions:

1. Issue the send_letter after the quest dialog is over:

            say_title(gameforge[get_lang()].welcome_quest.letter)
            say(gameforge[get_lang()].welcome_quest.text)
            say_reward(gameforge[get_lang()].welcome_quest.text2)
            pc.setqf("kill_wilddog", 0)
            wait() -- Creates a second questtext instance which will be empty since no further "say" is used, and so it will trigger after you press "OK"
            send_letter(gameforge[get_lang()].welcome_quest.letter3)
            set_state(kill)

2. Use this function instead:

send_letter = function(title)
	makequestbutton(title);
  	--setskin(NOWINDOW); By commenting out this function the problem gets fixed.
	q.set_title(title);
	q.start();
end -- function

-- ..Or create a new one like this:
send_letter_new = function(title)
	makequestbutton(title);
	q.set_title(title);
	q.start();
end -- function

 

  • Love 2

 

"Nothing's free in this life.

Ignorant people have an obligation to make up for their ignorance by paying those who help them.

Either you got the brains or cash, if you lack both you're useless."

Syreldar

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.