Jump to content
  • 0

Increase "npctalk" range


Dori

Question


  • Group:  Members
  • Topic Count:  105
  • Topics Per Day:  0.02
  • Content Count:  332
  • Reputation:   15
  • Joined:  12/11/11
  • Last Seen:  

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

  • 0

  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  545
  • Reputation:   220
  • Joined:  03/01/13
  • Last Seen:  

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

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  88
  • Reputation:   10
  • Joined:  01/15/16
  • Last Seen:  

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)

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

affect by this setting.
conf/battle/client.conf#L92-L93

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  105
  • Topics Per Day:  0.02
  • Content Count:  332
  • Reputation:   15
  • Joined:  12/11/11
  • Last Seen:  

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.

Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

because 10 cells isnt far enough if compare with 14 cells... O_O

 

for your information 10 is lesser than 14..   /oops

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  105
  • Topics Per Day:  0.02
  • Content Count:  332
  • Reputation:   15
  • Joined:  12/11/11
  • Last Seen:  

because 10 cells isnt far enough if compare with 14 cells... O_O

 

for your information 10 is lesser than 14..   /oops

 

I'm really confused  /hmm If that's the case then shouldn't I be able to see the message displayed with npctalk within the 10 cell range?

 

Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

check all the changes that you have done to the server.

 

previously I remember I tested with the range of 300 cells away.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...