How Can I Detect a string of text in the RS chatbox?
I'm writing an item buyer script and I want it to hop worlds when the shop runs out of stock of that item. I noticed that the chatbox at the bottom of the game screen responds with "The shop has run out of stock," but I want my script to detect this and hop worlds after it pops up.
I suspect there's a built-in procedure for this, but I have yet to find it.
Any help is appreciated 
TL;DR - SOLUTION:
chat.GetChatBoxText(Line, TextCol: Integer) -returns a String of text on the specified line of the chatbox (1-8, 8 is bottom) with color TextCol
OR
chat.FindChatBoxText
Last edited by ToinCoss; 03-10-2015 at 07:33 PM.
Reason: post solution in original post for future readers
Toss the coin. Don't let the coin toss you.