Advertisement
Guest User

Check for class

a guest
Feb 1st, 2015
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.20 KB | None | 0 0
  1. L2PcInstance.java
  2.  
  3. put this only if you want to check the class
  4.  
  5.  
  6. // Fighter Tattoo //
  7.  
  8. /**
  9. * @param pvpKillCount
  10. */
  11. public void addItem(int pvpKillCount)
  12. {
  13. // Check if the character is Mage.
  14. if (isMageClass())
  15. return;
  16.  
  17. if(Config.FIGHTER_TATTOO_ENABLE)
  18. {
  19. if (pvpKillCount == Config.PVP_COUNT)
  20. {
  21. addItem(Config.TATTOO_FIGHTER_ID);
  22. sendMessage("Congratulations! 100 PvP Kills! You won a Fighter tattoo.");
  23. }
  24. }
  25. }
  26.  
  27. /**
  28. * @param pvpKillCountMage
  29. */
  30. private void addItemMage(int pvpKillCountMage)
  31. {
  32. // Check if the character is not mage and is adventurer.
  33. if(getClassId() == ClassId.adventurer)
  34. return;
  35.  
  36. // Check if the character is sagittarius.
  37. if(getClassId() == ClassId.sagittarius)
  38. return;
  39.  
  40. // Check if the character is duelist.
  41. if(getClassId() == ClassId.duelist)
  42. return;
  43.  
  44. // Check if the character is titan.
  45. if(getClassId() == ClassId.titan)
  46. return;
  47.  
  48. // Check if the character is grandKhauatari.
  49. if(getClassId() == ClassId.grandKhauatari)
  50. return;
  51.  
  52. // Check if the character is phoenixKnight.
  53. if(getClassId() == ClassId.phoenixKnight)
  54. return;
  55.  
  56. // Check if the character is moonlightSentinel.
  57. if(getClassId() == ClassId.moonlightSentinel)
  58. return;
  59.  
  60. // Check if the character is dreadnought.
  61. if(getClassId() == ClassId.dreadnought)
  62. return;
  63.  
  64. // Check if the character is hellKnight.
  65. if(getClassId() == ClassId.hellKnight)
  66. return;
  67.  
  68. // Check if the character is evaTemplar.
  69. if(getClassId() == ClassId.evaTemplar)
  70. return;
  71.  
  72. // Check if the character is shillienTemplar.
  73. if(getClassId() == ClassId.shillienTemplar)
  74. return;
  75.  
  76. // Check if the character is shillienTemplar.
  77. if(getClassId() == ClassId.shillienTemplar)
  78. return;
  79.  
  80. // Check if the character is ghostHunter.
  81. if(getClassId() == ClassId.ghostHunter)
  82. return;
  83.  
  84. // Check if the character is ghostSentinel.
  85. if(getClassId() == ClassId.ghostSentinel)
  86. return;
  87.  
  88. if(Config.MAGE_TATTOO_ENABLE)
  89. {
  90. if (pvpKillCountMage == Config.PVP_COUNT1)
  91. {
  92. addItem(Config.TATTOO_MAGE_ID);
  93. sendMessage("Congratulations! 100 PvP Kills! You won a Mage tattoo.");
  94. }
  95. }
  96. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement