Jump to content
Metin2 Network
Create New...
  • Download unlimited resources when you are a Premium Member, Buy now!

Give_Basic_Weapon - Quest


mt2de

Recommended Posts

quest give_basic_weapon begin
    state start begin
        when login or levelup with pc.get_level() == 1 begin
            if pc.getqf("basic_weapon") == 0 then
                pc.setqf("basic_weapon", 1)
                local basic_items = {72723, 72727, 39006, 27105, 27102, 13009, 14009, 15009, 16009, 17009, 50053}
                local job_items = {
                    [0] = {11209, 12209, 3009, 19}, -- Guerrero
                    [1] = {11409, 12349, 19, 1009, 2009, 8000}, -- Ninja
                    [2] = {11609, 12489, 19}, -- Sura
                    [3] = {11809, 12629, 7009, 5009} -- Shaman
                }
                local item_quantities = {
                    [8000] = 2000, -- Flechas
                    [71084] = 10, -- Otro objeto con cantidad específica
                    [71085] = 20,
                    [27105] = 15,
                    [27102] = 15,
                }
                for _, item in ipairs(basic_items) do
                    local quantity = item_quantities[item] or 1
                    pc.give_item2(item, quantity)
                end
                pc.change_money(0)
                
                for _, item in ipairs(job_items[pc.job]) do
                    local quantity = item_quantities[item] or 1
                    pc.give_item2(item, quantity)
                end
                horse.set_level(21)
                pc.set_skill_level(131, 10)
                horse.summon()
                horse.ride()
                set_state(__END__)
            end
        end
    end

    state __END__ begin
    end
end
 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

Terms of Service

Write what you are looking for and press enter or click the search icon to begin your search