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.

Are is interested to work with me? Al Kharid Warrior

Featured Replies

NEW TITE: 

Are you interested to work with me? Al Kharid Warrior

 

Hello i am working on my Al kharid warrior bot but i need someone who knows how to use STATES and making a form where you can type food you would like to eat and get from bank.

 

Right now my bot is a bit slower then kwarrior and i would like to improve that

 

My bot can:

    Attack Warrior

    Open doors if there is a warrior inside.

    Show info about Time,Xp and so on...

 

I Wish to:

    Go to Bank for food

    Having a form for the kind of food you would like to get in bank

   Faster or as fast as Kwarrior 

 

gUUJSI5.png

 

Edited by hajar424

So are you asking for someone to do the work for you? Look up how to use window builder/whatever jframe builder you prefer. Check to see if a warrior is around, and if he is, check if he's reachable, and if he's not reachable open the nearest door.

Look at pugs guide for learning paint, it's on the scripting help section, and I'm sure you can find a snippet on te scripting help forum for banking and walking a path.

For your GUI, look up JFrame.

For states:

public enum States {
    ATTACK, RUN, BANK
};

public States getState() {
    if (....) {
        return States.ATTACK;
    }
    return States.RUN;
}

public void onLoop() throws InterruptedException {
    switch (getState()) {
        case ATTACK: //Attack
            //code
            break;

        case RUN: //Run
            //code
            break;
        // repeat etc
    }
}
  • Author

 

For your GUI, look up JFrame.

For states:

public enum States {
    ATTACK, RUN, BANK
};

public States getState() {
    if (....) {
        return States.ATTACK;
    }
    return States.RUN;
}

public void onLoop() throws InterruptedException {
    switch (getState()) {
        case ATTACK: //Attack
            //code
            break;

        case RUN: //Run
            //code
            break;
        // repeat etc
    }
}

 I have already made a STAT but i have to improve it, i am not so good at Java

 

And i know JFrame i just dont know how to start with adding a button and implement it to my bot. What i need is someone who have time to just show me how to begin

Edited by hajar424

 I have already made a STAT but i have to improve it, i am not so good at Java

 

And i know JFrame i just dont know how to start with adding a button

 

Just about every IDE has a form designer, so you can drag and drop buttons.

Just look up "JFrame add components" or something :)

  • Author

Just about every IDE has a form designer, so you can drag and drop buttons.

Just look up "JFrame add components" or something smile.png

 i have used JFrame alot but the problem is how do i start..

Edited by hajar424

 i have used JFrame alot but the problem is how do i start..

 

You make the JFrame class, and then in the designer you literally drop the components you want on to the form. It's not that hard dude.


for GUI aka form its simple create a seperate class just for GUI which extends JFrame

public class GUI extends JFrame

{

//fields go here

//constructor

public GUI()

{

}

}

////on main script class in start method envoke the GUI class

An alternative to using a built in form designer is also creating your GUI from scratch using Java Swing components. Doing it this way allows a lot of room for customization, design, and teaches you how to build a Java Swing GUI. Look up "A visual guide to Swing Components" for reference/tuts smile.png

Create an account or sign in to comment

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.