K4m4r40
New member
- Messages
- 65
- Points
- 0
- Github
- K4M4R40
- Emulator
is possible to increase the maximum characters on the menu?[Warning] NPC Menu too long! (source:Bre@k Maps / length:10897)
My menu has more than 70 maps....
Thx for help.
is possible to increase the maximum characters on the menu?[Warning] NPC Menu too long! (source:Bre@k Maps / length:10897)
/* menus beyond this length crash the client (see bugreport:6402) */ if( StrBuf->Length(&buf) >= 2047 ) { struct npc_data * nd = map->id2nd(st->oid); char* menu; CREATE(menu, char, 2048); safestrncpy(menu, StrBuf->Value(&buf), 2047); ShowWarning("NPC Menu too long! (source:%s / length:%d)n",nd?nd->name:"Unknown",StrBuf->Length(&buf)); clif->scriptmenu(sd, st->oid, menu); aFree(menu); } else clif->scriptmenu(sd, st->oid, StrBuf->Value(&buf));
We use essential cookies to make this site work, and optional cookies to enhance your experience.