Jump to content

Recommended Posts

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

  • Contributor

This is the hidden content, please
 / https://metin2.dev/topic/22340-translate-lua-15-languages/

levelup.quest + questlib.lua parts + translate.lua in your language.
It's 1-90.

Edited by TMP4
  • Metin2 Dev 21
  • Good 1
  • Love 6
Link to comment
https://metin2.dev/topic/28407-official-hunting-questions/#findComment-145844
Share on other sites

  • 3 years later...

I'll try to organize everything so you can tell me exactly what's going on:

The error:

error occurred on [RunState:987]
LUA_ERROR: [string "levelup"]:142: bad argument #2 to 'format' (number expected, got string)
LUA_ERROR: quest levelup.start click

Corresponding excerpt in levelup.quest
The lines around line 142 are these:

140                    local ll = lev - 20
141                   if lev < 26 then
142
143                        local n = table.getn(special.levelup_reward_item_21[ll])
144                        local t = special.levelup_reward_item_21[ll][number(1, n)]
145                        say_reward(gameforge.levelup._80_sayReward)
146                        if type(t) == 'table' then
147                            pc.give_item2(t[1], t[2])
148                            say_reward(string.format(gameforge.levelup._90_sayReward, item_name(t[1]) .. .. " . ".. t[2]))
149                        else
150                            pc.give_item2(t)
151                            say_reward(string.format(gameforge.levelup._100_sayReward, item_name(t)))
152                        end 

special.levelup_reward_item_21 =
{
    -- no couple ring
    { { 27002, 10 }, { 27005, 10 }, { 27114, 10 } }, -- lev 21
    { 15080, 15100, 15120, 15140 }, -- lev 22
    { 16080, 16100, 16120, 16140 }, -- lev 23
    { 17080, 17100, 17120, 17140 }, -- lev 24
    { { 27002, 10 }, { 27005, 10 }, { 27114, 10 } }, -- lev 25
    { { 27003, 20 }, { 27006, 20 }, { 27114, 10 } }, -- over lev 25

    -- with couple ring
    -- { { 27002, 10 }, { 27005, 10 }, { 27114, 10 }, { 70301, 1 } }, -- lev 21
    -- { 15080, 15100, 15120, 15140, 70301 }, -- lev 22
    -- { 16080, 16100, 16120, 16140, 70301 }, -- lev 23
    -- { 17080, 17100, 17120, 17140, 70301 }, -- lev 24
    -- { { 27002, 10 }, { 27005, 10 }, { 27114, 10 }, { 70301, 1 } }, -- lev 25
    -- { { 27003, 20 }, { 27006, 20 }, { 27114, 10 } }, -- over lev 25
}

translate:
gameforge.levelup._80_sayReward = "[LC;2370] "

gameforge.levelup._90_sayReward = "[LC;5942;%s;%d;%s;%d;%s;%d] "

gameforge.levelup._100_sayReward = "[LC;2338;%s] "



I think that's all I found about it, someone can help me?

Link to comment
https://metin2.dev/topic/28407-official-hunting-questions/#findComment-172592
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.