L2JLisvus

Would you like to react to this message? Create an account in a few clicks or log in to continue.

2 posters

    Monster AI

    Karakan
    Karakan


    Posts : 756
    Join date : 2013-10-04

    Monster AI Empty Monster AI

    Post  Karakan 20th August 2017, 21:43

    A bug every java server has from chr.1 till h5 Smile

    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 Smile
    DnR
    DnR
    Admin
    Admin


    Posts : 1476
    Join date : 2012-12-03
    Age : 34

    Monster AI Empty Re: Monster AI

    Post  DnR 20th August 2017, 22:52

    Karakan wrote:A bug every java server has from chr.1 till h5 Smile

    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 Smile

    Not much we can really do about it. This fix is already included in project. :/
    I' ll take a look if there is something worth improving though.

    Regards,
    DnR
    Karakan
    Karakan


    Posts : 756
    Join date : 2013-10-04

    Monster AI Empty Re: Monster AI

    Post  Karakan 21st August 2017, 02:01

    Thanks for a reply DnR ! Smile
    So only option we have is to change or remove "clan id" in Npc table or lower their clan_range a lot.......:S
    DnR
    DnR
    Admin
    Admin


    Posts : 1476
    Join date : 2012-12-03
    Age : 34

    Monster AI Empty Re: Monster AI

    Post  DnR 21st August 2017, 20:51

    I have done few related improvements. I hope they solve few of these problems. Very Happy
    Karakan
    Karakan


    Posts : 756
    Join date : 2013-10-04

    Monster AI Empty Re: Monster AI

    Post  Karakan 21st August 2017, 23:15

    I'm not at home now.
    Will test it on live server in 2 days and gonna report back.
    Thanks for fixes and your time mate Smile

    Sponsored content


    Monster AI Empty Re: Monster AI

    Post  Sponsored content


      Current date/time is 17th October 2024, 07:27