Jump to content
  • 0

Increase "npctalk" range


Question

Posted

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

  • 0
Posted

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

  • 0
Posted

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
  • 0
Posted

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.

  • 0
Posted

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?

 

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...