Increase npc length name

HyperSonic2097

New member
Messages
50
Points
0
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?

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

 
Back
Top