【ℛ-𝓝】ℛ𝔂𝓼𝒆 Posted May 15, 2022 Report Share Posted May 15, 2022 Buenas, quería solicitar si alguien me podría modificar una quest que cuando se conecte un nuevo personaje en el servidor se le ejecute el comando "do_item_full_set" sin necesidad de tener GM. quest give_basic_weapon begin state start begin function basic_item(job,index) item_list={} item_list[0] = {50187} item_list[1] = {50212} item_list[2] = {50187} item_list[3] = {50213} return item_list[job][index] end when login begin if pc.getqf("basic_weapon") == 0 then pc.setqf("basic_weapon", 1) if pc.countitem(item) == 0 and pc.weapon != item then pc.give_item2(give_basic_weapon.basic_item(pc.job,1) ) end end end end end Saludos y gracias de antemano! Quote Link to comment Share on other sites More sharing options...
OceanusPT Posted August 3, 2022 Report Share Posted August 3, 2022 #### Src/game/cmd.cpp //Search: { "full_set", do_full_set, 0, POS_DEAD, GM_LOW_WIZARD}, And change it to: { "full_set", do_full_set, 0, POS_DEAD, GM_PLAYER}, quest: quest give_basic_weapon begin state start begin when login begin command("/full_set") set_state(__COMPLETE__) end end state __COMPLETE__ begin end end ***But this is so bad. How will you avoid\block players from spam and sell items with the command /full_set? Everytime they tipe that, they get all items. Maybe this is NOT what you need 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.