Guest User

Untitled

a guest
Oct 21st, 2017
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.78 KB | None | 0 0
  1. package osiris.game.model.skills;
  2.  
  3.  
  4. import osiris.game.action.TickedAction;
  5. import osiris.game.model.Player;
  6. import osiris.game.model.Skills;
  7. import osiris.game.model.item.Item;
  8.  
  9. public class Herblore {
  10.  
  11. /* herb, requiredLevel, unfPot
  12. */
  13. int vialOfWater = 227;
  14.  
  15. public enum Unf {
  16. ATTACK(249, 3, 91, 121), STRENGTH(253, 12, 95, 115), RESTORE(255, 22, 97, 127), ENERGY(255, 26, 97, 3010),
  17. DEFENCE(257, 30, 99, 133), PRAYER(257, 38, 99, 139), SUPERATTACK(259, 45, 101, 145), SUPERANTIPOISON(259, 48, 101, 181),
  18. SUPERENERGY(261, 52, 103, 3019), SUPERSTRENGTH(263, 55, 105, 157), WEAPONPOISON(263, 60, 105, 187),
  19. SUPERRESTORE(3000, 63, 3004, 3026), SUPERDEFENCE(265, 66, 107, 163), ANTIFIRE(2481, 69, 2483, 2454), RANGING(267, 72, 109, 169),
  20. MAGIC(2481, 76, 2483, 3042), SARADOMINBREW(2998, 81, 3002, 6687);
  21.  
  22. private final int herbUsed;
  23. private final int requiredLevel;
  24. private final int unfPot;
  25. private final int realPot;
  26.  
  27. private Unf(int herbUsed, int requiredLevel, int unfPot, int realPot) {
  28. this.herbUsed = herbUsed;
  29. this.requiredLevel = requiredLevel;
  30. this.unfPot = unfPot;
  31. this.realPot = realPot;
  32. }
  33.  
  34. /* Gets herbUsed */
  35. public int getHerbUsed(){
  36. return herbUsed;
  37. }
  38.  
  39. /* Gets requiredLevel*/
  40. public int getRequiredLevel(){
  41. return requiredLevel;
  42. }
  43.  
  44. /* Gets unfPot */
  45. public int getUnfPot(){
  46. return unfPot;
  47. }
  48.  
  49. /* Gets realPot */
  50. public int getRealPot(){
  51. return realPot;
  52. }
  53.  
  54. }
  55.  
  56. public static void makeUnfPot(){
  57. if(player.getSkills().currentLevel(Skills.SKILL_HERBLORE) < unf.requiredLevel) {
  58. player.getEventWriter().sendMessage("You need a herblore level of " + unf.requiredLevel + " to make this potion.");
  59. }
  60. }
  61.  
  62. public void execute() {
  63.  
  64. }
  65.  
  66.  
  67.  
  68. }
Add Comment
Please, Sign In to add comment