Dori Posted February 16, 2016 Group: Members Topic Count: 105 Topics Per Day: 0.02 Content Count: 332 Reputation: 15 Joined: 12/11/11 Last Seen: August 8, 2017 Share 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 Link to comment Share on other sites More sharing options...
0 Azura Skyy Posted February 17, 2016 Group: Members Topic Count: 49 Topics Per Day: 0.01 Content Count: 545 Reputation: 221 Joined: 03/01/13 Last Seen: January 2, 2023 Share 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 Link to comment Share on other sites More sharing options...
0 Enthr Posted February 17, 2016 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 88 Reputation: 10 Joined: 01/15/16 Last Seen: January 18 Share 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 Link to comment Share on other sites More sharing options...
0 Emistry Posted February 17, 2016 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted February 17, 2016 affect by this setting.conf/battle/client.conf#L92-L93 Quote Link to comment Share on other sites More sharing options...
0 Dori Posted February 17, 2016 Group: Members Topic Count: 105 Topics Per Day: 0.02 Content Count: 332 Reputation: 15 Joined: 12/11/11 Last Seen: August 8, 2017 Author Share 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 Link to comment Share on other sites More sharing options...
0 Emistry Posted February 17, 2016 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share 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 Link to comment Share on other sites More sharing options...
0 Dori Posted February 17, 2016 Group: Members Topic Count: 105 Topics Per Day: 0.02 Content Count: 332 Reputation: 15 Joined: 12/11/11 Last Seen: August 8, 2017 Author Share 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 Link to comment Share on other sites More sharing options...
0 Emistry Posted February 17, 2016 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share 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 Link to comment Share on other sites More sharing options...
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.
Link to comment
Share on other sites
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.