Baggos

Custom Tattoo's At x Pvp Count

Feb 2nd, 2015
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.65 KB | None | 0 0
  1. Config.java
  2.  
  3. +
  4. +   // Custom Tattoo's
  5. +
  6. +   /** Fighter Tattoo */
  7. +   public static boolean FIGHTER_TATTOO_ENABLE;
  8. +   public static int FIGHTER_TATTOO_COUNT;
  9. +   public static int TATTOO_FIGHTER_ID;
  10. +  
  11. +   /** Mage Tattoo */
  12. +   public static boolean MAGE_TATTOO_ENABLE;
  13. +   public static int MAGE_TATTOO_COUNT;
  14. +   public static int TATTOO_MAGE_ID;
  15. +  
  16. +   /** Pvp Kills they need */
  17. +   public static int PVP_COUNT;
  18. +  
  19.  
  20.  
  21. +            // Custom Tattoo's
  22. +           /** Fighter Tattoo */
  23. +           FIGHTER_TATTOO_ENABLE = customs.getProperty("FighterTattooEnable", false);
  24. +           TATTOO_FIGHTER_ID = customs.getProperty("FighterTattooID", 492);
  25. +
  26. +           /** Mage Tattoo */
  27. +           MAGE_TATTOO_ENABLE = customs.getProperty("MageTattooEnable", false);
  28. +           TATTOO_MAGE_ID = customs.getProperty("MageTattooID", 493);
  29. +          
  30. +           /** Pvp Kills */
  31. +           PVP_COUNT = customs.getProperty("PvpKillsCount", 100);
  32. +          
  33.  
  34.  
  35. L2PcInstance.java
  36.  
  37.             // Add PvP point to attacker.
  38.             setPvpKills(getPvpKills() + 1);
  39. +
  40. +           // Add Fighter or Mage Tattoos
  41. +           if (getPvpKills() == Config.PVP_COUNT)
  42. +           {
  43. +           if (Config.FIGHTER_TATTOO_ENABLE && !isMageClass())
  44. +           {
  45. +           addItem("Tattoo", Config.TATTOO_FIGHTER_ID, Config.FIGHTER_TATTOO_COUNT, this, true);
  46. +           sendMessage("Congratulations! " + Config.PVP_COUNT + "  PvP Kills! You won Fighter Tattoo.");
  47. +           }
  48. +           else if(Config.MAGE_TATTOO_ENABLE)
  49. +           {
  50. +           addItem("Tattoo", Config.TATTOO_MAGE_ID, Config.MAGE_TATTOO_COUNT, this, true);
  51. +           sendMessage("Congratulations! " + Config.PVP_COUNT + "  PvP Kills! You won Mage Tattoo.");
  52. +           }
  53. +           }
  54. +              
  55.             // Send UserInfo packet to attacker with its Karma and PK Counter
  56.             sendPacket(new UserInfo(this));Config.java
Advertisement
Add Comment
Please, Sign In to add comment