Advertisement
warc222

Champion aura (L2J Mod)

Oct 4th, 2015
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.34 KB | None | 0 0
  1. Index: config/fun/champion.properties
  2. ===================================================================
  3. --- config/fun/champion.properties (revision 694)
  4. +++ config/fun/champion.properties (working copy)
  5. @@ -41,4 +41,9 @@
  6. ChampionRewardItemQty = 1
  7.  
  8. # Champion Mob Custom Title
  9. -ChampionTitle = Champion
  10. \ No newline at end of file
  11. +ChampionTitle = Champion
  12. +
  13. +# Enable aura from champion mobs
  14. +# 0 - no aura / 1 - blue aura / 2 - red aura
  15. +# Default = 0
  16. +ChampionEnableAura = 0
  17. \ No newline at end of file
  18. Index: head-src/com/l2jfrozen/Config.java
  19. ===================================================================
  20. --- head-src/com/l2jfrozen/Config.java (revision 694)
  21. +++ head-src/com/l2jfrozen/Config.java (working copy)
  22. @@ -1454,6 +1454,7 @@
  23. public static int L2JMOD_CHAMPION_REWARD_ID;
  24. public static int L2JMOD_CHAMPION_REWARD_QTY;
  25. public static String L2JMOD_CHAMP_TITLE;
  26. + public static int L2JMOD_CHAMPION_ENABLE_AURA;
  27.  
  28. //============================================================
  29. public static void loadChampionConfig()
  30. @@ -1481,6 +1482,8 @@
  31. L2JMOD_CHAMPION_REWARD_ID = Integer.parseInt(ChampionSettings.getProperty("ChampionRewardItemID", "6393"));
  32. L2JMOD_CHAMPION_REWARD_QTY = Integer.parseInt(ChampionSettings.getProperty("ChampionRewardItemQty", "1"));
  33. L2JMOD_CHAMP_TITLE = ChampionSettings.getProperty("ChampionTitle", "Champion");
  34. + L2JMOD_CHAMPION_ENABLE_AURA = Integer.parseInt(ChampionSettings.getProperty("ChampionEnableAura", "0"));
  35. + if (L2JMOD_CHAMPION_ENABLE_AURA != 0 && L2JMOD_CHAMPION_ENABLE_AURA != 1 && L2JMOD_CHAMPION_ENABLE_AURA != 2) L2JMOD_CHAMPION_ENABLE_AURA = 0;
  36.  
  37. }
  38. catch(Exception e)
  39. Index: head-src/com/l2jfrozen/gameserver/network/serverpackets/NpcInfo.java
  40. ===================================================================
  41. --- head-src/com/l2jfrozen/gameserver/network/serverpackets/NpcInfo.java (revision 694)
  42. +++ head-src/com/l2jfrozen/gameserver/network/serverpackets/NpcInfo.java (working copy)
  43. @@ -193,7 +193,14 @@
  44. writeD(0000); // C2
  45. writeC(0000); // C2
  46.  
  47. - writeC(0x00); // C3 team circle 1-blue, 2-red
  48. + if (Config.L2JMOD_CHAMPION_ENABLE)
  49. + {
  50. + writeC(_activeChar.isChampion() ? Config.L2JMOD_CHAMPION_ENABLE_AURA : 0);
  51. + }
  52. + else
  53. + {
  54. + writeC(0);
  55. + }
  56. writeF(_collisionRadius);
  57. writeF(_collisionHeight);
  58. writeD(0x00); // C4
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement