Jump to content

Eliot

$100.00 Donor
  • Posts

    4523
  • Joined

  • Last visited

  • Days Won

    10
  • Feedback

    100%

Posts posted by Eliot

  1. In this video, I write the beginnings of an "AIO" Fighter script which can be extended in future videos. Feel free to use the source code for any purpose.

    Source code:

    import org.osbot.rs07.api.model.Item;
    import org.osbot.rs07.api.model.NPC;
    import org.osbot.rs07.script.Script;
    import org.osbot.rs07.script.ScriptManifest;
    import org.osbot.rs07.utility.ConditionalSleep;
    
    import java.util.Arrays;
    
    @ScriptManifest(name = "10MinFighter", version = 1.0, info = "", author = "", logo = "")
    public class Driver extends Script {
        String npcName;
    
        @Override
        public int onLoop() throws InterruptedException {
            // 1. decide which type of npcs to attack
            if (npcName == null) {
                if (myPlayer().getInteracting() != null) {
                    npcName = myPlayer().getInteracting().getName();
                } else {
                    return 500;
                }
            }
            // 2. attack them
            if (!myPlayer().isAnimating() && myPlayer().getInteracting() == null) {
                NPC next = getNpcs().closest(npc -> npc.getName().equals(npcName) &&
                        npc.isAttackable() && !npc.isUnderAttack() &&
                        npc.getInteracting() == null);
                if (next != null) {
                    next.interact("Attack");
                    new ConditionalSleep(5000) {
                        @Override
                        public boolean condition() throws InterruptedException {
                            return myPlayer().getInteracting() != null;
                        }
                    }.sleep();
                }
            }
            // 3. eat food so we don't die
            if (myPlayer().getHealthPercent() < 50) {
                Item food = getInventory().getItem(item ->
                        Arrays.asList(item.getActions()).contains("Eat"));
                if (food != null) {
                    food.interact("Eat");
                    sleep(2500);
                }
            }
            // 4. (optional) loot and bank
            return 500;
        }
    }

    Previous tutorial: 

     

     

    • Like 13
    • Heart 1
    • Mald 1
  2. 7 hours ago, Tom said:

    @Eliot

    If this gets approved, I'll happily integrate into all my SDN products.

    A question though, how are users authenticating so that they only see the bots they are running? Are you hoping for some OSBot login verification, or are people expected to make accounts?

    Hey Tom, I'm glad to hear that! As of now users would need to make accounts and then I'd verify the identity to link w/ OSBot.

    General update: this is still a work in progress, I'm not going to promise any dates though (as that didn't work last time!).

  3. 5 hours ago, Czar said:

    Excellent progress, I was beginning to wonder about Hive actually ^^ :D

    Thanks Czar, if this gets SDN approved I hope you'll consider integrating!

    Here's the exciting update:
    OSBot has agreed to review the code, this is the first step towards getting approval for integration with SDN scripts! Although it is not a guarantee, I'm excited to be moving forward. In light of this news, if any SDN script developers are interested in using Hive (if approved) please send me a PM and we'll get things kicked off!

    More updates to follow this week.

  4. Disclaimer:
    Hive has not been approved nor endorsed by OSBot staff. Hive has not been approved for use in SDN scripts. Initially, Hive will only be available for integration with local and private scripts.

    Beta Release Date
    October 7, 2018

    Overview
    I’m incredibly excited to announce Hive, OSBot’s first universal bot monitor. Hive lets you monitor and manage all of your bots across all of your favorite scripts from your desktop or your phone. Hive is compatible with every script and integration with Hive takes under five minutes.

    How It Works

    • Create a Hive account (site goes live October 7, 2018).
    • Open OSBot and start any Hive-enabled script, you will be prompted for your Hive username and password.
    • Once the script has started visit your Hive dashboard using a web browser and monitor your bot. You can view status information about all of your bots across all of your favorite scripts. You can also pause or stop your bots by using the dashboard.

    Demo (note: this demo shows a prototype version of Hive, the beta product and information displayed on the dashboard will be different)

    Script Integration
    Are you a script developer and interested in being a Hive beta partner? Send me a private message.

    FAQ
    Q: What scripts are compatible with Hive?
    A: Hive is script-agnostic, if your favorite script is not Hive-enabled, ask the script developer to integrate (note: Hive cannot integrate with SDN scripts at this time).

    Q: What information does Hive show me?
    A: For every script, hive displays a recent screenshot of your bot (with username removed and you must opt-in) and shows runtime. Script developers can specify which skills to track and any other custom values (e.g. GP earned) that they want Hive to display.

    Q: What actions does Hive enable?
    A: Hive lets you pause, resume, and stop your bots no matter where you are.

    Q: How much does it cost?
    A: Hive is free to use during the beta period.

    Q: Is my data secure?
    A: Data is stored by Hive for no more than 120 seconds, no sensitive data is transmitted to nor stored by Hive.

    Q: What happens if Hive isn’t working, can I still use my scripts?
    A: Yes, if Hive fails to activate then your script will continue to operate as expected.

    • Like 10
×
×
  • Create New...