Jump to content

multiple ints


BurritoBug

Recommended Posts

you expect to a SDN scripter to know everything?

 

thats was an Official Scripter is.

I disagree. Any SDN scripter should be the same caliber as an official scripter. The only difference is # of scripts one has

edit:

No I don't expect SDN scripter to know everything. Nor do I expect official scripter to know everything. Should both know at the very least the basics of java? Yes.

Edited by dreamliner
Link to comment
Share on other sites

or he could do:

 

RS2Interface Parent;
int[] ParentIDs = 1,2,3,4;
RS2InterfaceChild;
int[] ChildIDs = 5,6,7,8;

public boolean parentIsValid(){
    for(int i = 0; i < parent.length(); i++){
    if(client.getInterface(ParentIDs[i]).isVisible && client.getInterface(ParentIDs[i]).    isValid){
       return true;
   }
     
   }
return false;
}



   Loop(){
     if(parentIsValid){
      handleChildren();
     }else{
    //talk to that bitch;
   }

   }


public void handleChildren(){
//similar to handle children
}

Link to comment
Share on other sites

I disagree. Any SDN scripter should be the same caliber as an official scripter. The only difference is # of scripts one has

 

Thats your opinion, also its just that this is the first time i've had to use an array list, i learn as i go

 

or he could do:

 

RS2Interface Parent;
int[] ParentIDs = 1,2,3,4;
RS2InterfaceChild;
int[] ChildIDs = 5,6,7,8;

public boolean parentIsValid(){
    for(int i = 0; i < parent.length(); i++){
    if(client.getInterface(ParentIDs[i]).isVisible && client.getInterface(ParentIDs[i]).    isValid){
       return true;
   }
     
   }
return false;
}



   Loop(){
     if(parentIsValid){
      handleChildren();
     }else{
    //talk to that bitch;
   }

   }


public void handleChildren(){
//similar to handle children
}

 

this looks like you're doing it right :D

Link to comment
Share on other sites

Thats your opinion, also its just that this is the first time i've had to use an array list, i learn as i go

 

this looks like you're doing it right biggrin.png

oh wait im a dope XD

 

int[] parentIDs = 1,2,3,4;

public boolean parentIsValid{

  for(int i : parentIDs){
   if(client.getInterface(i).isValid || client.getInterface(i.isVisible){

     return true;
   
   }

  }
   return false;
}
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...