Jump to content

liverare

Scripter II
  • Posts

    1300
  • Joined

  • Last visited

  • Days Won

    3
  • Feedback

    0%

Everything posted by liverare

  1. If I'm going to do Lambda, I'll stay away from OSBot's filter and just use theirs: public final int countPlayers(Area area) { return (int) players.getAll().stream().filter(area::contains).count(); }
  2. The method is to wrap an image in a link and have that link set to just a hash (#). When you append # onto the end of a URL, you get sent to the top of the page and nothing else happens. I managed to do it here too, except it wasn't as straightforward as I'd like it to be. You right-click the editor, inspect the element, and manually edit the HTML to add in the following inside an available <p> tag: <a href="#"><img src="https://upload.wikimedia.org/wikipedia/commons/thumb/6/66/SMPTE_Color_Bars.svg/329px-SMPTE_Color_Bars.svg.png" /></a>
  3. You're welcome.
  4. https://osbot.org/api/org/osbot/rs07/Bot.html#addMouseListener-java.awt.event.MouseListener-
  5. You can use external Jars, read here.
  6. Static is used when you want something to exist once. For example: Cat.purr(); // static - makes no sense. Cats purr individually. Cat.count(); // static - makes sense. Get the count of all cats ever created. new Cat().purr(); // not static - makes sense. Cats purr individually. new Cat().count(); // not static - makes no sense. One cat can't account for all cats ever created.
  7. You need to extract the contents from your Jar folder to your Script folder. Do so like you would a zip folder. If your using your Script folder as an output folder in your IDE, then your IDE will clean out that folder each time your code is recompiled, which happens each time you save. If this is the case, you'll want to extract the contents of the Jar to your project's source folder so that it'll be outputted each time automatically and you won't have to re-extract stuff over and over again.
  8. Programming has a whole bunch of funny names for stuff, but it's actually so simple and Alek's post pretty much wraps it in a nut-shell. But there's a back story which'll give you a better understanding for why we need OOP. The short-and-sweet is: Computers aren't OOP. They beep and they boop as they process one instruction at a time in their machine language. Computers can't OOP without memory. Memory lets the computer store 1's and 0's in such a way as to keep the info intact for as long as needed. Machine code referrers to that chunk of memory as many times at called. The machine language/lower level languages can't OOP. But languages built on-top of those can and do.
  9. I remember playing GTA San Andreas online and I was in a server where they had a lottery system. I won like $10M, which was announced globally...then I was hunted down like a fucking dog throughout the entire map by bandits. That's a life lesson a game has given me lol.
  10. Abso-fucking-lutely. That's was my earlyily early retirement.
  11. What hurts the most is the mismatching numbers: I need a 0 and an 8, but I got two 4's.
  12. The Millionaire Maker is a raffle you get with your purchase of a lottery ticket. You can pick your numbers for the lottery, but you have no say in the code for the raffle (and for good reason - it has to guarantee a winner every Friday).
  13. Nope. It's an all-or-nothing deal. However, if my numbers are close, then perhaps someone close by is a mfking millionaire.
  14. Euro lottery Millionaire Maker code: ZVPD06683 My code: ZVPD46643 Just kill me.
  15. I haven't gotten banned so there's no need for this yet. But I'm wondering whether or not a proxy is worth it when ideally I only want to bot one worker to make a little extra GP on the side. The problem is, my main and this worker account would be interacting a lot with each other (transferring GP/aid doing quests), so it wouldn't be too hard for Jagex to suspect that both accounts are owned by the same person.
  16. Has anyone had their mains banned despite no botting on it, because you were caught botting on a worker account? Just curious.
  17. That, or alternatively: var ALCH_WAIT_IN_MS = 1000 var lastAlchTime IF currentSysTime LESS THAN lastAlchTime THEN wait ELSE IF performAlchClick THEN SET lastAlchTime TO currentSysTime + ALCH_WAIT_IN_MS
  18. President Donald J. Trump, for 8 years! MAGA!
  19. Hello, welcome to OSBot's attempt to Crack the Clue! Crack the Clue is an event released back in June 2016. For four weeks a new clue was revealed: Week 1: Week 2: Week 3: Week 4: Up until now, this is what your character would look like with the rewards: But we are missing the final reward: the Helm of raedwald So it's been nearly half a year and the final step of this clue remains uncompleted. Whoever can figure out the final step of the clue will have their RS name in the examine text of the helmet! The name of the helmet was supposed to be unknown until found, but some jammy dodger went down under to figure it out. Here's a video to bring you up to speed: Bring your brains to the table and let OSBot solve this! We botters need to outsmart Mod Mat K. Join the CC margins to join the few remaining Crack the Clue hunters left in-game. All collaborated information up to now have been stored on Google Docs. Peace! -Live
  20. This bot provides the random rolls, it does not accept payment from in-game trades. You set up a throwaway account to run this script and have it sit in your CC. You (the host) accept the money and then the players (or yourself) punch in commands; the bot recognises them and spews back random rolls.
  21. I normally couldn't justify spending $100 here, but I've lingered around this place long enough and my sales can cover this expense. Also since the payment boop, there's been a little extra sitting in my PayPal wallet attracting flies.
  22. You can add libraries if you've got the source code and the code doesn't execute something to piss off the security manager straight from the get-go.
  23. Perhaps something like: int coinId = 995; int goldBarPrice = 100; int currentWealth = 0; int affordableQuantity = 0; Item coins = inventory.getItem(coinId); if (coins != null) { currentWealth = coins.getAmount(); affordableQuantity = (int) ((double) currentWealth / (double) goldBarPrice); if (affordableQuantity > 0) { grandExchange.buyItem(coinId, "Gold bars", goldBarPrice, affordableQuantity); } }
  24. I won't go through the whole lot, because I found some problems in the very first segment of code which need addressing. Also, me personally, I'd avoid using the 'node' methodology, because it's encapsulation can be very restrictive, hard to maintain, and execution structure (onLoop) looks ugly and meaningless. I prefer to 'path of least resistance' method, which is something like: onLoop() { findSomething() doSomethingToThatSomething() getResults() checkHealthAndRunIfNecessary() } You could use a enum state for this, but that's a lesser form of encapsulation, so I'd probably avoid that too.
  25. Become a script-writer. I believe the bot limit is 2 and you don't get any ads.
×
×
  • Create New...