Jump to content

Grand Exchange issues


Recommended Posts

Posted

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.

Posted

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.

Posted (edited)

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
Posted (edited)
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...