Issue information

Issue ID
#1210
Status
Working as Intended
Severity
None
Started
Hercules Elf Bot
Mar 18, 2008 8:55
Last Post
Hercules Elf Bot
Apr 5, 2012 8:06
Confirmation
N/A

Hercules Elf Bot - Mar 18, 2008 8:55

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

QUOTE
OnPCLoadMapEvent:

This special label will trigger once a player steps in a map marked with the 'loadevent' mapflag and attach its RID.
The fact that this label requires a mapflag for it to work is because, otherwise, it'd be server-wide and trigger everytime a player would change maps.
The above clearly says that it should only trigger on mapchange. Yet...
CODE
    if(map[sd->bl.m].flag.loadevent) // Lance
        npc_script_event(sd, NPCE_LOADMAP);
this code is in the global section of clif_parse_loadendack(), meaning it also activates on flywing/teleport. Was this the original intent?

This post has been edited by theultramage: Mar 18 2008, 01:55 AM

Hercules Elf Bot - Dec 17, 2011 5:34

Originally posted by [b]Ind[/b]
this is how it behaves; it is run on endack which is called on teleport, for example. for suggestions use the development forum please ;)