Issue information

Issue ID
#2985
Status
Working as Intended
Severity
None
Started
Hercules Elf Bot
Apr 18, 2009 17:15
Last Post
Hercules Elf Bot
Apr 18, 2009 17:15
Confirmation
N/A

Hercules Elf Bot - Apr 18, 2009 17:15

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

The bug is that if you use the label PCLoginEvent in an npc to cause a piece of code to be executed when a player connects to the server, and the player has a pet out of its egg, that piece of code is not executed, but you can continue playing normally. There are no messages in the map server window related to it. If you return the egg to its shell, and then you log in again, the PCLoginEvent is executed.

I can't figure out why is this occuring, and it shows up with any instruction in a PCLoginEvent. Try one like this to know what I'm talking about:

CODE
prontera,160,180,0    script        An NPC    46,{
    close;    
OnPCLoginEvent:
    announce "Hellooooooooo",bc_map,0x66FFFF;
}


Edit: Althoug it's a script-related bug, I think this is the best place to put it, as the error is caused to an internal error, not a script one.

This post has been edited by elbrunito: Apr 18 2009, 10:21 AM