Jump to content

Cooking


hexx

Recommended Posts

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

Link to comment
Share on other sites

@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.

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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 :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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