Jump to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Theorems

Java Lifetime Sponsor
  • Joined

  • Last visited

Everything posted by Theorems

  1. I have just spent hours trying to figure out why I cannot call methods defined in one class which extends method provider in another class that extends method provider. Is that just something which cannot be done? I can use my methods from my classes which extend method provider in my main class because there I can use .exchangeContext(getBot()); but that only seems to exist for Script. If I call a method from a class extending method provider in another class extending method provider it gives me a nullpointer error (even if it is just a setter or getter)... I could just work around this in my program design but if there is a way to call methods across classes extending method provider I would much rather do that for the sake of having a structured program.
  2. Theorems replied to Tom's topic in Mining & Smithing
    It would be great if you could add support for gem rocks in Shilo village
  3. Thanks, that worked. (although .exchangeContext() has line through it in eclipse because it's deprecated I guess).
  4. well that code works in my 'Main' class so I don't think that would be causing any issue. I'm just building the skeleton of my script right now so my action methods just look like this: public void bank() { log("bank"); } public void idle() { log("idle"); } public void fish() { log("fish"); }
  5. I'm new to java & scripting and I'm gonna have to ask stuff here until I get verified on discord I have a class with this method: public class ActionStates extends MethodProvider { public State getState() { if(getInventory().isFull()) { // nullPointerException return State.BANK; }else if(myPlayer().isAnimating()) { return State.IDLE; }else { return State.FISH; } } As you can see, I commented the line that throws the nullPointerException The thing is, that code works when I put it in my main class which extends from Script... Is there something else I need to be able to do in order to use osbot methods in other classes? It looks like it works in eclipse but then I get that when it runs which doesn't make sense to me because getInventory().isFull() should only be returning true or false (not null) shouldn't it?
  6. @dreameo Okay thanks, that makes more sense, although with my example (600 mean, 300 deviation) I think the numbers should still cluster around the mean of 600 even if I only accept numbers within a range which would still make 600 more likely to be generated than 300 or 900. So it wouldn't be a fully normal distribution, but neither would it be flat, if I am understanding correctly.
  7. See my edit from my last comment. Also at a mean of 600 and deviation of 300 I was getting some numbers below 0 rarely, but I wouldn't say almost never. Thanks for helping me understand this.
  8. Yeah so it would destroy the Gaussian distribution, that's what I kinda thought might happen. The whole reason I was trying to do it like that in the first place is that I wanted to use it as the return value of my script, which I didn't want to be a zero. edit: was doing some reading and saw this "There is theoretically no absolute minimum and maximum value that can occur in a normal distribution." So would it really become a flat distribution if you were to just "cut" off the tips of the bell curve of random numbers generated? Doesn't quite make sense to me..
  9. Interesting, I have not seen anything done like that before. Doesn't .nextGaussian() give you a Gaussian distribution all by itself without you adding multiple deviations?
  10. Do you mean a major in computer science? to get a masters you need to already have a bachelor degree, no?
  11. Hello, I am trying to add gaussian randoms to my script. I started using: int dynamicReturn = (int) ((rand.nextGaussian()*deviation)+mean); but the issue with that is the Gaussian random will not always stay within the deviation variable. To fix this I did: int dynamicReturn; do { dynamicReturn = (int) ((rand.nextGaussian()*deviation)+mean); }while(dynamicReturn < (mean-deviation) || dynamicReturn > (mean+deviation)); which works but because that would make it skip generated numbers outside of the range, I'm wondering if that would throw off my gaussian distribution? If so, what would be a better approach to use that would still lock all the values within my deviation?
  12. Looks amazing, any chance of a trial?
  13. Theorems replied to isamday6's topic in Spam/Off Topic
    True, and you would be a fool to hold zero weight on a master in cs when hiring. It's not like you can just fuck around and expect to get through a degree like that.
  14. The best tip is to only bot afk type training methods...doing anything else is pointless. sand/ammonite crabs or nmz. reason being the ban rate is probably 5 times higher on non afk methods so good luck making it to 99 without afk botting unless you plan on doing an hour a day.
  15. Theorems replied to Fruity's topic in Minigames
    Bought it anyways Do you think you could add a random sleep time before reacting instead of instantly using the rock cake as soon as I hit 2 hp? Also mouse off screen would be nice.
  16. Quick boys make a script that pks/endlessly harasses all bots who aren't on a whitelist of names.
  17. Theorems replied to Fruity's topic in Minigames
    @Fruity Could I get a trial, please?
  18. If you are about to bot some pest control and you see a pmod in the boat should you still bot? or does it really matter?
  19. I believe that sleeps until the condition myPlayer.isUnderAttack() is true or the 5000 milliseconds has expired. Not actually sure about the .sleep() I copy pasted that example from the open afk splasher script, maybe take a look at that code.
  20. were you using sleepWhile or sleepUntil ? Those are conditional sleeps as far as I'm aware. edit: actually that's from another api I think osbot uses conditionalSleep() new ConditionalSleep(5000) { @Override public boolean condition() throws InterruptedException { return myPlayer().isUnderAttack(); } }.sleep();
  21. Probably has something to do with how bond prices have gone up a lot over the last little while so people who buy gold with irl money are less tempted to rwt.
  22. Theorems replied to Apaec's topic in Agility
    Probably the account you were developing with never lost its energy due to its high agility level. At lvl 30 I am dropping to 0. Awesome script though
  23. Theorems replied to Apaec's topic in Agility
    Yay finally released! stamina potion support would be nice also
  24. Hey, do you think you could make the bot press spacebar instead of clicking on the make all option? It's just one less mouse movement the bot has to make. edit: actually nvm that would only work with arrow shafts.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.