Advertisement
Deedlit

Antharas AI out of boss zone fix

Jun 27th, 2011
281
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.31 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. @@ -848,13 +853,22 @@
  18.         if (npc.getNpcId() == 29019 || npc.getNpcId() == 29066 || npc.getNpcId() == 29067 || npc.getNpcId() == 29068)
  19.         {
  20.             _LastAction = System.currentTimeMillis();
  21. -           if (GrandBossManager.getInstance().getBossStatus(_antharas.getNpcId()) != FIGHTING)
  22. +           try
  23.             {
  24. -               _Zone.oustAllPlayers();
  25. +               if (GrandBossManager.getInstance().getBossStatus(npc.getNpcId()) != FIGHTING)
  26. +               {
  27. +                   if (_Zone != null)
  28. +                       _Zone.oustAllPlayers();
  29. +               }
  30. +               else if (!FWA_OLDANTHARAS && _mobsSpawnTask == null)
  31. +               {
  32. +                   startMinionSpawns(npc.getNpcId());
  33. +               }
  34.             }
  35. -           else if (!FWA_OLDANTHARAS && _mobsSpawnTask == null)
  36. +           catch (Exception e)
  37.             {
  38. -               startMinionSpawns(npc.getNpcId());
  39. +               _log.warning("Npe in Antharas AI. Spawned outside of zone?!");
  40. +               e.printStackTrace();
  41.             }
  42.         }
  43.         else if (npc.getNpcId() > 29069 && npc.getNpcId() < 29077 && npc.getCurrentHp() <= damage)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement