Jump to content

Extreme Scripts

Trade With Caution
  • Posts

    10702
  • Joined

  • Last visited

  • Days Won

    27
  • Feedback

    96.2%

Posts posted by Extreme Scripts

  1. I am not sure if I wrote enough antiban. It's in the fletching case so everytime my player is fletching he will do an antiban.

    My question is: Is this enough or shall i add more randoms/Antibans?

     

     

    Edited my post.

     

    With the implementation of the new AntiBot systems, i doubt the level of antiban you're talking about would make even the slightest of difference. Getting banned botting using skills like fletching is hit + miss, you're either lucky or you're not.

     

    I say just use the script.

  2. Hello community,

    this is my first OSBot 2 release in a bit. I've managed to stabilize many parts of the software and fixed some issues with legacy scripts and so on.

    • Patched the random event handler because it was broken.
    • The release features some refactoring with RandomBehaviourHooks and how they are identified. They now use enums in OSBot 2 instead of simple generic IDs.
    • The Script & Account selectors can now be closed by the X button on the top-right.
    • Improved CPU performance amongst random event solving.
    • Enhanced some inefficient code within the API and fixed bugs with bot contexts.
    • Fixed many issues with the OSBot 1 script emulator. Try and see if your OSBot 1 scripts work now!
    Download: http://osbot.org/osbot2_beta/OSBot-packed-2.0.15.jar

    API: http://osbot.org/osbot2_api/

    API (.zip): http://osbot.org/osbot2_api/Docs.zip

     

    Thanks,

    Sincerely,

    Laz and the OSBot Team.

     

     

    Thanks Laz, 

     

    Great update + good to hear emulator is being worked on :)

  3.  

    Here's your logic.

            private State getState() {
                    if (!isBusy()) {
                            if (!Inventory.containsAll(item1, item2) && !Bank.isOpen()) {
                                    return State.OPENBANK;
                            } else if (Bank.isOpen() && !Inventory.containsAll(item1, item2)) {
                                    return State.BANK;
                            } else if (Bank.isOpen() && Inventory.containsAll(item1, item2)) {
                                    return State.CLOSEBANK;
                            } else if (Inventory.containsAll(item1, item2) && !Bank.isOpen()) {
                                    return State.FLETCH;
                            }
                    }
                    return State.ANTIBAN;
            }

     

    So much unnecessary logic? :/ Doubt anyone ever puts open + close bank in their logic buddy

  4. This script will allow you to show what OSBot users are currently using your scripts via a website.

     

    Setup is required and you will need website hosting and a MySQL database.

     

    MySQL

     

    Create a MySQL database, write down all the connection information and then run the following query:

    CREATE TABLE `online` (`id` int(11) NOT NULL AUTO_INCREMENT, 
    `username` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
    `script` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
    `time` int(11) NOT NULL,
    `ip` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
    PRIMARY KEY (`id`)) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci
    

    PHP

     

    Upload the following package to your website and edit the 'include/database.php' file: http://uppit.com/8q7nlo4h998w/online.zip

    Note: Edit the key in the index.php file.

     

    Java 

     

    Add a class to your script called: Online.java

    and paste the following code in it: http://pastebin.com/raw.php?i=2j9TDdHW

    Note: Don't forget to edit the key and php information.

     

    Now, add the following imports to your script:

    import java.util.Timer;
    import java.util.TimerTask;
    

    Add the following at the start of your scripts class:

    Timer timer = new Timer();
    String script = "SCRIPT NAME";
    

    Add the following to the start of your onStart method:

    log(Online.add_user(client.getBot().getUsername(), script));
    		timer.scheduleAtFixedRate(new TimerTask() {
    			@Override
    			public void run() {
    				Online.add_user(client.getBot().getUsername(), script);
    			}
    		}, 0, 60000);
    

    And the following to your onExit method:

    log(Online.remove_user(client.getBot().getUsername(), script));
    timer.cancel();
    

    Usage!

    $online = json_decode(file_get_contents('http://YOURSITE.COM/online/index.php'), TRUE);
    
    //show every user and the script they are using
    foreach($online as $user) {
        echo $user['username'] . " : " . $user['script'];
    }
    
    //show total online user count
    echo count($online);
    

    Note!

     

    It's 3am, i'm tired and iv probably made a few mistakes.

    Please just post if you notice any errors or mistakes so i can get them sorted out.

     

     

    You didnt update the hyperlink dude :P

     

×
×
  • Create New...