Issue information

Issue ID
#4776
Status
Fixed
Severity
None
Started
Hercules Elf Bot
Feb 22, 2011 18:28
Last Post
Hercules Elf Bot
Feb 22, 2011 18:28
Confirmation
N/A

Hercules Elf Bot - Feb 22, 2011 18:28

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

CODE
prontera,0,0,0    script    Display Name::unique_name    46,{
OnWhisperGlobal:
// process input, or whatever
}


When whispering to "NPC:unique_name" the server throws
CODE
[Error]: npc_event: event not found [Display Name::OnWhisperGlobal]

but when whispering to "NPC:Display Name" the server just responds with the Character is offline message.

Regardless which method is used, it's impossible to use the OnWhisperGlobal event when specifying a display and unique name.


Suggested fix (clif.c, line 9203 in latest rev.):
Replace
CODE
            sprintf(output, "%s::OnWhisperGlobal", npc->name);

with
CODE
            sprintf(output, "%s::OnWhisperGlobal", npc->exname);


This post has been edited by Christian: Feb 22 2011, 10:28 AM