Skip 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.

Shopping Script - DCing frequently after hopping

Featured Replies

Screenshot of logger - http://imgur.com/a/ib51x

Code - http://pastebin.com/GAsVZDsB

 

Script does what i wanted it to, but it occasionally starts dcing after a couple hops. This seriously lowers the profit per hour, so if anyone has any ideas on how to fix this, i would love to hear them. 

 

Thanks to anyone who takes a look, much appreciated. 

 

PS. I'm not running any other scripts at the same time, and it happens even when i'm not logged into my main on OSBuddy.

Screenshot of logger - http://imgur.com/a/ib51x

Code - http://pastebin.com/GAsVZDsB

 

Script does what i wanted it to, but it occasionally starts dcing after a couple hops. This seriously lowers the profit per hour, so if anyone has any ideas on how to fix this, i would love to hear them. 

 

Thanks to anyone who takes a look, much appreciated. 

 

PS. I'm not running any other scripts at the same time, and it happens even when i'm not logged into my main on OSBuddy.

 

if you hop between worlds too often, runescape automatically logs you out when you continue hopping. if i were you, i'd try to find a way to make the time in between hops a little longer, so it wont happen as much.

  • Author

if you hop between worlds too often, runescape automatically logs you out when you continue hopping. if i were you, i'd try to find a way to make the time in between hops a little longer, so it wont happen as much.

Yeah its likely that is the issue, i do have several different methods of slowing it down in the script such as 

 int timesBought = 0;



 if(getStore().getAmount("Death rune") >= 1) { // This is part of my shop code
      getStore().buy("Death rune", 10);                      
      timesBought++;
 } 



 if(timesBought <= 8) { // This is just before hopping
      sleep(random(1000,3000));
 }
 timesBought = 0;


 

I'll try making the sleeps much larger to see what effect it has. 

 

I was kinda hoping someone would have some sort of miracle method to help me circumvent this haha. I mean the script does what i want it to, so im still happy, it would just be cool to improve the efficiency.

 

EDIT: I've set it up so it's sleeping for 4-8 seconds if 'timesBought <= 8' (times bought is increased by one each time the script buys 10 of something, and is reset to 0 after a hop). This seems to have solved the problem more or less. 

 

Is there a better way to do this? Perhaps with less of a delay, but still circumventing the dcing issue? 

 

EDIT: Jokes problem still happening haha, less often tho with the long ass delays.

Edited by PlagueDoctor

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

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.