Jump to content

Recommended Posts

 

Add in questlib.lua:

function say_test_pro(text_vegas, value) 
    local maxim, titan, work = value or 50, 0, '(.-)(%[.-%])()' 
    local result,nb,lastPos,back_m2 = {}, 0, 0, '' 
    local function m2dev(pro)
        for pass1 in string.gfind(pro,'((%S+)%s*)') do
            if titan + string.len(pass1) > maxim then
                back_m2 = back_m2..'[ENTER]'
                titan = 0  
            end

            back_m2 = back_m2..pass1  
            titan = titan + string.len(pass1)
        end 
    end

    for ymir, vegas_2,vegas_3 in string.gfind(text_vegas, work) do  
        if ymir ~= '' then  
            m2dev(ymir) 
        end

        back_m2 = back_m2..vegas_2  
        lastPos = vegas_3  
    end
    m2dev(string.sub(text_vegas, lastPos)) 
    say(back_m2) 
end

 

Add in questfunction:

say_test_pro

 

I do not own all the credits for this function

Example:

say_test_pro("Hello metin2dev!",8)

say_test_pro("This message is only test! .....................................................",15)

 

You can develop more if you want, that you start with a row below the test without having to put you directly enter other shit than the number of characters you want to start.

What you want is a kind of:

(x,y)

raw_script("[function x;"..x.."|y;"..y.."]")

 

But it is not easy to do, but I'll try when I have time.

  • Love 1
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.