Jump to content

Recommended Posts

  • Premium

 

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 by EnKor
if pc.get_sex() == true and npc.get_sex() == false then
	npc.purge()
end

 

Link to comment
Share on other sites

  • Premium
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

  • Premium
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

nah!

  • Metin2 Dev 7
  • Think 1
  • Love 1
if pc.get_sex() == true and npc.get_sex() == false then
	npc.purge()
end

 

Link to comment
Share on other sites

  • Forum Moderator

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

  • 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

 

Edited by Metin2 Dev
Core X - External 2 Internal
  • Metin2 Dev 7
  • 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



  • Similar Content

  • Activity

    1. 13

      Metin2 Closed Beta Content (2003-2004)

    2. 25

      [SRC] Metin2 on LINUX - The Old Metin2 Project

    3. 2

      United/Club/Midgard serverfiles?

    4. 13

      Metin2 Closed Beta Content (2003-2004)

    5. 13

      Metin2 Closed Beta Content (2003-2004)

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • 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.