Advertisement
Guest User

PvP Custom Reward Fix

a guest
Dec 18th, 2012
527
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.61 KB | None | 0 0
  1. ===================================================================
  2. Index: java/com/l2jserver/Config.java
  3. ===================================================================
  4.  
  5. +   public static boolean PVP_ACTIVAR;
  6. +   public static int PVP_REWARD;
  7. +   public static int PVP_CANTIDAD;
  8. +
  9.     // --------------------------------------------------
  10.     // NPC Settings
  11.  
  12. ## mas abajo debajo de Banking_System
  13.  
  14. +
  15. +               PVP_ACTIVAR = Boolean.parseBoolean(L2JModSettings.getProperty("PvPActivar", "False"));
  16. +               PVP_REWARD = Integer.parseInt(L2JModSettings.getProperty("PvPReward", "6673"));
  17. +               PVP_CANTIDAD = Integer.parseInt(L2JModSettings.getProperty("PvPCantidad", "1"));
  18.  
  19. ===================================================================
  20. Index: java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java
  21. ===================================================================
  22.  
  23.             // Add karma to attacker and increase its PK counter
  24.             setPvpKills(getPvpKills() + 1);
  25. +           //Custom PvP Reward
  26. +           if (Config.PVP_ACTIVAR)
  27. +           {
  28. +           addItem("Loot", Config.PVP_REWARD, Config.PVP_CANTIDAD, this, true);
  29. +           }
  30. +  
  31.                 // Send a Server->Client UserInfo packet to attacker with its Karma and PK Counter
  32.  
  33. ===================================================================
  34. Index: dist/game/config/l2jmods.
  35. ===================================================================
  36.  
  37. +# ---------------------------------------------------------------------------
  38. +# Custom PvP Reward By Neo
  39. +# ---------------------------------------------------------------------------
  40. +PvPActivar = True
  41. +PvPReward = 6673
  42. +PvPCantidad = 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement