Everything posted by Boots
-
Let's get some real shit started here.
>Doesnt want to learn java >wants to code java
-
Zybez price retriever
Its the singleton pattern used to avoid multiple object creations
-
Zybez price retriever
Haha, I got bored. It relys on the Gson API and I don't know if that's provided by osbot. Here's a nifty little utility I was able to make with it with little effort. should extract the picture and maybe an auto fill feature would make it nice
-
Zybez price retriever
Nice, I wasn't going for a full zybez retriever, but yours looks good too.
-
Temp fix to toggling run on\off
if(script.client.getMyPlayer()!=null && !script.isRunning() ) script.setRunning(true);
-
Zybez price retriever
Retrieves prices from zybez grand exchange. Use the following format to retrieve prices, the price can be inputted with or without the "+" in bewteen each word PriceGrab priceGrab = PriceGrab.getInstance(); priceGrab.getPrice("snape grass",3); where the string parameter takes in the actual item name, and the integer parameter will determine if you want high value, low value, or average value. High = 3 , Average = 2, low = 1. import java.io.*; import java.net.*; public class PriceGrab { private static PriceGrab oneInstance; private URL zybez; private URLConnection urlConnection; private BufferedReader inputScan; private final String zybezUrl = "http://forums.zybez.net/runescape-2007-prices/api/item/"; public static PriceGrab getInstance(){ if(oneInstance == null){ oneInstance = new PriceGrab(); } return oneInstance; } public int getPrice(String itemName, int command){ final String AVERAGE = "average",LOW= "recent_high", HIGH="recent_low"; String item = format(itemName),extracted; int price = 0; openStream(item); extracted = retrieveData(item); switch (command){ case 1: return parseInfo(extracted,LOW); case 2: return parseInfo(extracted,AVERAGE); case 3: return parseInfo(extracted,HIGH); } return price; } private String format(final String string){ if(string.contains(" ")) return string.replaceAll(" ", "+"); else return string; } private void openStream(final String param){ String appended = zybezUrl.concat(param); try { zybez = new URL(appended); urlConnection = zybez.openConnection(); urlConnection.setRequestProperty("User-Agent", "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.95 Safari/537.11"); } catch (MalformedURLException e) { System.out.println("Web address formatted incorrectly, printing stack trace"); e.printStackTrace(); } catch(IOException exception) { System.out.println("Url connection has thrown an IOException, printing stack trace"); exception.printStackTrace(); } } private String retrieveData(final String param){ String output = null; try { openStream(param); inputScan = new BufferedReader(new InputStreamReader(urlConnection.getInputStream())); output = inputScan.readLine(); } catch (IOException e) { e.printStackTrace(); } finally { try {inputScan.close();} catch (IOException e){e.printStackTrace();} } return output; } private int parseInfo(String extracted,String value){ int start, end, price = 0; if(extracted.contains(value)){ start = extracted.indexOf(value); end = extracted.indexOf(",",start); price = Integer.parseInt(extracted.substring(start, end).replaceFirst(".*?(\\d+).*", "$1")); } else System.out.println("Could not retrieve price"); return price; } }
-
Lunar Spells Enum
enums are all caps by default
-
Beastlymauls leaked lure guide.
why did you remove this video http://www.youtube.com/watch?v=pj56kqM0w0k
-
Looking For Experienced Web Developer
You need a bachelors in a computer related field to work at oracle, I doubt he entered university at age 12 and finished at 16
-
Crap...fuck, shit, damnit
Beastymaul for coder of the year
-
★★★Kendrick Lamar's GOODIES★★★
If you use photobucket it embeds the image for you
-
getting unbanned is ez
You made your account today...
-
Hungry's Math Helper, Inspired by Led
You do taylor series and harmonic series? If you do id like some help
-
[Free] Simple Aio Fisher by Boots
Since i started university again I wont be adding new stuff, but if it needs fixing i will be updating it
-
Dexter
Its his dark passenger, when harry appears hes fighting against his own urges vs the set in stone code harry and the doctor created. When Brian appears its basically his dark passenger taking over as seen when he killed that man in the shed when going to kill trinitys son.
-
[Free] Simple Aio Fisher by Boots
Update has been uploaded fixing the ids concerning the Rs update, please redownload
-
Calculator
Are you using infix to postfix conversion with the use of stacks?Otherwise doing the math will become a clusterfuck when youre not doing single operator conversions. You also need to push the postfix conversion into a binary tree the choose a traversal method, otherwise it will be a lot of hardcoding. Heres an examples of what they made us create in university after the postfix conversion is done everything is pushed into a binary tree in nodes then a bst search is applied and the correct mathematical rules are followed
-
[Free] Simple Aio Fisher by Boots
If his "claims" were true, which they arent, he can look at the source code himself. I have nothing to hide which is why upload the source folders and not a jar file. So I dont see why hes blaming it on me; when he probably downloaded a gold generator
-
What Java IDE is the best?
They make us use textpad in university, but outside of that I always use intellij
-
[Free] Simple Aio Fisher by Boots
alright ill keep this in mind for the next upload, it probably cant see the other spots and assumes no spots are there
-
[Free] Simple Aio Fisher by Boots
What are you trying to fish at the guild?
-
[Free] Simple Aio Fisher by Boots
Only catherby and fishing guild are supported for banking And im not sure how many whirlpool ids there are but i managed to get one of them so im not sure if there is more
-
[Free] Simple Aio Fisher by Boots
You are using the clients run away from combat option if you disable it, it will use the custom one here is the one my script uses
-
[Free] Simple Aio Fisher by Boots
Newest Version has been uploaded that should fix all the problems mentioned above
-
[Free] Simple Aio Fisher by Boots
Do you have the right equipment? fishing guild is one of the locations ive tested the most and its always worked for me