Jump to content

Cooking


Recommended Posts

Posted

I'm building a cooking script and I have a few questions to get myself setup.
Firstly, I need to combine ingredients on a range. That's done with widgets right?
Second, I want to make sure I don't do anything while I'm cooking on the range, whats the easiest way of making sure I don't do anything while I'm cooking? I am only familiar with the isAnimating() method. Is that it?

cheers

Posted

@hexx Assuming you're the same person in the discord who asked the same thing.

https://osbot.org/api/org/osbot/rs07/api/Inventory.html
In the inventory API ^ there's 2 methods

getInventory().isItemSelected();
getInventory().getSelectedItemName();

And the person in the discord needed to make pies and pizzas. You just make a conditions checking an the item is selected, and the name equals the said ingredient, for the other said ingredient you want to combine. Doing more than 2 item combinations can get confusing. Widget may pop up for this I don't remember.


https://osbot.org/api/org/osbot/rs07/api/Widgets.html
Interacting with the Range should bring up some widgets what you wanna cook and etc. Then you interact with that widget whether you press space or clicking. Then for sleeping you could use an animation timer, or wait till you're out of the ingredients || a level up.

Posted
21 hours ago, Gunman said:

@hexx Assuming you're the same person in the discord who asked the same thing.

https://osbot.org/api/org/osbot/rs07/api/Inventory.html
In the inventory API ^ there's 2 methods


getInventory().isItemSelected();
getInventory().getSelectedItemName();

And the person in the discord needed to make pies and pizzas. You just make a conditions checking an the item is selected, and the name equals the said ingredient, for the other said ingredient you want to combine. Doing more than 2 item combinations can get confusing. Widget may pop up for this I don't remember.


https://osbot.org/api/org/osbot/rs07/api/Widgets.html
Interacting with the Range should bring up some widgets what you wanna cook and etc. Then you interact with that widget whether you press space or clicking. Then for sleeping you could use an animation timer, or wait till you're out of the ingredients || a level up.

Brilliant, thankyou so much. The widget stuff is just confusing to be honest. I just need to make pizza and I know there are a lot of ingredients involved that need combining. So I just need to interact with the range. I can figure out how to do that easily enough. Thats brilliant thankyou, might have to join the discord

  • Like 1
Posted
1 hour ago, hexx said:

Brilliant, thankyou so much. The widget stuff is just confusing to be honest. I just need to make pizza and I know there are a lot of ingredients involved that need combining. So I just need to interact with the range. I can figure out how to do that easily enough. Thats brilliant thankyou, might have to join the discord

Better not be stealing my gnome restaurant bot farm, I have so much ingredients to add (I only have the batta's added to my script for now but it runs them to all gnomes in game) The making of the items is also what i'm struggling with :)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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