Issue information

Issue ID
#1850
Status
Working as Intended
Severity
None
Started
Hercules Elf Bot
Jul 14, 2008 23:42
Last Post
Hercules Elf Bot
Feb 7, 2012 20:57
Confirmation
N/A

Hercules Elf Bot - Jul 14, 2008 23:42

Originally posted by [b]FanFataL[/b]
http://www.eathena.ws/board/index.php?autocom=bugtracker&showbug=1850

If I want unload npc with 24 length name like e.g.:
CODE
@unloadnpc twentyfouruniquenpcsname


Ive got an error This NPC doesn't exist. cus of this:
QUOTE("src/atcommand.c")
int atcommand_unloadnpc(const int fd, struct map_session_data* sd, const char* command, const char* message)
{
. . .

if (!message || !*message || sscanf(message, "%23[^\n]", NPCname) < 1) {
clif_displaymessage(fd, "Please, enter a NPC name (usage: @npcoff <NPC_name>).");
return -1;
}

. . .
}

but in script docs said that:
QUOTE("doc/script_commands.txt")
** Npc names

. . .

<Display name> must be at most 24 characters in length.
<Unique name> must be at most 24 characters in length.


Greetiings (IMG:style_emoticons/default/smile.gif)
...