Skip to content

Conversation

@cosmicspd
Copy link
Contributor

  • Retrieves orb data: HP, prayer, run energy, and special attack energy.
  • Adds XP counter detection.

- Retrieves orb data: HP, prayer, run energy, and special attack energy.
- Adds XP counter detection
*/
public static String getXp(BaseScript script) throws IOException {
Rectangle xpZone = script.controller().zones().getMinimap().get("totalXP");
return Ocr.extractText(xpZone, "Plain 12", ColourInstances.getByName("White"), true);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you swap this out to prevent lazy loading?

You can implement it like so :)

private static final ColourObj white = new ColourObj("White", new Scalar(0, 0, 255, 0), new Scalar(0, 0, 255, 0));

Copy link
Owner

@StaticSweep StaticSweep left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good changes and methodology used, approved.

@StaticSweep StaticSweep merged commit afef25d into StaticSweep:main Jan 12, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants