Jump to content

Neku

Members
  • Posts

    28
  • Joined

  • Last visited

  • Feedback

    100%

Posts posted by Neku

  1. 29 minutes ago, Patrick said:

     

    Jagex updated the emotes and music widgets, pushed a new version (V2.2) with a fix

     

    Authed for 48 hours in case new version doesnt get released on time

    Shall I wait for v2.2 to be released before running?

  2. On 12/19/2018 at 4:08 AM, Sonicay said:

    Hi Love the script, but are you improving the anti-ban mechanism of it?

    It's mainly aimed at mass farming F2p, aintiban is pointless as the ban rates are so high (10-20 hours ban time while suiciding)

  3. 7 minutes ago, Divergent07 said:

    Congrats on the release! Looking great!

     

    I would either add the pirates treasure quest into your script or possibly just not do it and go through the dialog when using the boat.

    I'll look into both options and see which is easier to code for suicide purposes :)

    • Like 1
  4. Hey OSBot!

    It's been awhile but i'm finally back and going to release my progressive lobster fisher for you all to use and abuse!

    I have gotten some great results with this i'll post a progress pic below of my suicide farm.

    Still plenty of bugs in the script so if you encounter any please post and i'll get around to fixing it!

     

    Currently doesn't support muling as i'm not exactly sure how to implement it so you'll have to manually obtain the lobster from each account.

     

    Update Log:

    V1.1 - Various Bug fixes, Removed Pirates Treasure Quest Requirement.

    V1.2 - Complete re-write of Karamja fishing logic which fixes 90% of issues

     

    REQUIREMENTS:

    1. Enough Money to Buy the feathers, fly fishing rod, Lobster Pot & charter the boat  (Roughly 30k)
    2. Pirates Treasure Quest for getting to Karamja via boat 1 click       NO LONGER REQUIRED Thanks to @Divergent07 for the Idea
    3. Be prepared for chain bans!

     

    Any Tips on how to improve would be greatly appreciated!

     

    Also please give me ideas on other scripts to make!

     

     

    Progress from testing phase and de-bugging

    Picture is roughly 1 month old so prices may not be accurate.

    unknown.png

     

     

    Download For the Jar:

     

    NekuFisher.jar

    • Like 1
  5. 1 hour ago, Juggles said:

    The problem with your banking is that you call walking to the bank every loop. You need to check if you're in the bank to not walk. 

    You need to do it like this. This will fix your banking issue and will only call walking if you're not in the bank. This portion of the code would go in the else for the !getInventory.isFull

    
    If (!DRAYNORBANK.contains(myPlayer)) {
    
    walking.webWalk(DRAYNOR_BANK);
    
    } else {
    
    if (!getBank.isOpen) {
    
    getBank.open();
    
    } else {
    
    getBank.depositalAll();
    
    }


    Also you don't need to open gates with webwalker. It will do it on it's own.

    Also the sleep condition can be to check if the potato you were interacting exists anymore.

    Good luck

     

     

    Can't believe the legendary Juggles would comment on a shocking post like this!

    As for webwalking it has a few issues trying to open the gate and then eventually breaks outside the fence hence why i had to create a gate opening event all on it's own

    as for the webwalking part in the onloop() it seems i already implemented that without even realizing 

     

                }else {
                    if (!flyFishing.contains(myPlayer())){
                        log("Walking to Fly Fishing Spot");
                        getWalking().webWalk(flyFishing);
                    }else {
                        if (getInventory().isFull()) {
                            getInventory().dropAllExcept("Fly fishing rod", "Feather");
                        }else {
                            log("Lets start Fly Fishing");
                            if (lure != null);
                            lure.interact("Lure");
                            sleep(4000);
                            new ConditionalSleep(200000) {
                                @Override
                                public boolean condition() throws InterruptedException {
                                    return !myPlayer().isAnimating();
                                }
                            }.sleep();

     

  6. 19 hours ago, Malcolm_OS said:

    Hey man! 

    You have to start somewhere right?!

    I wrote a few simple scripts just like this to get used to the API. Once I felt confident I moved on to an actual project. My Tutorial Island script to be exact. 

    It is soo satisfying to see your own brain put out onto a script with your own logic of how to do something and the computer operates it in your own unique way.

    Sure, to anyone the bot looks like it's doing the same thing, cutting a tree, picking a potato, but the way the computer is receiving that information can be completely different.

     

    Also like @H0rn said, there is a code function that we can use to make our code appear all nice like this:

    7d5410693a2c30e89367ed3cb1bf2ca0.png
     

    
    import org.osbot.rs07.api.map.Area;
    import org.osbot.rs07.api.map.constants.Banks;
    import org.osbot.rs07.api.model.*;
    import org.osbot.rs07.script.Script;
    import org.osbot.rs07.script.ScriptManifest;
    import org.osbot.rs07.utility.ConditionalSleep;
    import static org.osbot.rs07.api.map.constants.Banks.DRAYNOR;
    
    
    @ScriptManifest(author = "Neku", info = "Potato Picker", name = "NekuPicker", logo = "", version = 1.0)
    public class Main extends Script {
    
        @Override
        public void onStart() throws InterruptedException {
            log("Welcome to NekuPicker I hope you Enjoy");
            log("Starting Script Please Wait....");
    
        }
    
        @Override
        public int onLoop() throws InterruptedException {
            Area Field = new Area(3155, 3290, 3140, 3268);
            Area Pregate = new Area(3142, 3295, 3148, 3292);
            Area Postgate = new Area(3144, 3291, 3147, 3289);
            Area BANKS [] = {Banks.DRAYNOR};
            Entity Potato = objects.closest("Potato");
            Entity Gate = objects.closest("Gate");
    
    
            if (!getInventory().isFull()) { //If my inventory is empty
                if (!Field.contains(myPlayer())) { //If Player isn't in the Field Walk to Gate
                    log("Started WebWalking");
                    getWalking().webWalk(Pregate);
                    Gate.interact("Open");
                    log("Opening Gate");
                    getWalking().webWalk(Field);
    
                } else { // If player is in the field Start Picking
                    if (Potato != null) ;
                    Potato.interact("Pick");
                    new ConditionalSleep(750, 500) {
                        @Override
                        public boolean condition() throws InterruptedException {
                            return myPlayer().isAnimating() && myPlayer().isMoving();
                        }
                    }.sleep();
    
                    return 600;
                }
    
            } else if (!Banks.DRAYNOR.contains(myPlayer())){ //If you aren't inside the bank
                getWalking().webWalk(DRAYNOR);
                log("Web walking to Bank");
                if (!getBank().isOpen()){
                    getBank().open();
                    new ConditionalSleep(2000,500){
                        @Override
                        public boolean condition() throws InterruptedException {
                            return getBank().isOpen();
                        }
    
    
                    }.sleep();
                    getBank().depositAll();
                    new ConditionalSleep(1000,500) {
                        @Override
                        public boolean condition() throws InterruptedException {
                            return getInventory().isEmpty();
                        }
                    }.sleep();
    
                    getBank().close();
                    new ConditionalSleep(1500,500) {
                        @Override
                        public boolean condition() throws InterruptedException {
                            return !getBank().isOpen();
                        }
                    }.sleep();
                }
            }
            return 0;
        }
     }


    Was actually looking through a heap of your code and it's improved so much!
    Your picker inspired me to make my own lmao

    Currently working on a progressive fishing script as i tried my hand at a progressive miner but couldn't for the life of me work out how to differentiate the rocks as i didn't want to use Rock IDs

    As for the code tag thing, i'll make sure to do that when i update my picker as it's still got HELLA bugs in it that's screwing with my gold farming LOL

  7. Ever wanted to become your own french fry king? 
    Well i've brought a Potato picker due to the current SDN version being broken and killing my personal bot farm :(

    Hope you guys enjoy!
    Any feedback would be appreciated

    Also thanks to @Malcolm_OS for assisting me with a very dumb error!

     

    TODO:
    PAINT ----- DONE
    LOGO

    GP Per Hour----- IN PROGRESS
    TIMER ----- IN PROGRESS
    Mule Support

     

    
    import org.osbot.rs07.api.map.Area;
    import org.osbot.rs07.api.map.constants.Banks;
    import org.osbot.rs07.api.model.*;
    import org.osbot.rs07.script.Script;
    import org.osbot.rs07.script.ScriptManifest;
    import org.osbot.rs07.utility.ConditionalSleep;
    import static org.osbot.rs07.api.map.constants.Banks.DRAYNOR;
    
    
    @ScriptManifest(author = "Neku", info = "Potato Picker", name = "NekuPicker", logo = "", version = 1.0)
    public class Main extends Script {
    
        @Override
        public void onStart() throws InterruptedException {
            log("Welcome to NekuPicker I hope you Enjoy");
            log("Starting Script Please Wait....");
    
        }
    
        @Override
        public int onLoop() throws InterruptedException {
            Area Field = new Area(3155, 3290, 3140, 3268);
            Area Pregate = new Area(3142, 3295, 3148, 3292);
            Area Postgate = new Area(3144, 3291, 3147, 3289);
            Area BANKS [] = {Banks.DRAYNOR};
            Entity Potato = objects.closest("Potato");
            Entity Gate = objects.closest("Gate");
    
    
            if (!getInventory().isFull()) { //If my inventory is empty
                if (!Field.contains(myPlayer())) { //If Player isn't in the Field Walk to Gate
                    log("Started WebWalking");
                    getWalking().webWalk(Pregate);
                    Gate.interact("Open");
                    log("Opening Gate");
                    getWalking().webWalk(Field);
    
                } else { // If player is in the field Start Picking
                    if (Potato != null) ;
                    Potato.interact("Pick");
                    new ConditionalSleep(750, 500) {
                        @Override
                        public boolean condition() throws InterruptedException {
                            return myPlayer().isAnimating() && myPlayer().isMoving();
                        }
                    }.sleep();
    
                    return 600;
                }
    
            } else if (!Banks.DRAYNOR.contains(myPlayer())){ //If you aren't inside the bank
                getWalking().webWalk(DRAYNOR);
                log("Web walking to Bank");
                if (!getBank().isOpen()){
                    getBank().open();
                    new ConditionalSleep(2000,500){
                        @Override
                        public boolean condition() throws InterruptedException {
                            return getBank().isOpen();
                        }
    
    
                    }.sleep();
                    getBank().depositAll();
                    new ConditionalSleep(1000,500) {
                        @Override
                        public boolean condition() throws InterruptedException {
                            return getInventory().isEmpty();
                        }
                    }.sleep();
    
                    getBank().close();
                    new ConditionalSleep(1500,500) {
                        @Override
                        public boolean condition() throws InterruptedException {
                            return !getBank().isOpen();
                        }
                    }.sleep();
                }
            }
            return 0;
        }
     }
    

     

    • Like 3
  8. 10 hours ago, Hope said:

    Welcome :) just make me a cabbage script and we'll be good ?

    hahah currently making a potato picking script but a cabbage one would take a few minutes extra to change some variables if you want :D

  9. Seems everyone is posting their code here for some help so i may  as well do the same

     

    So it seems i'm getting "Error:(36, 15) java: 'else' without 'if' " but i'm unsure as to how my else if statement is incorrect

    @Override
    public int onLoop() throws InterruptedException {
        Area Field = new Area(3140,3508,3154,3272);
        Entity Potato = objects.closest("Potato");
        if (!getInventory().isFull());{ //If inventory is full If statement
            if (!Field.contains(myPlayer()));{
                getWalking().webWalk(Field);
            } else {
                if(Potato !=null);
                Potato.interact("Pick");
                new ConditionalSleep(1500,500) {
                    @Override
                    public boolean condition() throws InterruptedException {
                        return myPlayer().isAnimating() && myPlayer().isMoving();
                    }
                }.sleep();
    
    

     

    All fixed! was a simple semi colon that cooked it hahah

  10. Hey osbot,

     

    Have been Botting Runescape for almost 10 years now so I wanted to start scripting myself! 

    Hopefully osbot can be a great home for my (probably very bad) scripts in the near future ?

×
×
  • Create New...