Jump to content
Sign in to follow this  
Ateria

Get Slayer Task

Recommended Posts

Sorry, should've gone into more detail. I've already got the enchanted gem in the inventory, how would I parse the text from the chatbox after checking the kills left?


			if (getInventory().interact("Check", "Enchanted gem")) {
				log("Checked kills-left.");
				if (getChatbox().contains(MessageType.GAME, "You're assigned to kill")) {
					//parse the text
					return "Parsed text from chatbox?";
				}
			} else {
				log("Couldn't interact with enchanted gem.");
			}

 

Edited by Ateria

Share this post


Link to post
Share on other sites
7 minutes ago, Ateria said:

Sorry, should've gone into more detail. I've already got the enchanted gem in the inventory, how would I parse the text from the chatbox after checking the kills left?



			if (getInventory().interact("Check", "Enchanted gem")) {
				log("Checked kills-left.");
				if (getChatbox().contains(MessageType.GAME, "You're assigned to kill")) {
					//parse the text
					return "Parsed text from chatbox?";
				}
			} else {
				log("Couldn't interact with enchanted gem.");
			}

 

List<java.lang.String> getMessages(Chatbox.MessageType messageType)

try that (chatbox class)

Edited by dreameo
  • Like 1

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...