Jump to content

Juggles AIO Fighter


Juggles

Recommended Posts

still working like a charm but now with I'm trying to train range... It gets REALLY laggy and very slow ... But when I go back to mage attacks everything runs smooth and fast again...sooooo what's wrong with the range and the script cause it to slow and freeze like that?


pmed you, its a pretty well known spot but most people forget about it xD.

Hey pm me to please lol, Would it work good  for my pure?

Link to comment
Share on other sites

  • 2 weeks later...

 1 day 8 hour proggie my account still going strong

1613cd20cc16ccd9d0729664275a9845.png

Could you fix these 2 things?

 

1. Please make the bot not attack npcs that are being splashed on.

 

2. When the bot levels and the npc is going unagressive (trying to flee) it doesnt attack it again. It just stands there doing nothing and eventually logs out.

 

Nice proggy!

Link to comment
Share on other sites

ec4c45f6aa.png

I guess I was drunk and didn't fill all the GUI fields feels.png (didn't add food quantity)

Food: "Trout"

HP to eat at: 9

Enemy: "Chaos Guard"

 

Just a suggestion to avoid client freezing when an exception is thrown

@[member='Override']
public int onLoop() throws InterruptedException {
   try {
       // script code
   } catch (Exception e) {
       log(Throwables.getStackTraceAsString(e));
   }
   return 69;
}

You can validate user input at start to prevent any errors and the Throwables class is found in the guava library here https://github.com/google/guava which you may find useful when writing java code. Nice script anyway, 10/10 would leech again doge.png

 

Edited by Token
  • Like 1
Link to comment
Share on other sites

ec4c45f6aa.png

I guess I was drunk and didn't fill all the GUI fields feels.png (didn't add food quantity)

Food: "Trout"

HP to eat at: 9

Enemy: "Chaos Guard"

Just a suggestion to avoid client freezing when an exception is thrown

@[member='Override']
public int onLoop() throws InterruptedException {
   try {
       // script code
   } catch (Exception e) {
       log(Throwables.getStackTraceAsString(e));
   }
   return 69;
}
You can validate user input at start to prevent any errors and the Throwables class is found in the guava library here https://github.com/google/guava which you may find useful when writing java code. Nice script anyway, 10/10 would leech again doge.png

Thanks for the tip. I was looking for a way to prevent the script from freezing.

Leech all you want :feels:

Link to comment
Share on other sites

Thanks for the tip. I was looking for a way to prevent the script from freezing.

Leech all you want feels.png

:doge:

The script freezes because the current onLoop iteration ends upon throwing an exception and it never reaches the return statement to tell it how long to sleep until next onLoop iteration, which results in executing code with no sleeps at all taking up to 100% CPU. Catching exceptions like that in onLoop will ensure that your script always sleeps between onLoop iterations and won't ever freeze when throwing exceptions. I use the guava library just to output the exception to OSBot's logger because e.printStackTrace won't send the stacktrace to the logger. You can also do something like this to output the stacktrace in the logger though which may be very similar to the implementation by google in guava

public static String getStackTraceAsString(Exception e) {
    String st = "";
    for (StackTraceElement el : e.getStackTrace()) {
        st += el.toString();
    }
    return st;
}
  • Like 2
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...