Dori Posted February 16, 2016 Posted February 16, 2016 Hello rathena, I want to increase the range of the displayed message from 'npctalk'. Currently I can't see the message within 10-11 cell range. How do I increase this? Thanks for any help. Quote
0 Azura Skyy Posted February 17, 2016 Posted February 17, 2016 Could just use announce or force the player to sit through the NPC's dialogue? I'm thinking dispbottom might work as well but don't know if you can sleep through that and freely move your character...Regards,~Azura Skyy Quote
0 Enthr Posted February 17, 2016 Posted February 17, 2016 npctalk use the same system like when a normal player talks, if you modify the SRC to increase the value, the displayed message for players will increase too. Anyway if you still want to do this, go to src/map/clif.c and search the following: case AREA_CHAT_WOC: map_foreachinarea(clif_send_sub, bl->m, bl->x-(AREA_SIZE-5), bl->y-(AREA_SIZE-5), bl->x+(AREA_SIZE-5), bl->y+(AREA_SIZE-5), BL_PC, buf, len, bl, AREA_WOC); break; As you can see, you can see the value 5, thats the value that what is the range in any direction, so if you want to change the range, you only have to change that value. Dont forget to back up your original files, and to recompile. You can test and play with the values to the choice that you like more. PD: Anyway, you can create another case and another map_foreach... but the modifications are a little more large in the source... (Sorry if some words are incorrect or I made no sence in some parts) 1 Quote
0 Emistry Posted February 17, 2016 Posted February 17, 2016 affect by this setting.conf/battle/client.conf#L92-L93 Quote
0 Dori Posted February 17, 2016 Author Posted February 17, 2016 Could just use announce or force the player to sit through the NPC's dialogue? I'm thinking dispbottom might work as well but don't know if you can sleep through that and freely move your character... Regards, ~Azura Skyy Thank you for the reply, but I need it to be npctalk. npctalk use the same system like when a normal player talks, if you modify the SRC to increase the value, the displayed message for players will increase too. Anyway if you still want to do this, go to src/map/clif.c and search the following: case AREA_CHAT_WOC: map_foreachinarea(clif_send_sub, bl->m, bl->x-(AREA_SIZE-5), bl->y-(AREA_SIZE-5), bl->x+(AREA_SIZE-5), bl->y+(AREA_SIZE-5), BL_PC, buf, len, bl, AREA_WOC); break; As you can see, you can see the value 5, thats the value that what is the range in any direction, so if you want to change the range, you only have to change that value. Dont forget to back up your original files, and to recompile. You can test and play with the values to the choice that you like more. PD: Anyway, you can create another case and another map_foreach... but the modifications are a little more large in the source... (Sorry if some words are incorrect or I made no sence in some parts) Thank you very much, I will try this out affect by this setting. conf/battle/client.conf#L92-L93 area_size: 14: If the 14 means the amount of cells, it doesn't make sense why I couldn't see the chat being displayed from 10 cells far. Quote
0 Emistry Posted February 17, 2016 Posted February 17, 2016 because 10 cells isnt far enough if compare with 14 cells... O_O for your information 10 is lesser than 14.. Quote
0 Dori Posted February 17, 2016 Author Posted February 17, 2016 because 10 cells isnt far enough if compare with 14 cells... O_O for your information 10 is lesser than 14.. I'm really confused If that's the case then shouldn't I be able to see the message displayed with npctalk within the 10 cell range? Quote
0 Emistry Posted February 17, 2016 Posted February 17, 2016 check all the changes that you have done to the server. previously I remember I tested with the range of 300 cells away. Quote
Question
Dori
Hello rathena,
I want to increase the range of the displayed message from 'npctalk'. Currently I can't see the message within 10-11 cell range.
How do I increase this?
Thanks for any help.
7 answers to this question
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.