Mandi 2 Posted January 11, 2016 Share Posted January 11, 2016 (edited) How do I set the writing to start somewhere below? Without [ENTER] or say("") in quest. srry for my bad english. https://metin2.download/picture/k8E4SEQyn4V9eDBcL22b20E3v10d3Xml/.png Edited September 1, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Active Member Exygo 1091 Posted January 12, 2016 Active Member Share Posted January 12, 2016 (edited) "How do I sug pula fara sa ating cu gura?" Use say_size Edited August 20, 2022 by Metin2 Dev Core X - External 2 Internal 1 https://www.youtube.com/channel/UCQ8mAeda9TWq6SsTzB53emw/videos Link to comment Share on other sites More sharing options...
Mandi 2 Posted January 12, 2016 Author Share Posted January 12, 2016 You're so stupid and arrogant... I need a direct of client for all quests. "say_size" is for the width and height the size of the quest dialog. Next time, just shut the f*ck up, "genius". Another answer? Link to comment Share on other sites More sharing options...
VegaS 1086 Posted January 12, 2016 Share Posted January 12, 2016 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. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now