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.

My Script won't start?

Featured Replies

Been having trouble trying to get my script to run the past few hours. It was working fine yesterday and earlier today. 

Does anyone know a potential cause for this? Is it the code? This is my first script and it was quickly getting messy, so I started over. Is the two failed things in the logger important? What causes them not to load? I wasn't getting that error earlier.

https://gyazo.com/f625440b253168a7ddf937d95075ae6b

In case it is the code that's causing it, here's the source code, its not finished yet. Any feedback would be appreciated since this is my first script.

https://github.com/Dab-in-a-Lab/Wilderness-Looter/blob/master/Wilderness Looter Source Code

  • Author
9 minutes ago, ThatGamerBlue said:

restart osbot client, sometimes this happens to me

I've tried that a couple times. This is the only script thats doing it to me too

put   RS2Object ditch = getObjects().closest("Wilderness Ditch");   and   GroundItem items = getGroundItems().closest(getDirectoryData() + getName() + File.separator + "osrs items.txt");

in your onloop. You shouldn't define RS2objects and Grounditems outside of your onloop this is causing your problem. Also i believe interactionevents need to be in your onloop since once there executed they expire (get the status finished) so they have to be created every loop (i could be wrong here) .

 

 

 

Edited by zwaffel

I think it's because you're initialising your variables at the same time as your declaring them.

Also I think there is a problem here: 

if (!getInventory().isFull()) ;{
  getWalking().webWalk(Wilderness);
  if (getWalking().webWalk(Wilderness))

Unless I'm missing what you're trying to do you should haven't a semi-colon after the first line, it should probably look more like this

if (!getInventory().isFull()) {

     if (!myPlayer().getPosition().equals(Wilderness)) {

          if (getWalking().webWalk(Wilderness) {

//conditional sleep until myPlayer().getPosition().equals(Wilderness)

          }

     }

     else {

          //loot

     } 

}

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.