Jump to content

Polymorphism

Members
  • Posts

    368
  • Joined

  • Last visited

  • Feedback

    100%

Everything posted by Polymorphism

  1. For completely random paths for each run, just have a few hardcoded and chose which one randomly. This below will take a path and randomize the actual tile it's walked to by an offset. It's not tested, nor probably the way to do things. //add inside the for loop camera controlls //also helps to check the distance, if so far then use the minimap //also if distance of position is so close (ie distance=4) skip to next position public void walkRandom(Position... pos, int minX, int maxX, int minY, int maxY){ Position tmpPos = null; for(Position p : pos) { int xrand = p.getX() + random(minX, maxX); //min,max are offsets of the position int yrand = p.getY() + random(minY, maxY); //Can use negative integer tmpPos = new Position(xrand, yrand, p.getZ()); //if canReach tmpPos //walk to tmpPos } }
  2. That's the only hard part of it. The rest is essentially store encrypted phone numbers in a db, have the script query based on OSB name with the text to be sent. (that's how i'd do it for a multi-script api)
  3. 72h nothing, ran perfect fighter ( i think that was the name) for 21 days straight. Was too OP
  4. this is why this isn't a priority for me. I have to gather the different carrier addresses for as many countries as possible.
  5. That's what I thought. Yeah I kinda have that being worked on, but I'm full on projects between irl duties atm. Should be finished with one of a big private scripts in a few days, so that will become a priority.
  6. You've got quite the vocabulary! To myself and many of other users, it will further customize antiban options. Even though it may not work (breaking to delay bans) if Jagex does have "bot detection" software or if they just analyze playing patterns
  7. Did they allow the user to tell the script what to do at all? If not, I'm working on something similar. However, mine isn't particularly a priority since I feel it won't gather a lot of attention.
  8. Essentially, yes. However I tend to write scripts where the client cant/wont do it such as being in a heavy combat zone. I want it internally done with my script so that it'll go to a safe zone or whatever.
  9. I will be adding built in break manager to some of my scripts and I'd like ya'lls input on the best method. Currently I am planning to use a Timer class which basically counts down and break when it stops, restarting timer while it is breaking, then stop breaking and resume when the timer stops and reset for next break period. Kinda confusing but the time ranges will come from user input and just utilised the same timer over and over
  10. This isn't a bad write up, very descriptive too There are many people who lack to knowledge on how data tracking works and this will certainly assist them
  11. From what I've read, webwalker does not current or plan on ever supporting the stronghold Thank you @Chris, this is a big help, did you collect this yourself, or may I ask for credits(if due), please
  12. I am planning an API that will traverse the stronghold (a mid-long term project ofc), but before I start I will need all of the answers. If you guys would be so kind as to post any collection of answers, I would love you forever This is srs! Note: I will begin collecting them myself if need be, but i'm sure someone has that info laying around
  13. In my case it's simply for drawing the outside of an area vs all tiles of the area. My script uses a max travel distance , so in my case all i gotta do is draw tiles that are so far away. But this will be a bit different if the radius (circles I know, but relative enough) is unknown
  14. For my situation this worked, but still looking for something that is universal for Polygon Area. safeArea = new Area(new Position(sX - is.maxDistance, sY - is.maxDistance, sZ), new Position(sX + is.maxDistance, sY + is.maxDistance, sZ)); safeTiles = safeArea.getPositions(); bounding = new Position[safeTiles.size()]; for (int i = 0; i < safeTiles.size(); i++) { if (safeTiles.get(i).distance(startPosition) == is.maxDistance) bounding[i] = safeTiles.get(i); }
  15. Yeah, mine is a variable Polygon area which is dynamically generated based on player position and settings. That's where my issue comes into play.
  16. I've tried all sorts of different way to get this. What I'm look for is the outside tiles of an Area or Position[] I hate to ask on here, but I really could use this help if anyone has any input. Thank you ahead of time.
  17. I added a shit ton of items with updated ids. itemIdNames.php now outputs all ids and names in the format below without new lines id:name; Also, clicking on the 2 small code boxes will navigate you to that url
  18. This explains the need i had to just scrape jagex's website.
  19. This seems like the intellij equivalent of what I posted. Although I'm not sure if what I posted would work, never tried it with source files. Just know of it from experience
  20. I've had the need to write both of these in a script currently under development. RSBuddy's price API didn't seem to update often enough (or just not return the proper data). The PriceLookup API uses Jagex's JSON API for their website. The Item ID to/from Name API uses a (relatively modern) list of IDs and Names which I added to database. Simply change the function being executed in the URL and enter the proper argument. Downloads can be found on my website below http://polycoding.com/osb/ Old School RuneScape Id to/from Name API Get an item's ID from its name. http://polycoding.com/osb/itemIdNames.php?getId=ITEM_NAME Get an item's name from its ID. http://polycoding.com/osb/itemIdNames.php?getName=ITEM_ID Polycoding Old School RuneScape Grand Exchange Price Lookup Usage public PriceLookup prices = new PriceLookup(); System.out.println(prices.getPriceById(1333)); //print price for Rune Scimitar by inputting ID System.out.println(prices.getPriceByName("rune scimitar")); //print price for Rune Scimitar by inputting name System.out.println(prices.getId("rune scimitar")); //getting the ID of Rune Scimitar using Polycoding API
  21. No problem, I have been thinking the same thing honestly. Gonna follow to see if someone has a viable answer.
  22. I don't use Intellij very much, so I'm not 100% sure but give them links a read and try https://www.jetbrains.com/help/idea/2016.3/configuring-module-dependencies-and-libraries.html#add_module_dependency https://blog.jetbrains.com/idea/2010/08/quickly-create-jar-artifact/
  23. The following post is for eclipse Untested, but here's an idea. (seriously not sure if it'll work, never done it before) When you get ready to export and what all them libraries to go with your script jar, open them in the project window and Export..Jar file On the export (not as runnable jar) screen in eclipse tick the checkbox for each of the projects which is a library (given you have the source code). You'll probably have to change your dependencies from external jars to include those projects for your api(s)
×
×
  • Create New...