daily pastebin goal
51%
SHARE
TWEET

Untitled

a guest May 14th, 2016 814 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ### Eclipse Workspace Patch 1.0
  2. #P aCis
  3. Index: config/Leki.properties
  4. ===================================================================
  5. --- config/Leki.properties  (revision 9)
  6. +++ config/Leki.properties  (working copy)
  7. @@ -141,4 +141,7 @@
  8.  # Default: 40,60,50.
  9.  BackBlow = 70
  10.  SideBlow = 60
  11. -FrontBlow = 50
  12. \ No newline at end of file
  13. +FrontBlow = 50
  14. +
  15. +#List of npcs with red circle aura
  16. +NpcWithAura = 50009,50010,50013
  17. \ No newline at end of file
  18. Index: java/net/sf/l2j/gameserver/network/serverpackets/AbstractNpcInfo.java
  19. ===================================================================
  20. --- java/net/sf/l2j/gameserver/network/serverpackets/AbstractNpcInfo.java   (revision 10)
  21. +++ java/net/sf/l2j/gameserver/network/serverpackets/AbstractNpcInfo.java   (working copy)
  22. @@ -177,8 +177,12 @@
  23.             writeC(_npc.isFlying() ? 2 : 0);
  24.             if(_npc.isChampion() && Config.CHAMPIONS_AURA)
  25.             {
  26. -               writeC(0x01);
  27. +               writeC(0x01); // auras for champions | blue circle
  28.             }
  29. +           else if(Config.LIST_NPC_WITH_AURA.contains(_npc.getNpcId()))
  30. +           {
  31. +               writeC(0x02);// auras for npcs | red circle
  32. +           }
  33. Index: java/net/sf/l2j/Config.java
  34. ===================================================================
  35. --- java/net/sf/l2j/Config.java (revision 10)
  36.             else
  37.             writeC(0x00);
  38.            
  39. +++ java/net/sf/l2j/Config.java (working copy)
  40. @@ -556,7 +556,8 @@
  41.     public static int BACK_BLOW_SUCCESS;
  42.     public static int SIDE_BLOW_SUCCESS;
  43.     public static boolean CHAMPIONS_AURA;
  44. -  
  45. +   public static String NPC_WITH_AURA;
  46. +   public static List<Integer> LIST_NPC_WITH_AURA = new ArrayList<>();
  47.     // --------------------------------------------------
  48.     // Server
  49.     // --------------------------------------------------
  50. @@ -1573,6 +1574,12 @@
  51.         FRONT_BLOW_SUCCESS = Integer.parseInt(Leki.getProperty("FrontBlow", "40"));
  52.         BACK_BLOW_SUCCESS = Integer.parseInt(Leki.getProperty("BackBlow", "60"));
  53.         SIDE_BLOW_SUCCESS = Integer.parseInt(Leki.getProperty("SideBlow", "50"));
  54. +       NPC_WITH_AURA = Leki.getProperty("ListPetRentNpc", "30827");
  55. +       LIST_NPC_WITH_AURA = new ArrayList<>();
  56. +       for (String listid : NPC_WITH_AURA.split(","))
  57. +       {
  58. +           LIST_NPC_WITH_AURA.add(Integer.parseInt(listid));
  59. +       }
  60.         }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top