Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package osiris.game.model.skills;
- import osiris.game.action.TickedAction;
- import osiris.game.model.Player;
- import osiris.game.model.Skills;
- import osiris.game.model.item.Item;
- public class Herblore {
- /* herb, requiredLevel, unfPot
- */
- int vialOfWater = 227;
- public enum Unf {
- ATTACK(249, 3, 91, 121), STRENGTH(253, 12, 95, 115), RESTORE(255, 22, 97, 127), ENERGY(255, 26, 97, 3010),
- DEFENCE(257, 30, 99, 133), PRAYER(257, 38, 99, 139), SUPERATTACK(259, 45, 101, 145), SUPERANTIPOISON(259, 48, 101, 181),
- SUPERENERGY(261, 52, 103, 3019), SUPERSTRENGTH(263, 55, 105, 157), WEAPONPOISON(263, 60, 105, 187),
- SUPERRESTORE(3000, 63, 3004, 3026), SUPERDEFENCE(265, 66, 107, 163), ANTIFIRE(2481, 69, 2483, 2454), RANGING(267, 72, 109, 169),
- MAGIC(2481, 76, 2483, 3042), SARADOMINBREW(2998, 81, 3002, 6687);
- private final int herbUsed;
- private final int requiredLevel;
- private final int unfPot;
- private final int realPot;
- private Unf(int herbUsed, int requiredLevel, int unfPot, int realPot) {
- this.herbUsed = herbUsed;
- this.requiredLevel = requiredLevel;
- this.unfPot = unfPot;
- this.realPot = realPot;
- }
- /* Gets herbUsed */
- public int getHerbUsed(){
- return herbUsed;
- }
- /* Gets requiredLevel*/
- public int getRequiredLevel(){
- return requiredLevel;
- }
- /* Gets unfPot */
- public int getUnfPot(){
- return unfPot;
- }
- /* Gets realPot */
- public int getRealPot(){
- return realPot;
- }
- }
- public static void makeUnfPot(){
- if(player.getSkills().currentLevel(Skills.SKILL_HERBLORE) < unf.requiredLevel) {
- player.getEventWriter().sendMessage("You need a herblore level of " + unf.requiredLevel + " to make this potion.");
- }
- }
- public void execute() {
- }
- }
Add Comment
Please, Sign In to add comment