mt2de Posted December 29, 2023 Share Posted December 29, 2023 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.