- Thread Author
- #1
So lets say i am woodcutting if i want full inventory i just use this thing in TaskScript :
But i cant use return in Looping script? Is there any way to change this code so i can put it in Loopingscript?
@Overridepublic boolean validate() {
return Players.getLocal().getAnimationId() == -1 && !Inventory.isFull() && !GameObjects.newQuery().names("Willow").actions("Chop down").results().isEmpty();}
return Players.getLocal().getAnimationId() == -1 && !Inventory.isFull() && !GameObjects.newQuery().names("Willow").actions("Chop down").results().isEmpty();}
But i cant use return in Looping script? Is there any way to change this code so i can put it in Loopingscript?