Premium EnKor 42 Posted August 3, 2022 Premium Share Posted August 3, 2022 (edited) Any way to write quest like this: (very very simple mode) say(" It's great that you're here - I need your help! I'm collecting information about all the creatures that live on our continent. It's a very complicated task, that I just can't handle by myself. If you help me, I will of course give you a reward. ") and NOT like this: say("It's great that you're here - I need your help.[ENTER]I'm collecting information about all the[ENTER]creatures that live on our continent. It's a very[ENTER]complicated task, that I just can't handle by[ENTER]myself. If you help me, I will of course give you[ENTER]a reward. ") and NOT like this: say("It's great that you're here - I need your help.") say("I'm collecting information about all the ") say("creatures that live on our continent. It's a very ") say("complicated task, that I just can't handle by ") say("myself. If you help me, I will of course give you ") say("a reward. ") Edited August 3, 2022 by EnKor if pc.get_sex() == true and npc.get_sex() == false then npc.purge() end Link to comment Share on other sites More sharing options...
Premium EnKor 42 Posted August 5, 2022 Author Premium Share Posted August 5, 2022 up! if pc.get_sex() == true and npc.get_sex() == false then npc.purge() end Link to comment Share on other sites More sharing options...
dotMatryx 10 Posted August 6, 2022 Share Posted August 6, 2022 Just when you done , replace the \n with [ENTER] ( FOR THE SPECIFIC STRINGS YOU WROTE) 1 Link to comment Share on other sites More sharing options...
Premium EnKor 42 Posted August 8, 2022 Author Premium Share Posted August 8, 2022 On 8/6/2022 at 10:58 AM, dotMatryx said: Just when you done , replace the \n with [ENTER] ( FOR THE SPECIFIC STRINGS YOU WROTE) thats not what i need. I wanna type the quest in a simple mode. Like this: say(" It's great that you're here - I need your help! I'm collecting information about all the creatures that live on our continent. It's a very complicated task, that I just can't handle by myself. If you help me, I will of course give you a reward. ") Have to be some way... up! if pc.get_sex() == true and npc.get_sex() == false then npc.purge() end Link to comment Share on other sites More sharing options...
Active Member ReFresh 2340 Posted August 8, 2022 Active Member Share Posted August 8, 2022 You can write the quest like you said, but you won't have enters after the sentences, so it will looks really ugly. I don't think someone will write some function, which will recognize, where the sentence ends for free. I'll be always helpful! Link to comment Share on other sites More sharing options...
Premium WeedHex 635 Posted August 9, 2022 Premium Share Posted August 9, 2022 Count how many letters there are in a line and add [ENTER] exceeded a fixed number. Maybe in a new function to be ordered. LazySay("") 1 Link to comment Share on other sites More sharing options...
Premium EnKor 42 Posted August 9, 2022 Author Premium Share Posted August 9, 2022 4 hours ago, WeedHex said: Count how many letters there are in a line and add [ENTER] exceeded a fixed number. Maybe in a new function to be ordered. LazySay("") you say this one? This is the hidden content, please Sign In or Sign Up nah! 7 1 1 if pc.get_sex() == true and npc.get_sex() == false then npc.purge() end Link to comment Share on other sites More sharing options...
Premium WeedHex 635 Posted August 9, 2022 Premium Share Posted August 9, 2022 1 hour ago, EnKor said: you say this one? This is the hidden content, please Sign In or Sign Up nah! Didn't know about its existence ahaha Link to comment Share on other sites More sharing options...
Forum Moderator VegaS™ 10275 Posted August 10, 2022 Forum Moderator Share Posted August 10, 2022 (edited) To complete this task in the quickest and most effective manner possible, we can develop a function that can accept an infinite number of parameters, which will effectively be transformed into a table. Concatenate all of the elements (each element must be able to be converted into a string), then add [ENTER] as a separator between concatened elements. So, based on that, I spent a few seconds playing around with Lua (I hate it), and here's what I came up with, without using loops and checks: https://metin2.download/picture/xJ9JOg5mrhJNY4Nj7GAMqsKXRk0liefU/.gif questlib.lua This is the hidden content, please Sign In or Sign Up quest_functions multi_say How-To-Use: multi_say( string.format('You have to pay %d yang.', 5000) ) -- You have to pay 5000 yang. multi_say( "The number list:", 300, 25.31, 400 ) -- The number list:[ENTER]1[ENTER]2[ENTER]3[ENTER]4[ENTER]5 multi_say( 'Facebook', 'Amazon', 'Apple' ) -- Facebook[ENTER]Amazon[ENTER]Apple If your lua version is incompatible with it, you must use this one: Spoiler This is the hidden content, please Sign In or Sign Up Edited September 4, 2022 by Metin2 Dev Core X - External 2 Internal 7 1 Check my GitHub Profile Click to find all the threads started by me [TOOL] Text file loader + JSON 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