Jump to content

Explv

Scripter II
  • Posts

    2314
  • Joined

  • Last visited

  • Days Won

    6
  • Feedback

    100%

Everything posted by Explv

  1. That's not how you define a constructor, the constructor should have the same name as the class. It's not: public init(Script script) { } It's: public another(Script script) { } @sirskitzo you should follow some Java tutorials until you understand the basics.
  2. Set me on fire like one of your french girls
  3. Tis' all the same to a being that hath no concern for fake news (Book of Explv 145:3)
  4. Thou hath sinned my child
  5. “Happy is he who repays you for what you have done to us – he who seizes your infants and dashes them against the rocks.” (Psalm 137:9)
  6. Kids version of PUBG
  7. getGrandExchange().getOfferPrice() returns "The price per item in the Buy/Sell offer screen." Or use the official RS GE API
  8. Think it's going to be 2019 unfortunately, but I'm ok with that, I'd rather they have the perfect ending We wrap in December and we air our first episode in April [2019],” said Williams. “That’s a four-month turnaround for these huge episodes. There’s a lot that goes into the final edit. You would not want to rush this season at all. We owe it to our audience and our fans to really do this final season to the best of our abilities.”
  9. Probably the best show I've ever seen. It's consistently good (95%+ rotten tomatoes for every season except the first). There are some points that are a little slow, that's the same with any show though, it's character development & build up to the next major step in the plot. At the end of each season some absolute madness usually happens. I started watching it a few years late, rinsed all of it in like a week Final season is next year, I'm fuckin hyped already
  10. Explv

    Explv's Walker

    Is this still an issue? I checked last night on .159 and everything was working fine for me.
  11. More highlights from my collection
  12. .contains(), .getAmount() and .interact() all accept a Filter<Item>: inventory.contains(item -> item.getName().endsWith(" arrow"))
  13. Explv

    Explv's Walker

    Will have a look, are you on Windows?
  14. I highly doubt that. If you changed your password, and then instantly tried to login, and it didn't work, then probably something is fucked up on Jagex's end. Perhaps you should consider contacting customer support. Also, if it's an account you care about, you should enable 2FA. If you really think you're being hacked, you should probably change your email account's password.
  15. Explv

    Explv's Walker

    I can add a stop script / logout option to the GUI / CLI
  16. Don't call toString() closest() can take a Filter as a parameter.
  17. Just use a JSON library like Json simple.
  18. /resources/emma.jpg /src/YourCode.java
  19. Well it's on there, near the bottom. ( You can also use an image stored online, instead of storing in the resources directory) Assuming your images are stored in a directory called "resources" Firstly you need to read the image from the file. This should NOT be done inside the onPaint method as this would be VERY inefficient. Declare the images you need as global variables of type BufferedImage, for example: ... public class Main extends Script{ BufferedImage background; @Override public void onStart(){ } ... } Now we need to read the image from its file into the variable. This should be done inside onStart, as we only need to do it once: ... public class Main extends Script{ BufferedImage background; @Override public void onStart(){ try{ background = ImageIO.read(Main.class.getResourceAsStream("/resources/background.png")); } catch(IOException e){ log(e); } } ... } Now that the image has been read from its file we can draw it inside the onPaint method using g.drawImage: public class Main extends Script{ BufferedImage background; @Override public void onStart(){ try{ background = ImageIO.read(Main.class.getResourceAsStream("/resources/background.png")); } catch(IOException e){ log(e); } } ... @Override public void onPaint(Graphics2D g){ if(background != null){ g.drawImage(background, null, x, y); } } }
  20. By overriding the onPaint method and drawing the image? There's a bunch of threads that show you how to do this, you should try searching the forum instead of making a new thread for every trivial thing:
  21. Use an InteractionEvent with the disable camera option. At least I think there's a disable camera method, cba to check though.
×
×
  • Create New...