【ℛ-𝓝】ℛ𝔂𝓼𝒆 Publicado 15 de Mayo del 2022 Reportar Compartir Publicado 15 de Mayo del 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! Citar Enlace para comentar Compartir en otros sitios Mas opciones de compartir...
OceanusPT Publicado 3 de Agosto del 2022 Reportar Compartir Publicado 3 de Agosto del 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 Citar Enlace para comentar Compartir en otros sitios Mas opciones de compartir...
Mensajes recomendados
Unirse a la conversación
Puedes publicar ahora y registrarte más tarde. Si tienes una cuenta, regístrate para publicar con su cuenta.