Issue information

Issue ID
#6988
Status
Fixed
Severity
None
Started
Hercules Elf Bot
Dec 8, 2012 5:54
Last Post
bgamez23
Jul 19, 2013 13:35
Confirmation
Yes (1)
No (0)

Hercules Elf Bot - Dec 8, 2012 5:54

Originally posted by [b]Joseph[/b]
As title stated, I tried killing monsters with OnKill label but the label couldn't be found.

Mapserver:
[CODE]
[Error]: npc_event: event not found [monster#onkill::OnKill]
[/CODE]

Script:
[CODE]
- script monster#onkill -1,{
OnInit:
monster "prontera",0,0,"Lunatic",2210,1000,strnpcinfo(0)+"::OnKill";
end;
OnKill:
dispbottom "You killed a Lunatic."; // this is not showing
end;
}
[/CODE]

This post has been edited by Joseph on Dec 8, 2012 21:16

Hercules Elf Bot - Dec 8, 2012 14:44

Originally posted by [b]Aleos[/b]
If I'm not mistaken it needs to be placed down on a map, not a floating NPC. So just give it: prontera,1,1,1 or something generic.

Hercules Elf Bot - Dec 8, 2012 14:59

Originally posted by [b]Euphy[/b]
[quote name='Aleos' timestamp='1354977865' post='16253']
If I'm not mistaken it needs to be placed down on a map, not a floating NPC.
[/quote]
No, that doesn't affect it.

Ind - Jan 27, 2013 11:49

it's a mystery O___O

Ind - Jan 27, 2013 12:43

I found the problem \o/ well the reason behind it is mysterious o-o the server K is getting lowercase'd somewhere for some reason O_O

Ind - Jan 27, 2013 13:04

I am not applying this to the repository yet cause i wanna discuss something with the developers, setting as "unable to fix" for the meantime.
[hr]
If anyone wants a fix:
in npc.c find[code=auto:0] ev_db = strdb_alloc((DBOptions)(DB_OPT_DUP_KEY|DB_OPT_RELEASE_DATA),2*NAME_LENGTH+2+1); [/code]change to[code=auto:0] ev_db = stridb_alloc((DBOptions)(DB_OPT_DUP_KEY|DB_OPT_RELEASE_DATA),2*NAME_LENGTH+2+1); [/code]in script.c find[code=auto:0] scriptlabel_db=strdb_alloc(DB_OPT_DUP_KEY,50); [/code]change to[code=auto:0] scriptlabel_db=stridb_alloc(DB_OPT_DUP_KEY,50); [/code]

bgamez23 - Jul 18, 2013 20:49

up for this.

Ind - Jul 19, 2013 10:20

As I understand this was fixed with gepards event label update

bgamez23 - Jul 19, 2013 13:35

i see. thanks.