zBots 0 Posted August 6, 2016 [Resolved, Thanks for the replies] Hi, I'm looking how to read chat messages from the chatbox so then if a certain message is received, for example if someone were to type "Hello <name>" in the chat i would be able to detect it for execution of code on the condition that the specific string has been detected in the chatbox Thanks- zBots
zBots 0 Author Posted August 6, 2016 MessageListener in the docs I don't understand how to use the MessageListener to actually get a specific string from the chatbox
Diddy 265 Posted August 6, 2016 Implement MessageListener (you put that after extends AbstractScript)
Mad 86 Posted August 7, 2016 You implement the interface, it will then execute when a message is recieved, passing through a Message object, which contains info about the message such as its contents. http://dreambot.org/javadocs/org/dreambot/api/wrappers/widgets/message/Message.html
Cardozz 46 Posted August 7, 2016 Beware that most people don't type your full name, or a name at all lol
Recommended Posts
Archived
This topic is now archived and is closed to further replies.