Jump to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Woodcutting Axe Enum [Snippet]

Featured Replies


package org.bjornkrols.woodcutting;

import org.osbot.rs07.api.ui.Skill;

import org.osbot.rs07.script.Script;

/**

* @author Bjorn Krols (Botre)

* @version 0.1

* @since March 15, 2015

*/

public enum Axe {

BRONZE(1, 1),

IRON(1, 1),

STEEL(6, 5),

BLACK(6, 10),

MITHRIL(21, 20),

ADAMANT(31, 30),

RUNE(41, 40),

DRAGON(61, 60);

private final String name;

private final int requiredWoodcuttingLevel;

private final int requiredAttacklevel;

private Axe(final int requiredWoodcuttingLevel, final int requiredAttacklevel) {

String temp = super.toString().toLowerCase().concat(" axe");

name = Character.toUpperCase(temp.charAt(0)) + temp.substring(1);

this.requiredWoodcuttingLevel = requiredWoodcuttingLevel;

this.requiredAttacklevel = requiredAttacklevel;

}

public String getName() {

return name;

}

public int getRequiredWoodcuttingLevel() {

return requiredWoodcuttingLevel;

}

public boolean canUse(Script script) {

return requiredWoodcuttingLevel <= script.getSkills().getDynamic(Skill.WOODCUTTING);

}

public int getRequiredAttackLevel() {

return requiredAttacklevel;

}

public boolean canWield(Script script) {

return requiredAttacklevel <= script.getSkills().getDynamic(Skill.ATTACK);

}

@Override

public String toString() {

return getName();

}

}

Edited by Botre

  • Author

I'm not a fan of collecting and using animations. Get enumerates though

 

I got them from another site and it seems like they haven't changed in ages so I think they are relatively safe to use. isAnimating() isn't specific enough for some of my need so... :p

I got them from another site and it seems like they haven't changed in ages so I think they are relatively safe to use. isAnimating() isn't specific enough for some of my need so... tongue.png

care to explain more.

 

Because i know for my plunder its enough. Since there is a underAttack(), all the other animation is him thieving.

  • Author

care to explain more.

 

Because i know for my plunder its enough. Since there is a underAttack(), all the other animation is him thieving.

 

I can't think of an example other than being attacked tbh.

Better safe than sorry I guess :x

I can't think of an example other than being attacked tbh.

Better safe than sorry I guess :x

true especially since it was found data. If i had to collect them i would just die

  • 2 weeks later...

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.