Advertisement
gigilo1968

SilentValley

Apr 19th, 2017
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.72 KB | None | 0 0
  1. ### Eclipse Workspace Patch 1.0
  2. #P L2J_Mobius_Helios
  3. Index: dist/game/data/scripts/ai/areas/SilentValley/SilentValley.java
  4. ===================================================================
  5. --- dist/game/data/scripts/ai/areas/SilentValley/SilentValley.java  (revision 2036)
  6. +++ dist/game/data/scripts/ai/areas/SilentValley/SilentValley.java  (working copy)
  7. @@ -153,7 +153,7 @@
  8.         if (creature.isPlayable())
  9.         {
  10.             final L2PcInstance player = (isSummon) ? ((L2Summon) creature).getOwner() : creature.getActingPlayer();
  11. -           if ((npc.getId() == GUARD1) || (npc.getId() == GUARD2))
  12. +           if ((npc != null) && ((npc.getId() == GUARD1) || (npc.getId() == GUARD2)))
  13.             {
  14.                 npc.setTarget(player);
  15.                 npc.doCast(BLAZE.getSkill());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement