LoudPacks Posted August 30, 2015 Share Posted August 30, 2015 (edited) EDIT: Solved Edited August 30, 2015 by Chris1665 Link to comment Share on other sites More sharing options...
Precise Posted August 30, 2015 Share Posted August 30, 2015 if you removed this line: profit = ((players.getInventory().getItem("coins").getAmount()) + (242 * players.getInventory().getItem("Nature rune").getAmount())) - ((startNats * 242) + startGP); does it fix it? Link to comment Share on other sites More sharing options...
LoudPacks Posted August 30, 2015 Author Share Posted August 30, 2015 (edited) if you removed this line: profit = ((players.getInventory().getItem("coins").getAmount()) + (242 * players.getInventory().getItem("Nature rune").getAmount())) - ((startNats * 242) + startGP); does it fix it? just removed that, it still doesn't. EDIT: I fixed it by changing my getState method and changing some loop logic: private State getState() { if (mes.contains("treasure")) { return State.WAIT; } return State.STEAL; } Edited August 30, 2015 by Chris1665 Link to comment Share on other sites More sharing options...