GreenTruck 37 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.
Hopewelljnj 46 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.
GreenTruck 37 Author Posted June 3, 2016 i don't see "Dialogue" in the api, i see Dialog, which i can't get getText out of.
Cardozz 46 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
Hopewelljnj 46 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.
Cardozz 46 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?
Dogerina 330 Posted June 3, 2016 loop http://dreambot.org/javadocs/org/dreambot/api/methods/dialogues/Dialogues.html#getOptions--
GreenTruck 37 Author 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")
Recommended Posts
Archived
This topic is now archived and is closed to further replies.