hexx Posted March 25, 2020 Share Posted March 25, 2020 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 Quote Link to comment Share on other sites More sharing options...
Gunman Posted March 25, 2020 Share Posted March 25, 2020 @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. Quote Link to comment Share on other sites More sharing options...
hexx Posted March 26, 2020 Author Share Posted March 26, 2020 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 1 Quote Link to comment Share on other sites More sharing options...
Jueix Posted March 26, 2020 Share Posted March 26, 2020 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 . Quote Link to comment Share on other sites More sharing options...