August 7, 201510 yr 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
August 7, 201510 yr Interact also left clicks.Finding widgets ids: http://osbot.org/forum/topic/79422-cook-all-option/?view=getlastpost
August 7, 201510 yr Author Interact also left clicks. Finding widgets ids: http://osbot.org/forum/topic/79422-cook-all-option/?view=getlastpost Thank you. Much appreciated.
August 7, 201510 yr 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);
August 7, 201510 yr Prayers api; http://osbot.org/api/org/osbot/rs07/api/Prayer.htmlYou don't have to use any widgets w/e.
August 7, 201510 yr Author 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.
Create an account or sign in to comment