Jump to content

Quest wait() and symbols inside of quest


Recommended Posts

Soo.. I just dived into quest writing. It's not a hard thing i got a few languages already behind me but... Here i don't know what to do it's propably some LUA thing of metin.

So first problem: 

Spoiler

 

When i created a quest i had to use symbols like ě š č ř ž ý á í é

instead of those symbols the quest is showing some non sense. Any idea how to fix that? how to make those symbols working? I know it's possible right cuz official metin is using them in their quests. 

##SOLVED##

Propably not the best solution but i changed (dumb me) coding to UTF-8 in notepad and quests i fuess require ANSCI. So i changed to ansci but then i had errors in quest. Soo i looked for the solution and found out that you can put spaces between " and special symbol like ř. So final say collum would look like:   "těž ". It's working but i don't think that it's a best solution for this... if you have any suggestions feel free to help :d

 

 

second problem:

Spoiler

 

When i added wait() to the quest for next page of text it's not working. How? Let me explain: The first page of text is working as it should but when you click the "next" button i get just a blank screen. I can't see no ui, only character and zone. How to fix that? Any ideas? 

##SOLVED##

Found out that you can't use wait() in when login event. Soo i changed to another state and put text there instead :) 

 

 

Thx for answers and suggestions :)

Link to comment
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

quest test begin
	state start begin
		when login begin
			if pc.getqf("test_weapon") == 0 then
				pc.setqf("test_weapon", 1)
			
				if pc.job == 0 then
					pc.give_item2(10)
					
				elseif pc.job == 1 then
					pc.give_item2(1000)
				
				elseif pc.job == 2 then
					pc.give_item2(10)
					
				elseif pc.job == 3 then
					pc.give_item2(7000)					
				end
				
				say_title("Probuzení ")
				say_color("black","text")
				say_color("black","text")
				say_color("black","text")
				wait()
				say_title("Mimochodem")
				say_color("black","text"..pc.get_name.."!")
				say_color("black","text")
				say_color("black","text")
				say_color("black","text")
				say_color("black","text")
				say_color("black","text")
				say_color("black","text")
				say_color("black","text")
				say("")
				say_color("black","text")
				say_color("black","text")
				say("")
				say_color("black","text")
			end
		end
	end
end

it's an quest that is triggered on first player spawn. and the problem is where the wait() is... dunno am i doing something wrong?

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.