Jump to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

multiple ints

Featured Replies

int x, y, z = 30;

.. or

 

List<Integer> int_list = new ArrayList<Integer>();
int_list.add(10);
int_list.add(20);
int_list.add(35);
int_list.add(22);
.. or

int[] int_array = {0,2,4,6};

Edited by dreamliner

  • Author

int x, y, z = 30;

.. or

 

List<Integer> int_list = new ArrayList<Integer>();
int_list.add(10);
int_list.add(20);
int_list.add(35);
int_list.add(22);

 

ill try the second method thanks

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

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
}

  • Author

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

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

Welcome to the wonderful world of arrays and lists! Now every script you make will be filled with them tongue.png

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;
}

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

public boolean parentIsValid() {

boolean result = false;

for(int i : parentIDs){

if(client.getInterface(i).isValid() || client.getInterface(i.isVisible()){

result = true;

break;

}

}

return result;

}

Edited by dreamliner

Guest
This topic is now closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.