Jump to content

Joseph

Trade With Caution
  • Posts

    4692
  • Joined

  • Last visited

  • Feedback

    91.3%

Everything posted by Joseph

  1. How exactly do i use it. I tried creating a PositionPolygon using just one position, then painting it using getPolygon. But nothing happens. Even before that i created the PositionPolygon, and used the methods contains entity position. And still nothing -.-
  2. ya that was a brain fart, i forget the defualt values is false . Thanks for that
  3. are you saying that im missing the semi colon?
  4. whats funny about it? wow, ive been doing this wrong all my life
  5. Comments like this . Also hopefully people understand why i put int parent in the constructor
  6. This is the class i use in my construction script. For the skill construction, it has two main interfaces, which are in the class. There is an interface that contains 3 slots. Then the other one that contains more then 3. Which varies from like 4 - 8. Pictures:
  7. nice, i got mine as a gife so they gave it to me in blue, But its a nice look doe
  8. those are exactly the ones i have
  9. I have a pair if beats but the newest one and they are studio. The quality are good, they are over price. But it funny because I don't use them that offend. When I was on the basketball team I use them for everything. But now it just there collecting dust. But I do like to use em in rare conditions
  10. I create a enum tutorial of the basics. Should i make a part 2 and add more cool information? There's a poll in the thread please vote http://osbot.org/forum/topic/42726-how-to-use-an-enum-part-1/?p=479641
  11. i just updated op, finally. Should i make a part 2?
  12. its about time , time to rock and roll on my scripts
  13. i know people like to post idea, but dont bother to actually look to see if there already a script for that
  14. i was no where close so fuck it lol, thanks for the reply
  15. i got the same error, the error say it was trying to download the script from the sdn. But then again we werent sign in so it couldnt download them. So if your os account isnt signed into the bot then youll get this error.
  16. Are you talking about the second loop
  17. public Position nextTile(Position path[], int skipDist) { int dist = -1, closest = -1; for (int i = path.length - 1; i >= 0; i--) { Position tile = path[i]; int d = script.map.distance(tile); if (d <= 16 && (d < dist || dist == -1)) { //<---- was edited dist = d; closest = i; } } int feasibleTileIndex = -1; for (int i = closest; i < path.length; i++) { if (script.map.distance(path[i]) <= skipDist) { feasibleTileIndex = i; } else { break; } } return (feasibleTileIndex == -1) ? null : path[feasibleTileIndex]; } i added in one line, because for the next tile method it will get the furthest tile in the path, but sometime it picks a tile that maybe like 3-5 time out of minimap rang and just get stuck there so i added a quick boolean that will help check to see if it can reach tile.
×
×
  • Create New...