A Project for Chronicle 4 based on L2JServer.


    Aggro mobs sometimes it does not work

    Share

    Flopix

    Posts : 10
    Join date : 2014-02-28

    Aggro mobs sometimes it does not work

    Post  Flopix on 4th December 2015, 17:33

    On teleport player on new zone all npc aiTask is null. Only new spawned NPC have the aiTask.

    L2WorldRegion.java
    Code:

    private void switchAI(Boolean isOn)
    {
    .....
    for(L2Object o: _visibleObjects)
                {
                    if (o instanceof L2Attackable)
                    {
                        c++;
                        // Start HP/MP/CP Regeneration task
                        ((L2Attackable)o).getStatus().startHpMpRegeneration();
                       
                        // start the ai
                        //((L2AttackableAI) mob.getAI()).startAITask();
                    }
    .....

    //((L2AttackableAI) mob.getAI()).startAITask();

    Why this line is commented?

      Current date/time is 22nd November 2017, 05:49