Jump to content

Get Slayer Task


Ateria

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
Link to comment
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
Link to comment
Share on other sites

  • Alek locked this topic
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...