GreenTruck 37 Share Posted June 3, 2016 Is this existant? if not, can it be added? Dialogues and widgets don't like each other, and rs just shuffled the widgets i sued, so i have to redo all of them, what's an alternative way to get text from a dialogue (not chat, and not option) just a dialogue, such as quest, npc answer. etc. Link to comment Share on other sites More sharing options...
Hopewelljnj 46 Share Posted June 3, 2016 Just a plain Dialogue.getText() that would return the message above the options as a String. Or String[] if you want lines(not sure why would would but idk. Link to comment Share on other sites More sharing options...
GreenTruck 37 Author Share Posted June 3, 2016 i don't see "Dialogue" in the api, i see Dialog, which i can't get getText out of. Link to comment Share on other sites More sharing options...
Rabrg 83 Share Posted June 3, 2016 what do u want it for ive never needed it Link to comment Share on other sites More sharing options...
Cardozz 46 Share Posted June 3, 2016 There used to be one, but as far as i can remember it was removed. You can get text through the widget tool too. Just get the widget for the dialog box and extract the text from there. I've done this before, if you need help with it contact me Link to comment Share on other sites More sharing options...
Hopewelljnj 46 Share Posted June 3, 2016 There used to be one, but as far as i can remember it was removed. You can get text through the widget tool too. Just get the widget for the dialog box and extract the text from there. I've done this before, if you need help with it contact me I've done it multiple times. The issue is Widgets change so the script would break every time they did. It'd be nice to have an API method to grab that widget(which is already technically grabbed) so the script won't break every time the widget ids do. Link to comment Share on other sites More sharing options...
Cardozz 46 Share Posted June 3, 2016 I've done it multiple times. The issue is Widgets change so the script would break every time they did. It'd be nice to have an API method to grab that widget(which is already technically grabbed) so the script won't break every time the widget ids do. Does the chatbox widget also change? Link to comment Share on other sites More sharing options...
Dogerina 330 Share Posted June 3, 2016 loop http://dreambot.org/javadocs/org/dreambot/api/methods/dialogues/Dialogues.html#getOptions-- Link to comment Share on other sites More sharing options...
GreenTruck 37 Author Share Posted June 3, 2016 getOptions gets the choices if the npc gives you choice ( 1 , 2, 3, 4 ) etc, getOptions doesn't pick regular npc text does it? , And exactly, like hope said, it would be nice if we'd have it added instead of playing with widgets that often change. Something if getDialogues(),contains("you have gained") Link to comment Share on other sites More sharing options...
Rabrg 83 Share Posted June 3, 2016 why are u even trying to use it tho rly doubt u need to Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.