Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!

Question How to do things till full inventory? In Looping script

Joined
Aug 7, 2015
Messages
28
So lets say i am woodcutting if i want full inventory i just use this thing in TaskScript :
@Overridepublic boolean validate() {
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?

 
Joined
Dec 10, 2014
Messages
3,332
So lets say i am woodcutting if i want full inventory i just use this thing in TaskScript :
@Overridepublic boolean validate() {
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?

Code:
if(!Inventory.isFull()){
    //dostuff
}

I suggest looking at some java tutorials to learn the basics of java, and to get a feel for the language.
 
Top