L2JLisvus

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

2 posters

    What consecuences can this give to me?

    avatar
    confejulian


    Posts : 254
    Join date : 2016-08-27

    What consecuences can this give to me? Empty What consecuences can this give to me?

    Post  confejulian 22nd July 2020, 03:10

    Hi, when we know, the project have a feature which do the mobs moves arround the players when you are farming trains.

    To disable this i deleted a part of code from core:

    on L2AtackableIA.java

    from line 1437 to 1474.

    Code:
    if (!_actor.isMovementDisabled() && Rnd.nextInt(100) <= 33)
          {
             for (L2Object nearby : _actor.getKnownList().getKnownObjects().values())
             {
                if (nearby instanceof L2Attackable && _actor.isInsideRadius(nearby, collision, false, false) && nearby != _mostHatedAnalysis.character)
                {
                   int newX = combinedCollision + Rnd.get(40);
                   if (Rnd.nextBoolean())
                   {
                      newX = _mostHatedAnalysis.character.getX() + newX;
                   }
                   else
                   {
                      newX = _mostHatedAnalysis.character.getX() - newX;
                   }

                   int newY = combinedCollision + Rnd.get(40);
                   if (Rnd.nextBoolean())
                   {
                      newY = _mostHatedAnalysis.character.getY() + newY;
                   }
                   else
                   {
                      newY = _mostHatedAnalysis.character.getY() - newY;
                   }
                   
                   if (!_actor.isInsideRadius(newX, newY, collision, false))
                   {
                      int newZ = _actor.getZ() + 30;
                      if (GeoData.getInstance().canMove(_actor.getX(), _actor.getY(), _actor.getZ(), newX, newY, newZ))
                      {
                         moveTo(newX, newY, newZ);
                      }
                   }
                   return;
                }
             }
          }

    The thing is... this can generate any secondary efect to me? i cant understand fine that part of code, but i know that is who do mobs moves arround the player.
    improvise
    improvise


    Posts : 144
    Join date : 2017-07-21

    What consecuences can this give to me? Empty Re: What consecuences can this give to me?

    Post  improvise 22nd July 2020, 12:11

    It seems that this is necessary to prevent mobs get stucked in each other chasing the player.
    If this is not important for you, then nothing terrible will happen.
    The main thing is that you like the result Smile

      Current date/time is 19th May 2024, 13:22