Thanks got it to work at last, I was starting to go insane.
RS2Widget cookAll = getWidgets().getWidgetContainingText("Cook"); Do you mean something like that?
And btw, why doesn't isVisible work but checking if it's null does?
So I'm trying to make a simple cooking script that cooks in Al-kharid and everything is working smoothly except for one thing. The problem occurs when I'm trying to interact with the cook all widget. When the code looks like this the script presses on the fish and then on the range like five times before eventually pressing on cook all. I then tried to add an if statement to see if that would solve it:
if(!cookAll.isVisible()) {
getInventory().interact("Use", mat);
range.interact("Use");
sleep(1000);
}
else {
cookAll.interact("Cook");
sleep(1000);
//I guess I could use a conditional sleep here but thats not the problem
}
But when I do this the client freezes.
Maybe set a limit on how newly created the accounts may be in order to sell accs. If a 3 months limit is implemented I believe the ammount of scammers would reduce a lot.
It obviously wouldn't reduce the more reputable people who scam quits but that's another problem.
But if we make it harder only the "worst" guys will do it and thereby reduce the total amount.
1. Pictures of the account stats
http://i.imgur.com/PU983dS.jpg 2. Pictures of the login details
http://i.imgur.com/7tCxekw.png 3. Pictures of the total wealth (if there is any)
No wealth, It has dragon defender though 4. Pictures of the quests completed
Mountain daughter
tree gnome village
vampire slayer
fight arena
witch's house 5. The price you will be starting bids at
10m 6. The A/W (Auto-win) for your account
15m 7. The methods of payment you are accepting
07gp 8. Your trading conditions
You go first unless i deem you trustworthy 9. Pictures of the account status
http://i.imgur.com/oU3GRAC.png 10. Original/previous owners AND Original Email Address
I'm the original owner and it has no registered mail