Jump to content
  • 0
Sign in to follow this  
HyperSonic2097

Increase npc length name

Question

Hi.

I have a little problem with a script I wrote. For some reason i need to name npc like 

einbroch,238,224,4    duplicate(GG_Record_Mark_Main)    Einbroch Marker#1-2_uz1    1002
geffen,163,188,3    duplicate(GG_Record_Mark_Main)    Geffen Marker#1-2_uz1    1002
glast_01,200,280,0    duplicate(GG_Record_Mark_Main)    Glast Heim Marker#1-2_uz1    1002

but for Glast Heim Marker#1-2_uz1 i have this error when I reload the scripts:

npc_parsename: Name 'Glast Heim Marker#1-2_uz1 is too long (len=25) in file 'npc/custom/aggiuntivi/mark_warper_markwarper.txt', line 111. Truncating to 24 characters.

So I have tried to increase the max npc name characters in src/common/mmo.h in 

//For character names, title names, guilds, maps, etc.
//Includes null-terminator as it is the length of the array.
#define NAME_LENGTH (23 + 1)

but any value I set insted 23+1 (for example 24+1) when I recompile and launch the server gave me this error:

[warning] chrif_parse: session #6, intif ->parse failed (unrecognized command 0x0000).

Is there any way for increase npc name characters?

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

You cant change npc name size, because this size used in different packets. And without changing client you cant change packet sizes.

 

Share this post


Link to post
Share on other sites
  • 0
6 hours ago, 4144 said:

You cant change npc name size, because this size used in different packets. And without changing client you cant change packet sizes.

 

Oh ok. I'll try to workaround this in other way. Thanks for the reply!

Share this post


Link to post
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.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.