Zutcer Posted January 26, 2017 Group: Members Topic Count: 31 Topics Per Day: 0.01 Content Count: 114 Reputation: 5 Joined: 07/19/15 Last Seen: January 10, 2023 Share Posted January 26, 2017 Hola, buenas tardes; quería solicitar algo de ayuda para agregar npcs custom (sprites), resulta que no quiero remplazar los ids antiguos si no, agregarlos en nuevas ids la cosa es que si los remplazo por alguno antiguo si cargan y no hay ningún problema, si los cargo como mobs, agregando la respectiva información en la mobdb, también lo hacen pero el problema con este es que sale una espada(como si fuese un objetivo) en vez del globo de texto al poner el puntero encima (como un npc normal). PACKETVER 20120410 he hecho esto pero aun asi, me aparecen solo sprites de porings :/ Quote Link to comment Share on other sites More sharing options...
vomaito Posted January 26, 2017 Group: Members Topic Count: 11 Topics Per Day: 0.00 Content Count: 45 Reputation: 3 Joined: 06/29/15 Last Seen: October 18, 2022 Share Posted January 26, 2017 Los NPC que usan IDs de Mobs siempre se verán con la espada de ataque. Checa aqui: http://supportmii.com/ro1/JudasBible.pdf No sé si los NPC que quieres añadir deben estar cargados en el db/cons.txt según yo si era necesario, para que el cliente mande la petición Quote Link to comment Share on other sites More sharing options...
Zutcer Posted January 27, 2017 Group: Members Topic Count: 31 Topics Per Day: 0.01 Content Count: 114 Reputation: 5 Joined: 07/19/15 Last Seen: January 10, 2023 Author Share Posted January 27, 2017 muchas gracias por responder no sabia eso del db/cons.txt, pero el "problema" aun sigue,seguí los pasos, pero de todos modos solo aparecen porings. intente probar cambiando los max npc class a 4000 y 5000 respectivamente, cambiando las id en el const,txt y en los luas pero de igual manera aparecen porings. y tambien encontre en el db/cons.txt // Free ID's 126 - 138 HIDDEN_WARP_NPC 139 // Free ID's 140 - 400 pero usando esas free id, me decia que el npc no existe modifique esta linea en src/map/npc.h: #define npcdb_checkid(id) ( ( (id) >= 46 && (id) <= 125) || (id) == HIDDEN_WARP_CLASS || ( (id) > 400 && (id) < MAX_NPC_CLASS ) || (id) == INVISIBLE_CLASS || ( id > MAX_NPC_CLASS2_START && id < MAX_NPC_CLASS2_END ) ) por esta: #define npcdb_checkid(id) ( ( (id) >= 46 && (id) <= 126) || (id) == HIDDEN_WARP_CLASS || ( (id) > 400 && (id) < MAX_NPC_CLASS ) || (id) == INVISIBLE_CLASS || ( id > MAX_NPC_CLASS2_START && id < MAX_NPC_CLASS2_END ) ) ahora puedo usar un slot de esas free id, pero nuevamente el aparece el poring. creo que deber simplemente optar por el camino facil y remplazar. Quote Link to comment Share on other sites More sharing options...
vomaito Posted January 27, 2017 Group: Members Topic Count: 11 Topics Per Day: 0.00 Content Count: 45 Reputation: 3 Joined: 06/29/15 Last Seen: October 18, 2022 Share Posted January 27, 2017 Estás usando el ID 10504 en el LUA. Debes usar el mismo ID en el Cons.txt Quote Link to comment Share on other sites More sharing options...
Zutcer Posted January 27, 2017 Group: Members Topic Count: 31 Topics Per Day: 0.01 Content Count: 114 Reputation: 5 Joined: 07/19/15 Last Seen: January 10, 2023 Author Share Posted January 27, 2017 si exacto amigo me asegure de que fueran iguales, luego leí que en algunos emuladores no toman números muy altos así que decidí bajarlas a 4504(modificando el min y max en npc.h) pero sin resultados nuevamente, acabo de terminar otro intento fallido, pero me dio a entender que no esta tomando mis cambios en el const.txt a pesar de que apague, compile y encienda. resulta que remplace: db/const.txt 4_M_TELEPORTER 125 por: db/const.txt 4_F_SEAL 125 luego de compilar al usar el @disguise me lanza error si cambio los luas y si no me sigue apareciendo el npc de id 125 siendo que el ya no esta en el const.txt y deberia aparecer un poring ya que el cliente como tu dices no podría dar la petición. o quizas podria ser mi exe? que tiene problemas en el difft?.... Quote Link to comment Share on other sites More sharing options...
Zutcer Posted February 1, 2017 Group: Members Topic Count: 31 Topics Per Day: 0.01 Content Count: 114 Reputation: 5 Joined: 07/19/15 Last Seen: January 10, 2023 Author Share Posted February 1, 2017 Ya lo solucione cierren pls Quote Link to comment Share on other sites More sharing options...
DarkGuerra Posted February 2, 2017 Group: Members Topic Count: 6 Topics Per Day: 0.00 Content Count: 20 Reputation: 0 Joined: 03/21/16 Last Seen: January 3, 2021 Share Posted February 2, 2017 puedes por favor si no es problema decir cual es la solución para agregar un nuevo npc? Quote Link to comment Share on other sites More sharing options...
Zutcer Posted February 6, 2017 Group: Members Topic Count: 31 Topics Per Day: 0.01 Content Count: 114 Reputation: 5 Joined: 07/19/15 Last Seen: January 10, 2023 Author Share Posted February 6, 2017 quite los archivos temporales del emulador y me cargo el const 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.