Issue information

Issue ID
#1201
Status
Fixed
Severity
None
Started
Hercules Elf Bot
Mar 16, 2008 23:51
Last Post
Hercules Elf Bot
Feb 21, 2012 9:12
Confirmation
N/A

Hercules Elf Bot - Mar 16, 2008 23:51

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

CODE
function    script    F_AgitStart    {
...
        areamonster .@map$,0,0,300,300,"--ja--",1117,10;
        (and a lot more mobs)
...
}

CODE
function    script    F_AgitEnd    {
...
    // Disable the following if statment to keep empty
    // castles from being aquired after after WoE ends.
    if (GetCastleData(.@map$,1) == 0) return;
    MapRespawnGuildID .@map$,GetCastleData(.@map$,1),4;
    KillMonster .@map$,"Agit_"+.@castle$+"::OnAgitBreak";
    end;
}

Notice that 'if' statement. It prevents unconquered castles from executing 'maprespawnguildid' - which would eliminate the mobs that were spawned at agit start (plus kill the emp & guardians). As it is now, an agitstart will spawn the mobs, but agitend won't remove them - spawning more and more each time...