Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Config.Java
- +
- + /** Fighter Tattoo */
- + public static boolean FIGHTER_TATTOO_ENABLE;
- + public static int PVP_COUNT;
- + public static int TATTOO_FIGHTER_ID;
- +
- + /** Mage Tattoo */
- + public static boolean MAGE_TATTOO_ENABLE;
- + public static int PVP_COUNT1;
- + public static int TATTOO_MAGE_ID;
- +
- +
- + /** Fighter Tattoo */
- + FIGHTER_TATTOO_ENABLE = customs.getProperty("FighterTattooEnable", false);
- + PVP_COUNT = customs.getProperty("PvpKillsCount", 100);
- + TATTOO_FIGHTER_ID = customs.getProperty("FighterTattooID", 492);
- +
- + /** Mage Tattoo */
- + MAGE_TATTOO_ENABLE = customs.getProperty("MageTattooEnable", false);
- + PVP_COUNT1 = customs.getProperty("PvpKillsCount", 100);
- + TATTOO_MAGE_ID = customs.getProperty("MageTattooID", 493);
- +
- L2PcInstance.java
- public void setClient(L2GameClient client)
- {
- _client = client;
- }
- +
- + // Fighter and Mage Tattoo //
- + /**
- + * @param pvpKillCount
- + */
- + public void addItem(int pvpKillCount)
- + {
- +
- + if (Config.FIGHTER_TATTOO_ENABLE && pvpKillCount == Config.PVP_COUNT && !isMageClass())
- + {
- + addItem(Config.TATTOO_FIGHTER_ID);
- + sendMessage("Congratulations! " + Config.PVP_COUNT + " PvP Kills! You won Fighter Tattoo.");
- + getInventory().updateDatabase();
- + }
- + else if(Config.MAGE_TATTOO_ENABLE && pvpKillCount == Config.PVP_COUNT1)
- + {
- + addItem(Config.TATTOO_MAGE_ID);
- + sendMessage("Congratulations! " + Config.PVP_COUNT + " PvP Kills! You won Mage Tattoo.");
- + getInventory().updateDatabase();
- + }
- + }
- +
- // Add PvP point to attacker.
- setPvpKills(getPvpKills() + 1);
- +
- + // Check pvp kills on part with Tattoo's
Advertisement
Add Comment
Please, Sign In to add comment