Maikie61 Posted August 7, 2015 Share Posted August 7, 2015 Hello there, Trying to make a local chinner, so I don't constantly have to look for my prayer myself, but the script can do this instead. However, I'm wondering how to enable QuickPrayers. I suppose it's something with RS2Widgets, but I don't really understand the parameters inside the constructors. So, how would I be able to activate Quick Prayers? (I know how to know whether it is activated or not, just need to know how to activate) Also, The best to use an Item, is it with using item.interact("Drink") for example or will that always Right Click and then click it? If so, how could I just click the item through the tab without right-clicking it first? Thank you in advance Quote Link to comment Share on other sites More sharing options...
Flamezzz Posted August 7, 2015 Share Posted August 7, 2015 Interact also left clicks.Finding widgets ids: http://osbot.org/forum/topic/79422-cook-all-option/?view=getlastpost 1 Quote Link to comment Share on other sites More sharing options...
Maikie61 Posted August 7, 2015 Author Share Posted August 7, 2015 Interact also left clicks. Finding widgets ids: http://osbot.org/forum/topic/79422-cook-all-option/?view=getlastpost Thank you. Much appreciated. Quote Link to comment Share on other sites More sharing options...
Apaec Posted August 7, 2015 Share Posted August 7, 2015 Either hardcore the prayers to actuvate and use the prayers class, or find the widget which it is. open widget debugger in the settings tab and hover over the quickprayer button to find the parent, child and grandchild ids. then you can just use: RS2Widget w = widgets.get(parentid,childid,grandchildid); or if there is only parent and child : RS2Widget w = widgets.get(parentid,childid); Quote Link to comment Share on other sites More sharing options...
iJodix Posted August 7, 2015 Share Posted August 7, 2015 Prayers api; http://osbot.org/api/org/osbot/rs07/api/Prayer.htmlYou don't have to use any widgets w/e. Quote Link to comment Share on other sites More sharing options...
Maikie61 Posted August 7, 2015 Author Share Posted August 7, 2015 RS2Widget quickPrayerWidget = widgets.get(160,18); if(quickPrayerWidget != null && quickPrayerWidget.isVisible()) { quickPrayerWidget.interact("Activate Quick-prayers"); } It hovers over it, but doesn't activate it. Quote Link to comment Share on other sites More sharing options...