elliottdehn Posted April 22, 2015 Share Posted April 22, 2015 I'm trying to unnote essence on the bank chest in cwars and bankChest.interact() with the noted ess selected isn't cutitng it due to the boxes and players getting in the way. Any help? thanks. Quote Link to comment Share on other sites More sharing options...
Twin Posted April 22, 2015 Share Posted April 22, 2015 Entity bankChest = objects.closest("Bank chest"); inventory.interact("Use", "Pure essence"); if (inventory.isItemSelected() == true) bankChest.interact("Use"); Is this what you're looking for? Quote Link to comment Share on other sites More sharing options...
Khaleesi Posted April 22, 2015 Share Posted April 22, 2015 Entity bankChest = objects.closest("Bank chest"); inventory.interact("Use", "Pure essence"); if (inventory.isItemSelected() == true) bankChest.interact("Use"); Is this what you're looking for? Don't forget to null check the bankChest, also "== true" isn't needed 1 Quote Link to comment Share on other sites More sharing options...
Twin Posted April 22, 2015 Share Posted April 22, 2015 (edited) Don't forget to null check the bankChest, also "== true" isn't needed I just quickly wrote that so I wasn't thinking about null checking :p. Completely forgot though that just doing like if(dont) that would mean it's looking for dont to be true. Edited April 22, 2015 by twin 763 Quote Link to comment Share on other sites More sharing options...