Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- L2PcInstance.java
- put this only if you want to check the class
- // Fighter Tattoo //
- /**
- * @param pvpKillCount
- */
- public void addItem(int pvpKillCount)
- {
- // Check if the character is Mage.
- if (isMageClass())
- return;
- if(Config.FIGHTER_TATTOO_ENABLE)
- {
- if (pvpKillCount == Config.PVP_COUNT)
- {
- addItem(Config.TATTOO_FIGHTER_ID);
- sendMessage("Congratulations! 100 PvP Kills! You won a Fighter tattoo.");
- }
- }
- }
- /**
- * @param pvpKillCountMage
- */
- private void addItemMage(int pvpKillCountMage)
- {
- // Check if the character is not mage and is adventurer.
- if(getClassId() == ClassId.adventurer)
- return;
- // Check if the character is sagittarius.
- if(getClassId() == ClassId.sagittarius)
- return;
- // Check if the character is duelist.
- if(getClassId() == ClassId.duelist)
- return;
- // Check if the character is titan.
- if(getClassId() == ClassId.titan)
- return;
- // Check if the character is grandKhauatari.
- if(getClassId() == ClassId.grandKhauatari)
- return;
- // Check if the character is phoenixKnight.
- if(getClassId() == ClassId.phoenixKnight)
- return;
- // Check if the character is moonlightSentinel.
- if(getClassId() == ClassId.moonlightSentinel)
- return;
- // Check if the character is dreadnought.
- if(getClassId() == ClassId.dreadnought)
- return;
- // Check if the character is hellKnight.
- if(getClassId() == ClassId.hellKnight)
- return;
- // Check if the character is evaTemplar.
- if(getClassId() == ClassId.evaTemplar)
- return;
- // Check if the character is shillienTemplar.
- if(getClassId() == ClassId.shillienTemplar)
- return;
- // Check if the character is shillienTemplar.
- if(getClassId() == ClassId.shillienTemplar)
- return;
- // Check if the character is ghostHunter.
- if(getClassId() == ClassId.ghostHunter)
- return;
- // Check if the character is ghostSentinel.
- if(getClassId() == ClassId.ghostSentinel)
- return;
- if(Config.MAGE_TATTOO_ENABLE)
- {
- if (pvpKillCountMage == Config.PVP_COUNT1)
- {
- addItem(Config.TATTOO_MAGE_ID);
- sendMessage("Congratulations! 100 PvP Kills! You won a Mage tattoo.");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement