Jump to content

Kenneh

Members
  • Posts

    218
  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by Kenneh

  1. Kenneh

    Kenneh's GDK

    Check if the NPC you are facing is facing you by using Character#isFacing You're missing the point. I'm just saying if character.getFacing() returns an entity then it's poorly named. Most of the stuff in this client is just straight up bad. Who in their right mind thought it was okay to clutter the methodprovider class with a whole bunch of useless methods instead of splitting it up and organizing it into their own classes. It'd be neater and wouldn't take ages to find something you're looking for.
  2. Kenneh

    Kenneh's GDK

    Character#getFacing That naming is just dumb. I'm facing the npc, but not interacting, nor is it interacting with me.
  3. Kenneh

    Kenneh's GDK

    Client is proving to be too shitty to code to my likings.
  4. what do you mean shitty.... I bet if you were to show the source of this script, it'd be full of bad practices and hacky methods.
  5. This site is nothing but a bunch of people who write shitty scripts and throw a premium tag on it
  6. Kenneh

    Kenneh's GDK

    So, does osbot even have a way of getting the entities you're interacting with, and a way to get entities interacting with a npc?
  7. Kenneh

    Kenneh's GDK

    Well, I just started so I ran around and collected some data and made some methods that osbot didn't provide to make things a bit easier on myself. I'd say a few days if I can stay focused.
  8. Kenneh

    Kenneh's GDK

    Soon™
  9. Kenneh

    Veteran

    Veteran is specifically for if you joined on, or before, April 10, and you've been active on the forums since then Oh, that's why I don't have it. I'm active now though!
  10. http://osbot.org/forum/topic/18539-hey-im-kenneh/
  11. Seems extremely basic.
  12. Awww thanx Yeah, but her stats are them same as in the real LoL right? All stats are subject to change. Nothing on PBE can be declared as final.
  13. JavaFX does indeed look nicer than swing, but doesn't exactly perform faster. I'm glad you're going to organize the api, the current methodprovider class is a trainwreck (what the hell were you guys thinking? throwing all the methods into one class makes it really hard to find what you need). Also, hopefully in the re-write every interaction method wont throw an interrupted exception, it's annoying to deal with. If you plan on using JFX, you're going to have to release a custom jre with it because JFX won't ship with java til jre8(?). Oh yeah, and remove groovy, no one uses it. It just makes the jar obnoxiously large.
  14. You could apply it once your script is loaded if you want. Component c = JFrame.getWindows()[0]; c.addComponentListener(new WindowSnap(c.getBounds()));
  15. Mind sharing that canReach? ;) it's in the MethodProvider here, mostly everything is in there No idea how I didn't notice that before maybe if the API wasn't such a clusterfuck with everything thrown in one class I'd be able to find things easier
  16. Mind sharing that canReach? ;)
  17. I don't know why you used a 2d array instead of an array of positions.. public boolean WalkAlongPath(Position[] path, boolean forward, int distanceFromEnd) { if (distanceToPoint(forward ? path[path.length - 1].getX() : path[0].getX(), forward ? path[path.length - 1].getY() : path[0].getY()) <= distanceFromEnd) return true; else { walkPath(path, forward); return false; } } public void walkPath(Position[] path, boolean forward) { int destination = 0; for (int i = 0; i < path.length; i++) if (distanceToPoint(path[i].getX(), path[i].getY()) < distanceToPoint(path[destination].getX(), path[destination].getY())) destination = i; if (script.client.getMyPlayer().isMoving() && distanceToPoint(path[destination].getX(), path[destination].getY()) > (script.isRunning() ? 3 : 2)) return; if (forward && destination != path.length - 1 || !forward && destination != 0) destination += (forward ? 1 : -1); try { script.walk(new Position(path[destination].getX(), path[destination].getY(), 0)); script.sleep(600); } catch (InterruptedException e) { e.printStackTrace(); } } private int distanceToPoint(int pointX, int pointY) { return (int) Math.sqrt(Math.pow(script.client.getMyPlayer().getX() - pointX, 2) + Math.pow(script.client.getMyPlayer().getY() - pointY, 2)); } Also, not trying to hijack or anything.. but is there a position.isReachable() or position.canReach() ?
  18. Hey, that's not bad. I'll add a built in price checker, maybe something that allows you select what world exactly to go to and high scores too.
  19. "please write me a woodcutting script that I can claim as my own"
×
×
  • Create New...