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.

Contant errors

Featured Replies

Once I load up the latest jar all i constantly get is a message telling me that I cant make static references when i'm just using a method from the regular api. I get these errors constantly and they wont go away. I've seen others who wrote their code the same way so why am i getting the errors using eclipse btw set up as it should.

It sounds like you're using non-static API methods in static context.

This would imply doing something like this:

Inventory.getItems()

 

rather than the correct approach using an instance of the Inventory class

getInventory().getItems()

 

NOTE: That is if the current class inherits from a MethodProvider, which the Script class does.

  • Author

Post a snippet of the code in question with the relevant stack trace and we can try debug it for you.

startExp = Skills.getExperience(Skill.MAGIC);
Mouse.click(true);
Bank.open();

Here are some small examples all pulling the same static error I didnt know calling the bank open method could be a static method. Or I have picked up bad habits from other api's i've used.

 

Frost I didnt know there was such a difference in the wording there I never saw the getinventory only the inventory itself in the api.

 

Also while im here is there a equivlent to Game in you api such as Game.logout(false);

Edited by BloodRush20

startExp = Skills.getExperience(Skill.MAGIC);
Mouse.click(true);
Bank.open();

Here are some small examples all pulling the same static error I didnt know calling the bank open method could be a static method. Or I have picked up bad habits from other api's i've used.

 

Frost I didnt know there was such a difference in the wording there I never saw the getinventory only the inventory itself in the api.

 

Also while im here is there a equivlent to Game in you api such as Game.logout(false);

 

The api is not static.

Guest
This topic is now closed to further replies.

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.