Hi guys, I recently started writing my own script that lets me cook things in Al Kharid. This is what I have so far:
case COOKING:
RS2Object stove = objects.closest("Range");
inventory.getItems()[2].interact("Use");
sleep(random(200,300));
stove.interact();
if(getDialogues().isPendingOption()){
RS2Widget range = getWidgets().get(307, 162);
if(range.isVisible()){
range.interact("Cook all");
sleep(10000);
I have no idea what Widgets are but I tried following this guy's advice: http://osbot.org/forum/topic/77995-how-to-right-click-select-cook-all/
I tried following his code but all this does is keep using my trout on the stove. When I use the item on the stove, the dialogue box changes and a picture of the food i'm trying to cook shows up. I need to right click the picture of the food in the dialogue box and then hit "Cook all". Thanks ahead of time for your help!!