Everything posted by Polymorphism
-
Save Script Runtime Data (Java Class + PHP + MySQL Included)
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
-
Gimme Stronghold Answers
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
-
Gimme Stronghold Answers
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
-
Get bounding tiles of Area
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
-
Get bounding tiles of Area
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); }
-
Get bounding tiles of Area
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.
-
Get bounding tiles of Area
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.
-
Item ID to/from Name API & Revised PriceLookup API
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
-
Item ID to/from Name API & Revised PriceLookup API
This explains the need i had to just scrape jagex's website.
-
External library support?
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
-
Item ID to/from Name API & Revised PriceLookup API
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
-
External library support?
No problem, I have been thinking the same thing honestly. Gonna follow to see if someone has a viable answer.
-
External library support?
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/
-
External library support?
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)
-
Webwalking says success but walks to tile next to target
Thank you Xerion!
-
Webwalking says success but walks to tile next to target
So assuming threshold=1 would be exact position or threshold=0 would be? I'm giving this a go, still new to this API so haven't learned the ins and outs
-
Webwalking says success but walks to tile next to target
In one of my scripts, there is a safespot tile the player should be moved back to under certain conditions. I have the conditions laid out properly, as the webwalking event is firing (also another issue, seems to take it at least 2 seconds to start walking) It's obvious that the final destination had not been reached but it's sitting there indefinitely saying it had been, causing the script to hang a flood the logger. (the safespot is that tucked away corner of the bones) Below is some code, please don't nag about the sleeping. Dynamic sleeping is irrelevant in this snippet
-
Parsing valuable drop notification
Meh, looks overcomplicated to hell. You'd still have to parse out the quantity by going with substring and trim. I found it easier on my eyes to do it this way, and the speed difference is so little it's laughable. Now if we were doing like 20k of these in one go this would be done a little different.
-
Parsing valuable drop notification
Takes a little bit of regex but it's simple to do. Instead of adding the item name to a list, in my loop() I do if valuableLootName !empty then force loot the one item, then resume normal function. String tmpLootName = ""; if (msg.contains("aluable drop")) { tmpLootName = msg.replace("<col=ef1020>", "").replace("</col>", "") .replaceFirst("(.{0,15})", "").replaceFirst("(\\d x)", "") .replaceFirst("\\(([^\\)]+)\\)", "").trim(); log("DROP MESSAGE: " + tmpLootName); valuableLootName = tmpLootName; }
-
Couple questions about webwalking
holy hell, mustve sucked writing this up. Gotta be only of the only efficient ways to do it though
-
Couple questions about webwalking
This is awesome, I love webwalking lol. Thank you!
-
Couple questions about webwalking
Good to know, do you know how it'll react to not having the key to get to hill giants in edge dung
-
Couple questions about webwalking
does it handle doors, ladders, etc? is the stronghold of security mapped for webwalking? if so, do the bot take care of the questions? if not, whats the best method to take care of navigating the stronghold & answering the questions. I believe that's it for now...
-
Running from damage help
Instead of checking your health, check if youre under attack. Also use dynamic sleep, not that while static sleep crap
-
Can't find thread for SDN script new applications
This? " [OPEN] SDN Upload Requests " http://osbot.org/forum/forum/181-open-sdn-upload-requests/