A bug every java server has from chr.1 till h5
Found on ancient l2jforum:
Especially the last line is still in effect.
Sometimes a whole floor in ToI will aggro a party/player IF they killed them before.
Or they "remember" you when you died and returned and will aggro you (even when there stat is set to passive)
Regards
Found on ancient l2jforum:
That "certain amount of time" is when you exit the region. It is triggered by setXYZ() that calls updateWorldRegion(), and if the region becomes inactive, it stops all the mobs' AI's, then sets them into idle state, then sets the AI null (detachAI()). However, I don't know, why need to set the AI null, since it turns IDLE, that does nothing. It should be only stopped, and set to idle. It would be a little performance improvement, if it didn't set the _ai variable null every time for nothing.
Server starts, monsters spawn.
They all are working fine mobs are set to IDLE if no players in region, else ACTIVE.
After a certain amount of time a mob with IDLE intention their AI will be removed.
Once it's removed, the mob won't be aggro anymore.
You can find these mobs by shift+click on the mob.
When a mob is attacked, AI will return and mob will attack back.
Once a killed aggro mob re-spawns it will stay ACTIVE again, until players leave region and then the same story happens like I said above.
Especially the last line is still in effect.
Sometimes a whole floor in ToI will aggro a party/player IF they killed them before.
Or they "remember" you when you died and returned and will aggro you (even when there stat is set to passive)
Regards