Jump to content

Grand Exchange issues


sudoinit6

Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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