Advertisement
Deedlit

Antharas AI npe fix when outside boss zone

Jun 27th, 2011
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.72 KB | None | 0 0
  1. Index: data/scripts/ai/individual/Antharas.java
  2. ===================================================================
  3. --- data/scripts/ai/individual/Antharas.java    (revision 510)
  4. +++ data/scripts/ai/individual/Antharas.java    (working copy)
  5. @@ -525,6 +525,11 @@
  6.                     characters.sendPacket(mov);
  7.             }
  8.         }
  9. +       else if (_antharas != null)
  10. +       {
  11. +           _antharas.broadcastPacket(mov);
  12. +       }
  13. +              
  14.     }
  15.    
  16.     // Do spawn Behemoth or Bomber.
  17. @@ -850,7 +855,8 @@
  18.             _LastAction = System.currentTimeMillis();
  19.             if (GrandBossManager.getInstance().getBossStatus(_antharas.getNpcId()) != FIGHTING)
  20.             {
  21. -               _Zone.oustAllPlayers();
  22. +               if (_Zone != null)
  23. +                   _Zone.oustAllPlayers();
  24.             }
  25.             else if (!FWA_OLDANTHARAS && _mobsSpawnTask == null)
  26.             {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement