1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

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

  1. greyb3ast

    Joined:
    Aug 7, 2015
    Messages:
    28
    Likes Received:
    3
    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. SlashnHax

    Joined:
    Dec 10, 2014
    Messages:
    3,198
    Likes Received:
    1,041
    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...