Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Config.java
- +
- + // Custom Tattoo's
- +
- + /** Fighter Tattoo */
- + public static boolean REWARD_TATTOOS_ENABLE;
- + public static int FIGHTER_TATTOO_COUNT;
- + public static int TATTOO_FIGHTER_ID;
- +
- + /** Mage Tattoo */
- + public static int MAGE_TATTOO_COUNT;
- + public static int TATTOO_MAGE_ID;
- +
- + /** Pvp Kills they need */
- + public static int PVP_COUNT;
- +
- +
- + // Custom Tattoo's
- + ExProperties customs = load(CUSTOMS_FILE);
- + /** Fighter Tattoo */
- + REWARD_TATTOOS_ENABLE = customs.getProperty("RewardTattooEnable", false);
- + TATTOO_FIGHTER_ID = customs.getProperty("FighterTattooID", 492);
- +
- + /** Mage Tattoo */
- + TATTOO_MAGE_ID = customs.getProperty("MageTattooID", 493);
- +
- + /** Pvp Kills */
- + PVP_COUNT = customs.getProperty("PvpKillsCount", 100);
- +
- L2PcIstance.java
- // Add PvP point to attacker.
- setPvpKills(getPvpKills() + 1);
- {
- +
- + // Add Fighter or Mage Tattoos
- + if (Config.REWARD_TATTOOS_ENABLE)
- + {
- + if (getPvpKills() == Config.PVP_COUNT)
- + {
- + if (!isMageClass())
- + {
- + addItem("Tattoo", Config.TATTOO_FIGHTER_ID, Config.FIGHTER_TATTOO_COUNT, this, true);
- + sendMessage("Congratulations! " + Config.PVP_COUNT + " PvP Kills! You won Fighter Tattoo.");
- + }
- + else
- + {
- + addItem("Tattoo", Config.TATTOO_MAGE_ID, Config.MAGE_TATTOO_COUNT, this, true);
- + sendMessage("Congratulations! " + Config.PVP_COUNT + " PvP Kills! You won Mage Tattoo.");
- + }
- + }
- + }
- + }
- +
- // Send UserInfo packet to attacker with its Karma and PK Counter
- sendPacket(new UserInfo(this));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement