I am trying to create an array and if items in that array exist, withdraw them from the bank.
If I create the array:
String[] items = new String[] {"Coins", "Death rune"};
How do I withdraw any items that exist in the array from the bank?
if (bank.isOpen()){
bank.withdrawAll(items);
}
this is the wrong answer ;) Anyone help me with the correct answer?
I can attest that some proxy IPs get locked by jagex. I have a ...special situation and I can reset the IP of my proxy provider whenever I want. Some days every account on that proxy gets locked shortly after tut island using my own script or even if I do it by hand.
Bounce the proxy to get a new IP and the problem goes away. I can only speak from my experience but if the accounts get locked ~20 min after tut island the problem is the proxy being flagged.
I should have added that the second interact is definitely working, the "How many would you like to make?" window appears.
But after that nothing, the debug never shows in the log it just waits till the next loop and starts the interacts again.
I have used this syntax before but for some reason this isn't working. It never gets beyond the second interact and then it loops back and starts again never making any shells.
script.inventory.getItem("Pie dish").interact("Use");
Script.sleep(Script.random(2000, 3000));
script.inventory.getItem("Pastry dough").interact("Use");
Script.sleep(Script.random(800, 1500));
script.log("debug 1");
It never gets to writing to the log (or any other action I put there).
Any idea what I am doing wrong?
Meh, I am still learning the ropes so no biggie, in the future I will definitely test and complain earlier
So I am in the states, does this mean that the fix probably wont be done "tonight"?
edit: Oh and if there is any other info you need about my setup to troubleshoot let me know.
Yeah, I downloaded it and had the same issue but I just assumed I had to enable some dev mode or something in order to get it to work so I just went back to the normal client.
Now I know better
Actually, before I used my own scripts I used windows task manager to do the job. The tut island script I used averaged about 15 minutes so I would launch it, and 20 minutes later run another batch file that killed java and launched the woodcutting script I was using. It was ghetto but it worked.
Yeah, yeah, I am working on it, but it won't help after smelting the bronze, that happens every time. Obviously there is a fix, I just haven't figured it out yet.
I this to the beginning of the next class: am having an issue where in tut island "You made a bronze bar! click to continue" shows up after smelting. It also happens from time to time when the script misclicks. I am trying to find the misclicks, but after smelting it is killing me.
I tried adding this to the beginning of the next class:
// if
// (script.widgets.getWidgetContainingText(162,"Click to continue").isVisible()){
// script.log("I see the widget Click to continue");
// RS2Widget w = script.getWidgets().getWidgetContainingText(162,
// "Click to continue");
// w.hover();
// script.mouse.click(false);
// }
But it basically crashes the script (grinds to a halt and I have to use task manager to kill the app).
I tried researching the issue here and I saw some talk about it but was unable to find a working solution.
Any advice?
How many bots can be run on a system like this:
https://www.newegg.com/Product/Product.aspx?Item=N82E16856158036R
And what processor would you go with?
Thanks both of you. The issue wasn't related to the bot, in all cases it came down to PEBKAC.
Thanks for your support, this script is so annoying to write!