Jump to content

Recommended Posts

Haaaay

Is it possible to get a Quest State through "pc.getqf" in a table?

Unfortunately I can't get it and am desperate...

with pc.getf it returns the correct value, but the game does not come up error "attempt to concatenate a nil value".

 

Spoiler

 

translate_text = {

["de"] = {

confirmLang = "Du hast Deutsch ausgewählt.",

questname = {

title = "Deutscher Titel",

text = ""..pc.getqf("auftrag","current_mission")..""

}

},

}

 

 

Link to comment
https://metin2.dev/topic/23037-table-getqf-value-output/
Share on other sites

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

  • Honorable Member
translate_text = {
    ["de"] = {
        ["confirmLang"] = "You've selected german.",
        ["questname"] = {
            ["title"] = "title here",
            ["text"] = string.format("the qf is %d", pc.getf("auftrag", "current_mission"))
        }
    },
}

say(translate_text["de"]["questname"]["text"])

Works just fine.

Edited by Syreldar

 

"Nothing's free in this life.

Ignorant people have an obligation to make up for their ignorance by paying those who help them.

Either you got the brains or cash, if you lack both you're useless."

Syreldar

Link to comment
https://metin2.dev/topic/23037-table-getqf-value-output/#findComment-124645
Share on other sites

3 hours ago, Syreldar said:

translate_text = {
    ["de"] = {
        ["confirmLang"] = "You've selected german.",
        ["questname"] = {
            ["title"] = "title here",
            ["text"] = string.format("the qf is %d", pc.getf("auftrag", "current_mission"))
        }
    },
}

say(translate_text["de"]["questname"]["text"])

Works just fine.

bad argument #2 to `format' (number expected, got no value)

Link to comment
https://metin2.dev/topic/23037-table-getqf-value-output/#findComment-124647
Share on other sites

  • Honorable Member
10 hours ago, beszurlp said:

bad argument #2 to `format' (number expected, got no value)

It means the qf is not set.

 

"Nothing's free in this life.

Ignorant people have an obligation to make up for their ignorance by paying those who help them.

Either you got the brains or cash, if you lack both you're useless."

Syreldar

Link to comment
https://metin2.dev/topic/23037-table-getqf-value-output/#findComment-124661
Share on other sites

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • 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.