Jump to content

hero3128

Members
  • Posts

    141
  • Joined

  • Last visited

  • Feedback

    100%

Posts posted by hero3128

  1. Theres a bug when special attack regenerates it will stay on the spec weapon and not use the special attack. Itll just use it until a perk spawns for unlimited special attack. Then it will go back to normal

    Also my logger is stuck spamming "Running to position" but not doing anything

  2. 1 hour ago, Explv said:

    If you are rebuilding the same artifact it will work fine. Intellij states that there is an error, something along the lines of unable to delete .jar, but it still works. Just make sure you press refresh in the script selector on OSBot.

    Why are you dragging the .jar file to the scripts folder? In the artifact settings just set the path to the scripts folder. 

    In what way do you think that it is not working?

    Have you tried doing something simple like, changing the script name in the script manifest attribute, rebuilding the artifact, then refreshing the script list in OSBot and seeing if the script name changes?

    I haven't tested to see if the script actually DOES get updated even if IntelliJ states it cannot delete the artifact. I will test and get back to you!

  3. 41 minutes ago, Phaibooty said:

     

    I'm sorry to stray off topic a bit, but when you're exporting to a jar file, is your script running/showing in osbot?

    im also using IntelliJ, but when I drag the jar file to the scripts folder, the script doesn't show up. When I use the .class, it works perfectly fine. LOL 

    On topic: have you closed osbot before Rebuilding the artifacts?

     

    Script is not running anymore and to rebuild to artifact, i have to close osbot or else it wont work

  4. 4 minutes ago, Aiban said:

    Just export the script into the same jar and it should work, to delete the jar you have to close OSBot

    If i export the script as the same jar Intellij gives me an error as if the file is still open in another program

  5. 1 minute ago, Zappster said:

    I've never once had this issue.            

    What IDE are you using?

    Are you connecting your IDE to OSBot via the -debug cli?

    Im using IntelliJ, its the same problem if i want to try to delete the .jar out of the /OSBot/Scripts folder so i dont think its the IDE. And no im not connecting the IDE to OSBot

  6. Hey guys, i have a quick question i havent been able to find a workaround for.

    When coding and testing local based scripts, each time you compile and test the script, you cannot edit and recompile the script because the IDE thinks the script is still open/active by osbot. Is there any workaround for this other than restarting the client each and every time you wana test out a change? Thank you!

  7. Crazed archeologist, you can do 4/6 barrows brothers efficiently. You could kill lava dragons. Zulrah if you know the rotations well enough.

    Was thinking zulrah, but i was wondering if it'd be efficient. And if not efficient would the kills still be under like 4-5mins

  8. Is their any bosses that is possible to kill with 85+ magic only?

     

    I was wondering about zulrah too. What are your opinions?

     

    Also what about barrows? Is it possible to do barrows with mage only?

  9. Did you place this above the public class?

    @ScriptManifest(author = "Rumble", info = "Smelts Ores", logo = "", name = "OreSmelter", version = 1.01)

    Yes i do have that in there. I posted the script. you can see for yourself

  10. Try to just download the local .jar again on your laptop, add them to the script folder start osbot, click refresh and let me know if they appear.

     

    Maybe something went wrong by transfering via flashdrive. Just try to download them ok?

    uploaded it via dropbox and downloaded it. Still nothing. Then OsBot updated to the 2.3.53. Still nothing.

    here ill post the script. I highly doubt anythings wrong with it though

    package net.hero3128;
    
    
    import org.osbot.rs07.api.ui.Tab;
    import org.osbot.rs07.script.Script;
    import org.osbot.rs07.script.ScriptManifest;
    
    
    import java.awt.*;
    import java.util.concurrent.TimeUnit;
    
    
    @ScriptManifest(name = "hAFK", author = "Hero3128", version = 1.0, info = "AFK's 24 hours", logo = "")
    public final class hAFK extends Script {
    
        private long timeBegan;
        private long timeRan;
        private long newStartTime = 0;// new start time
        private long newSleepTime = 0;// Time till next
        private long timeTillNext = 0;
    
        public int ACTIONS = 0;
        private static Tab[] Tabs = {Tab.ATTACK, Tab.INVENTORY, Tab.CLANCHAT, Tab.EMOTES, Tab.EQUIPMENT,
                Tab.FRIENDS, Tab.IGNORES, Tab.LOGOUT, Tab.MAGIC, Tab.MUSIC,
                Tab.PRAYER, Tab.QUEST, Tab.SETTINGS, Tab.SKILLS};
    
    
        private State state = State.Idle;
    
        @Override
        public void onStart() {
            timeBegan = System.currentTimeMillis();
            newSleepTime = random(60000, 180000);
            log("hAFK Started");
        }
    
        @Override
        public void onExit() {
            log("hAFK has stopped!");
    
        }
    
    
        @Override
        public int onLoop() throws InterruptedException {
            switch (state = whatDo()) {
                case Idle:
                    return 100;
                case Action:
                    if (tabs.open(Tabs[random(Tabs.length)])) {
                        ACTIONS++;
                        newStartTime = System.currentTimeMillis();
                        newSleepTime = random(60000, 180000);
                        return 100;
                    } else return 100;
    
    
            }
            return 100;
        }
    
        private State whatDo() {
            if (System.currentTimeMillis() - newStartTime > newSleepTime) return State.Action;
    
    
            return State.Idle;
        }
    
        @Override
        public void onPaint(Graphics2D g) {
            //START: Code generated using Enfilade's Easel
            timeRan = System.currentTimeMillis() - timeBegan;
            timeTillNext = newSleepTime - (System.currentTimeMillis() - newStartTime);
    
            final Color color1 = new Color(153, 153, 153);
            final Color color2 = new Color(0, 0, 0);
            final Color color3 = new Color(255, 255, 255);
    
            final BasicStroke stroke1 = new BasicStroke(1);
    
            final Font font1 = new Font("Comic Sans MS", 1, 10);
    
    
            //Graphics2D g = (Graphics2D)g1;
            g.setColor(color1);
            g.fillRect(282, 4, 236, 115);
            g.setColor(color2);
            g.setStroke(stroke1);
            g.drawRect(282, 4, 236, 115);
            g.setFont(font1);
            g.setColor(color3);
            g.drawString("Time Running: " + ft(timeRan), 288, 20);
            g.drawString("State: " + state, 288, 40);
            g.drawString("Actions Done: " + ACTIONS, 288, 60);
            g.drawString("Time Till Next Action: " + ft(timeTillNext), 288, 80);
            g.drawString("hAFK By Hero3128", 412, 116);
    
    
            //END: Code generated using Enfilade's Easel
        }
    
    
        private enum State {
            Idle("Idling..."),
            Action("Changing Action");
    
            State(String name) {
                this.name = name;
            }
    
            private final String name;
    
            @Override
            public String toString() {
                return name;
    
            }
        }
    
    
        private String ft(long duration) {
            String res = "";
            long days = TimeUnit.MILLISECONDS.toDays(duration);
            long hours = TimeUnit.MILLISECONDS.toHours(duration)
                    - TimeUnit.DAYS.toHours(TimeUnit.MILLISECONDS.toDays(duration));
            long minutes = TimeUnit.MILLISECONDS.toMinutes(duration)
                    - TimeUnit.HOURS.toMinutes(TimeUnit.MILLISECONDS
                    .toHours(duration));
            long seconds = TimeUnit.MILLISECONDS.toSeconds(duration)
                    - TimeUnit.MINUTES.toSeconds(TimeUnit.MILLISECONDS
                    .toMinutes(duration));
            if (days == 0) {
                res = (hours + ":" + minutes + ":" + seconds);
            } else {
                res = (days + ":" + hours + ":" + minutes + ":" + seconds);
            }
            return res;
        }
    }
    
    
  11. He means, did you seperately download them on your laptop and placed them in your script folder (extra on your laptop) ?

    Yes, i put them on my flashdrive and threw them into OSbot/scripts

     

    I tried it with the class files and building a .jar both of which work on my desktop, but my laptop they dont show up to run

×
×
  • Create New...