Issue information

Issue ID
#5114
Status
New
Severity
None
Started
Hercules Elf Bot
Dec 10, 2011 4:19
Last Post
Hercules Elf Bot
Dec 11, 2011 3:41
Confirmation
N/A

Hercules Elf Bot - Dec 10, 2011 4:19

Originally posted by [b]mkbu95[/b]
[b]db/packet_db.txt:[/b] packet_db_ver: 19
[b]src/common/mmo.h: [/b]#define PACKETVER 7
[b]Hexed:[/b] 2005-12-05a_Sakexe_v1 (the hexed was working pretty well before I find this bug)

[b]npc:[/b][code]- script TestLoginEvent -1,{
end;
OnPCLoginEvent:
debugmes "Login event works.";
announce "Hello !", bc_blue|bc_all;
end;
}[/code]

Ok, I tested with eA but it wasn't working with my server which I get fixes/updates from RA+eA therefore probably it's not only eA's bug (if it's actually a bug).
No changes at all, only IP stuff.

A picture is worth a 1000 words

[img]http://i.imgur.com/MsBnK.jpg[/img]

This post has been edited by Brian on Dec 11, 2011 0:13

Hercules Elf Bot - Dec 10, 2011 17:13

Originally posted by [b]mkbu95[/b]
Just an add, tried with:
announce -> flag bc_self;
dispbottom "hello";
mes "hello";

None of them worked.

Hercules Elf Bot - Dec 10, 2011 17:44

Originally posted by [b]mkbu95[/b]
Well, the problem should be on OnPCLoginEvent.
I made a atcommand, and it's working when I type @displaymessage, but is not working with OnPCLoginEvent label.

[CODE]ACMD_FUNC(displaymessage)
{
struct map_session_data *pl_sd;
nullpo_retr(-1, sd);
char text[255];

memset(text, '\0', sizeof(text));
memset(atcmd_output, '\0', sizeof(atcmd_output));

if (!sd || sd == NULL)
return -1;

if (!message || !*message || sscanf(message, "%255s", text) < 1) {
clif_displaymessage(fd, "Usage: @displaymessage <message>");
return -1;
}

snprintf(atcmd_output, sizeof atcmd_output, "%s", text);
clif_displaymessage(fd, atcmd_output);

return 0;
}[/CODE]

Hercules Elf Bot - Dec 11, 2011 2:15

Originally posted by [b]Maki[/b]
Is there a reason to use such an old client? Can you not use a 2010/2011 client? Just wondering why.

Hercules Elf Bot - Dec 11, 2011 3:41

Originally posted by [b]mkbu95[/b]
I'm working on an old times server ^-^