Issue information

Issue ID
#1200
Status
Fixed
Severity
None
Started
Hercules Elf Bot
Mar 16, 2008 23:48
Last Post
mkbu95
Jun 9, 2013 6:01
Confirmation
N/A

Hercules Elf Bot - Mar 16, 2008 23:48

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

CODE
static int buildin_maprespawnguildid_sub_pc(DBKey key, void *data, va_list ap)
{
...
    if(
        (sd->status.guild_id == g_id && flag&1) || //Warp out owners
        (sd->status.guild_id != g_id && flag&2) || //Warp out outsiders
        (sd->status.guild_id == 0)    // Warp out players not in guild [Valaris]
    )
        pc_setpos(sd,sd->status.save_point.map,sd->status.save_point.x,sd->status.save_point.y,3);

Scripts that call this use flag '2', '4', or '2 | 4'. For the '4' case (4 = mobs), guildless players get warped out too.
I think whoever added that third clause forgot to add the appropriate flag. Not very thorough, is it.

mkbu95 - Jun 9, 2013 6:01

This was fixed sometime ago