sudoinit6 Posted January 27, 2017 Posted January 27, 2017 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.
Precise Posted January 28, 2017 Posted January 28, 2017 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.
sudoinit6 Posted January 29, 2017 Author Posted January 29, 2017 (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 January 29, 2017 by sudoinit6
Satire Posted January 29, 2017 Posted January 29, 2017 (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 January 29, 2017 by Satire
Juggles Posted January 29, 2017 Posted January 29, 2017 1 hour ago, Magarac said: Is there a whole G.E. API? Sorry am new. Yeah there is
Magarac Posted January 29, 2017 Posted January 29, 2017 1 hour ago, Juggles said: Yeah there is Awesome that's gonna be very useful.