Jump to content

Vilius

Scripter II
  • Posts

    1495
  • Joined

  • Last visited

  • Days Won

    1
  • Feedback

    100%

Everything posted by Vilius

  1. Thats the whole point of having super classes, that they have their own custom methods. What you can do is overload the methods to have diff params depending on the entities super class.
  2. Vilius

    Help me

    You should read their terms of service first then ask for help, most likely they have something in the tos against making proxies from the vps. Edit: I see you got suspended for phishing, you can prove that you didnt have apache or anything web related installed, stuff like that might help.
  3. Vilius

    JavaFx UX

    Took a shot at the login screen, anything can be changed to your liking. To be fair, even your login screen looks bloated as hell, not even speaking of other screens. EDIT: Could do more tomorrow, need to hit the bed.
  4. Vilius

    osbot v2

    Why change it to that? The current one looks simple and modern, the new one you propose looks like its from 2000's. Just my two cents.
  5. Well it should be clicking correctly, most likely the first if statement is wrong. But Im guessing you want it to shif click drop, which osbot already does if you enable it in game :b
  6. Yeah unlike you buying some lame ass wireless headphones, macs, consoles OT: Nice to see Lithuanians here and the trip looked like it was fun :b
  7. My guess he was putting the class files into the root directory of OSBot rather than the sub directory of scripts.
  8. Yeah, raspberry pi 3 is outdated but still decent, the newer version should be great :p
  9. buy a raspberry pi to play rs on the go
  10. I have to correct myself, my first example should work with random(2) instead of random(1), because random(int i) is generating a number exclusively, meaning it generates a number between 0-1 and never returns a 1, doing random(2) would generate 0-1 without including the number 2. random(int min, int max) is inclusive meaning that it will include the numbers defined in the parameters. Example: random(1, 3) would generate 1, 2, 3.
  11. I edited my post, it was fucked up for some reason, the spoilers dont seem to work for me haha
  12. Random doesn't mean that it scatters everything evenly, flipping a coin a 100 times and getting tails 99 times out of 100 is still random, flip was random and the result was random. Changing it to the examples that I posted below might not do any difference. If you want something different you can try: if((Math.random()<0.5)? false: true) method1(); else method2(); result would be after 100 iterations (true being first method is called, false being method2) true, true, false, true, false, true, false, true, false, true, false, false, false, false, false, false, false, true, false, true, true, false, false, false, true, true, false, true, false, true, false, true, true, true, true, false, true, false, false, false, true, true, true, false, false, false, true, true, true, true, true, true, false, false, true, true, true, false, false, true, false, false, true, true, true, true, true, false, true, false, false, true, true, false, false, false, true, false, true, false, true, false, false, false, true, false, true, false, false, false, true, false, false, false, true, true, true, false, true, false, If you want to use something else then do: Random random = new Random(); switch(random.nextInt(2)){ case 0: method1(); break; case 1: method2(); break; } //OR Random random = new Random(); if(random.nextBoolean()) method1(); else method2(); results after 100 iterations: 1, 1, 0, 0, 1, 1, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 0, 0, 0, 1, 1, 0, 1, 1, 1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 0, 1, 0, 0, 0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 1, 0, 1, 1, 1, 0, 1, 1, 0, 0, 1, 1, 1, 0, 1, 0, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 0
  13. Yeah and when it returns a 0 what are you going to do then? The chance would be 1/3 instead of 1/2 to get 1 or 2 Correct code would be: switch(random(2)){ case 0: method1(); break; case 1: method2(); break; }
  14. http://stackoverflow.com/questions/40480/is-java-pass-by-reference-or-pass-by-value http://softwareengineering.stackexchange.com/questions/21802/when-are-getters-and-setters-justified http://stackoverflow.com/questions/1568091/why-use-getters-and-setters http://stackoverflow.com/questions/7026507/why-are-static-variables-considered-evil Read pls
  15. Man the shipping costs more than the t-shirt it self.
  16. Title, post prices below.
  17. Blue whale is a stupid epidemic among teens. Who in their right mind would do 50 life threatening tasks and in the end commit suicide because they are told to do so?
  18. private final RS2Object bankBooth = objects.closest("booth"); private final RS2Object fountainObject = objects.closest("Fountain"); Thats where your problem is. You need to set those objects in your code which executes in onLoop. Say the bank method you have, youd need to put the objects.closest("booth") there.
  19. You could watch Brian Cox giving lectures or ted talks as he works at CERN. Pretty good stuff.
  20. I needed a way to get other players stats so I wrote this quick and simple API. Usage and source can be found in the github repo located: https://github.com/Viliuks/HiscoreAPI
  21. If you do decide to go with us, please pm me your skype
×
×
  • Create New...