Jump to content

Recommended Posts

  • Honorable Member
do
	local isFast = true
	local __say = say
	function _G.say(str, ...)
		if table.getn(arg) > 0 then
			if isFast then
				raw_script("[DELAY value;1]"..string.format(str, unpack(arg)).."[/DELAY][ENTER]")
			else
				__say(string.format(str, unpack(arg)))
			end
		else
			if isFast then
				raw_script("[DELAY value;1]"..str.."[/DELAY][ENTER]")
			else
				__say(str)
			end
		end
	end

	-- string.tolower function fix for hungarian keyboard
	os.setlocale("fr_FR.ISO8859-1","ctype")
end

 

Link to comment
https://metin2.dev/topic/13693-quest-instant-text/#findComment-77961
Share on other sites

  • Active Member
36 minutes ago, ZenkoKXO. said:

All your code is just a delay penger, same as the already created function (setdelay()) so don't be disrespectful.

Are you sure?

I am using DELAY too in some quests and it's instant...

Example: say("[DELAY value; 1]some text here[/DELAY]")

Link to comment
https://metin2.dev/topic/13693-quest-instant-text/#findComment-77997
Share on other sites

Sure exygo but instead of using

say("[DELAY value; 1]some text here[/DELAY]")

at each line, you just have to put setdelay(0) at first.

Example :

quest x begin
	state start begin
		when X.chat."X" begin
			setdelay(0)
			say_title("text")
			say("text")
			say("text")
			say("text")
			say("text")
		end
	end
end
Link to comment
https://metin2.dev/topic/13693-quest-instant-text/#findComment-77999
Share on other sites

  • 7 years later...

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • 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.