1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20:
if (drawSword) { if (currentMap == 1) { if (spawnX == 13 && spawnY == 7) { drawSword = false; draw = "drawSword"; currentItem = "3"; try { addInv(3); } catch (Exception ere) {t ere.printStackTrace(); } } } }
1: 2: 3: 4:
} else if (myCommand == "pickup") { //int theirTile = board[spawnY][spawnX]; os.println(me.getUsername() + "|" + currentItem + "|" + draw + "|"+ theirTile + "|pickup"); }
1: 2: 3: 4: 5: 6: 7: 8: 9: 10:
if ("pickup".equalsIgnoreCase(temp[4])) { c.append("\n"+temp[0] + "|" + temp[1] + "|" + temp[2] + "|" + temp[3] + "|" + temp[4]); //int changeX = Integer.parseInt(temp[1]); //int changeY = Integer.parseInt(temp[2]); //board[changeY][changeX] = 4; int theItem = Integer.parseInt(temp[1]); c.append("\n"+temp[0] + " picked up a " + getItem(theItem)[0]+"."); Boolean.parseBoolean(temp[2]) = false; // drawSword = false? }
1: 2: 3: 4: 5: 6: 7: 8:
C:\wamp\www\mystikrpg\tileGen.java:428: unexpected type required: variable found : value Boolean.parseBoolean(temp[2]) = false; // drawSword = false? ^ 1 error Tool completed with exit code 1
1: 2: 3: 4: 5:
boolean which = Boolean.parseBoolean(temp[2]); // Or temp[2] = "false";