Ateria Posted March 27, 2018 Share Posted March 27, 2018 (edited) How could I get the players current slayer task? Edited March 27, 2018 by Ateria Link to comment Share on other sites More sharing options...
Chris Posted March 27, 2018 Share Posted March 27, 2018 using the gem in game 1 Link to comment Share on other sites More sharing options...
Unclaimed Posted March 27, 2018 Share Posted March 27, 2018 enchanted gem. Get it from a slayer master. Link to comment Share on other sites More sharing options...
Ateria Posted March 27, 2018 Author Share Posted March 27, 2018 (edited) 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 March 27, 2018 by Ateria Link to comment Share on other sites More sharing options...
dreameo Posted March 27, 2018 Share Posted March 27, 2018 (edited) 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 March 27, 2018 by dreameo 1 Link to comment Share on other sites More sharing options...
Ateria Posted March 27, 2018 Author Share Posted March 27, 2018 (edited) 15 minutes ago, dreameo said: List<java.lang.String> getMessages(Chatbox.MessageType messageType) try that (chatbox class) Thanks Edited March 27, 2018 by Ateria 1 Link to comment Share on other sites More sharing options...