L2JLisvus

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

    ReturningToSpawnPoint [Commited]

    Karakan
    Karakan


    Posts : 756
    Join date : 2013-10-04

    ReturningToSpawnPoint [Commited] Empty ReturningToSpawnPoint [Commited]

    Post  Karakan 24th September 2019, 15:14

    A minor cosmetic contribution, but every little bit counts.
    Monsters should walk back to spawn location instead of running. Cool


    To do : Need to add proper pathfinding/geodata check, so they wont go through walls.


    Code:

    Index: L2AttackableAI.java
    ===================================================================
    --- L2AttackableAI.java (revision 661)
    +++ L2AttackableAI.java (working copy)
    @@ -703,6 +712,7 @@
     
     if (!_actor.isInsideRadius(x1, y1, z1, Config.MAX_DRIFT_RANGE + Config.MAX_DRIFT_RANGE, true, false))
     {
    + npc.setWalking();
     npc.setIsReturningToSpawnPoint(true);
     }
     else

      Current date/time is 19th May 2024, 09:04