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

Discussion in 'Developer Support' started by greyb3ast, Aug 28, 2015.

  1. 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 bot? Is there any way to change this code so i can put it in Loopingscript?

     
  2. Code (Text):
    1.  
    2. if(!Inventory.isFull()){
    3.     //dostuff
    4. }
    5.  
    I suggest looking at some java tutorials to learn the basics of java, and to get a feel for the language.
     

Share This Page

Loading...