abdulr 0 Share Posted January 2, 2019 How can i withdraw item using second name e.g. insead of "iron axe" - " axe" or something like that i want to withdraw an axe from the bank but not a specific axe Link to comment Share on other sites More sharing options...
Pseudo 179 Share Posted January 2, 2019 getBanking.withdrawAll(i -> i != null && i.getName().contains(string)) Link to comment Share on other sites More sharing options...
abdulr 0 Author Share Posted January 2, 2019 37 minutes ago, Pseudo said: getBanking.withdrawAll(i -> i != null && i.getName().contains(string)) THANK YOU SO MUCH Link to comment Share on other sites More sharing options...
abdulr 0 Author Share Posted January 2, 2019 1 hour ago, Pseudo said: getBanking.withdrawAll(i -> i != null && i.getName().contains(string)) how can i check if my inventory contains the item using the second item name ^ same as the bank but inventory version now Link to comment Share on other sites More sharing options...
Pseudo 179 Share Posted January 2, 2019 getInventory.get(i -> ... Pretty self explanatory.. Link to comment Share on other sites More sharing options...
abdulr 0 Author Share Posted January 2, 2019 12 minutes ago, Pseudo said: getInventory.get(i -> ... Pretty self explanatory.. getting an error here getInventory().get(i -> i != null && i.interact("Skills necklace(", "Rub")); Link to comment Share on other sites More sharing options...
Pseudo 179 Share Posted January 2, 2019 33 minutes ago, abdulr said: getting an error here getInventory().get(i -> i != null && i.interact("Skills necklace(", "Rub")); Not to be rude but you ought to really learn some java before scripting. Item item = getInventory().get(() -> i != null && i.getName().contains("necklace")); Link to comment Share on other sites More sharing options...
sr24 25 Share Posted January 2, 2019 3 hours ago, Pseudo said: Not to be rude but you ought to really learn some java before scripting. Item item = getInventory().get(() -> i != null && i.getName().contains("necklace")); https://www.codecademy.com/ gives a good free, toes wet, approach to learning java. you don't dive in depth to anything but learn a little of most useful things. https://www.retailmenot.com/view/udemy.com <--- tons of free courses available w/ promo codes. Including a Java for Noobs course: https://www.udemy.com/java-for-noobs-go-from-noob-to-semi-noob-noob-coder/ . This course looks to give a little bit more depth then the code academy one. Again, those two options are currently free A good paid version ($9.99 at the time of writing this) https://www.udemy.com/java-the-complete-java-developer-course/ Great Java class with tons of interaction, practice tests recapping each lesson and over all exercises going over the series of lessons you learned in that segment. These are all tools available to help, hopefully you enjoy them. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.