Jump to content
External pictures are being replaced... ×
  • Create New...

Function - No more [ENTER ] in your quests


Recommended Posts

  • Premium

M2 Download Center

This is the hidden content, please
( Internal )

Are you tired of write [ENTER] in all your text or use 20 says for write a simple text?

Me, yes.

So I coded a funcion wich solve this problem.

The difference between this function and the normal "say" is that this search for the last word of the line, and dont cut this word like the normal "say" do.

Add to your questlib.lua

function say2(msg)
	msg_size = string.len(msg)
	if msg_size > 59 then
		local i = 59
		last_word = nil
		while last_word == nil and i > 0 do
			if string.sub(msg,i,i) == " " or string.sub(msg,i,i) == "." or string.sub(msg,i,i) == "," then
				last_word = i
			i = i-1
		if i == 0 then
			last_word = 59

Add to your quest_functions:



And now use say2 instead of say in your quests!

  • Metin2 Dev 1
  • Love 9
Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

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
  • Recently Browsing   0 members

    • No registered users viewing this page.

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.