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.

Grand Exchange issues

Featured Replies

I run a couple scripts that buy from the GE. I sometimes see a bug where the API types the name of the item to buy several times which confuses the script and it just hangs there until it disconnects. The bot logs back in and the scripts run normally from there but I was wondering if there was a way to say:

 

attempt to buy these items but if it doesn't happen in sixty seconds give up and close the GE window

 

Any help is appreciated.

If this is a script on the SDN, contact the script writer either by pm or posting on their thread. If this is a script you have made and are having issues, post code and show examples to help explain. If you believe this to be an bug, then post it in the client bugs section.

From my understanding of what you are saying, it seems you're using an SDN script so this isn't the appropriate place to ask this, if i'm wrong please elaborate.

Precise.

  • Author

They are scripts I have written, here is an example:

 

if (!myPlayer().isMoving()){
                        npcs.closest("Grand Exchange Clerk").interact("Exchange");
                        Script.sleep(Script.random(5000, 7000));
                        getGrandExchange().buyItem(1741, "Leather", 220, 59);
                        Script.sleep(Script.random(5000, 7000));
                        grandExchange.confirm();

                        }

 

 

 

Occasionally when looking for the leather the API types in

 

LeatherLeatherLeather

 

And the bot for some reason sees "Hard leather" as a better match, and buys a batch of Hard leather instead (although at that price it never gets bought), or doesn't see a match and just sits there

Edited by sudoinit6

50 minutes ago, sudoinit6 said:

They are scripts I have written, here is an example:

 

if (!myPlayer().isMoving()){
                        npcs.closest("Grand Exchange Clerk").interact("Exchange");
                        Script.sleep(Script.random(5000, 7000));
                        getGrandExchange().buyItem(1741, "Leather", 220, 59);
                        Script.sleep(Script.random(5000, 7000));
                        grandExchange.confirm();

                        }

 

 

 

Occasionally when looking for the leather the API types in

 

LeatherLeatherLeather

 

And the bot for some reason sees "Hard leather" as a better match, and buys a batch of Hard leather instead (although at that price it never gets bought), or doesn't see a match and just sits there

Try: grandExchange.buyItem(id, itm, price, quantity) Instead of using getgrandexchange.

It doesn't seem to screw up with me at all, is something wrong on your end?   However, I did not try it with leather or hard leather. I just tested my script out and it buys what it needs. Does this happen only with leather or not? If it only happens with leather, then it's a bug with the API. 

Edited by Satire

1 hour ago, Juggles said:

Yeah there is 

Awesome that's gonna be very useful.

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.