Jump to content

matman

Members
  • Posts

    3
  • Joined

  • Last visited

  • Feedback

    0%

Profile Information

  • Gender
    Male

matman's Achievements

Newbie

Newbie (1/10)

0

Reputation

  1. Thanks both of you guys. I didn't even know those strings come with a color tag. Didn't see that coming. So when i insert the new action string with the color tag into the >>>>smelter.interact("Smelt X <col=ff9040>Silver"); <<<<<< it works!!!! But when i include the same string with the color tag into >>>>> menu.selectAction("Smelt X <col=ff9040>Silver"); <<<<< the cursor still doesn't work after right clicking on the widget....which is strange. So I guess there is some deeper issue with 'specifying the mouse click' method ? Anyway problem sorted now. Thanks a lot guys. Appreciate it.
  2. Hey thanks very much for your help. I checked the widget debugger for (root -311,child- 7) and it has null for both Actions and Options. So I guess this means the interact option won't work with this widget like you said? I tried this exact code you pasted but it only works upto the point where it right clicks on the widget. The cursor doesn't move onto the ''Smelt X'' option after right clicking. So I used another code to right click and select the ''smelt X' option like this: Entity Furnace = objects.closest(24009); Furnace.interact("Smelt"); sleep(random(1000, 2000)); RS2Widget smelter = getWidgets().getWidgetContainingText("Silver"); smelter.interact("Smelt X"); // *****mouse hovers over the widget at this point****** mouse.click(true); sleep(1000); if(menu.isOpen()) { menu.selectAction("Smelt X"); } mouse.click(false); But here again, it stops working properly after the mouse right clicks. The cursor doesn't go to the ''Smelt X'' option after right clicking. So I guess the >>> menu.selectAction("Smelt X"); <<<part is not working. Any other way other than the 'smelter.interact("Smelt X")' and 'specifying where to right click' methods ? If i can just get this part working, the whole script will run properly. Cheerio
  3. I am trying to smelt at the furnace in Al-Kharid. I use the following code (roughly) to smelt: Entity Furnace = objects.closest(24009); Furnace.interact("Smelt"); RS2Widget smelter = getWidgets().getWidgetContainingText("Silver"); smelter.interact("Smelt X"); The problem is it doesn't actually click on the ''smelt X'' option. It recognises the the correct part of the widget and hovers over the silver bar but doesn't actually right click and then click on the ''smelt x'' option. I am a noob to scripting. I don't generally understand the whole Widget thing. Any help would be appreciated. Cheers!
×
×
  • Create New...