Everything posted by Deffiliate
-
Antiban is bullshit
Yeah, most scripters already know this. "Anti-ban" has been implemented for years, and even the most "Advanced Anti-bans" have shown no evidence of actually lowering ban-rates. For the most part scriptwriters implement it so that when users ask if we have it in our script we can just say yes. The majority of botter's refuse to accept the fact that it does nothing to actually protect them though.
-
Script tracker...?
wtf are you talking about? Since what you seem to be crating is a framework to be used across multiple scripts, what would be really cool is an achievement system. Achievements for total hours botted, xp botted, cash botted, 99's botted. It's an idea i've had for awhile now, and I think the community would love it
-
I just can't carry hard enough.....
Noobie Boobie
-
Massive Script Source Code Dump (OLD CLIENTS)
Ehh not sure, whichever one RSB provided at the time.
-
Massive Script Source Code Dump (OLD CLIENTS)
LOL not true. I wrote a few scripts for RSBot back in the day and they were all packaged.
-
The Power Of Youth
Sometimes I wish I was a cloud.
-
How to do an accurate loot tracker?
Yep. Did you get it working?
-
How to do an accurate loot tracker?
Here's what I did: First create a class called PricedLoot. Has 3 important variables: String name, int price, int amount. In the constructor grab the price from zybez. package def.api; import org.osbot.script.rs2.Client; public class PricedItem { private String name; private int lastCount = 0; private int amount = 0; private int price = 0; private int id = 0; public PricedItem(String name, Client c){ this.name = name; if(c.getInventory().contains(name)) lastCount = (int) c.getInventory().getAmount(name); price = PriceGrab.getInstance().getPrice(name, 2); } public void update(Client c){ int increase = (int) (c.getInventory().getAmount(name)- lastCount); if(increase < 0) increase = 0; amount = amount + increase; lastCount = (int) c.getInventory().getAmount(name); } public String getName(){ return name; } public int getAmount(){ return amount; } public int getPrice(){ return price; } public int getValue(){ return amount * price; } public int getId() { return id; } public void setId(int id) { this.id = id; } } You'll also need this custom Zybez price grabbing class I found on here: package def.api; 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; } } Then, create an array of PricedItems for everything you want to loot and update the PricedItems somewhere in your onLoop. for(PricedItem i : lootList){ i.update(client); }
-
Beard or No Beard?
If you're ugly get a beard to hide your ugly face
-
TODAY I LEARNED THAT WHEN GOD SAID, "THERE SHALL BE LIGHT"
Yes, we are like the sun rise bringing light to this dark and cold world.
-
Buying GDK w/ 7+ days left
I would sell 70/70/70's for 7m.
-
Iroh - Does this look alright?
That's awesome man I loved Iroh. Could you try to make draw him fire-bending tea?
-
Need some Ethic ideas on why abandoning a dog should put you in jail.
I would argue that abandoning animals is a good thing. Every animal must should to live on it's own otherwise it's just a pet. If I have a dog I want him to be ableot to survive on his own if he had to.
-
Lvl W/ 1 Month VPS. What to do?
I did seagulls til like 15 in all stats, then went to this dungeon south of Port Sarim full of monsters good for levels 15-60. Get 50 def at least. You could also do druis or a lower levelled money making combat script until you can use mine. That way you make gp while u train
-
Lvl W/ 1 Month VPS. What to do?
I ran for a month and a half on my main and no bans. Im doing black dragons now. I think the most important thing is to keep only 1 bot on each IP address.
-
Lvl W/ 1 Month VPS. What to do?
If you could make a 60/60/60 account yo ucould start out makine 160k/hr then get up to 200k/hr+ once you gain some levels at green dragons with my AIO dragon killer.
-
Buying ALL your 07.
Make a game of thrones season 4 hype thread.
-
Buying ALL your 07.
Hello his avatar is of the great Khaleesi from game of thrones. So hyped for Season 4!
-
@ Pie God
Just google: "Olivia Munn jumping into a giant pie." Ya I would eat her like my birthday cake:
- @ Pie God
-
would you ever...
Given the opportunity, would you want to be a leader of a cult that thinks you are their god? INB4Maldesto proclaims he is our god!
-
King of the Dragons needs a makeover.
le Bump
- :/
-
guis with just the chat box visible
I want to design my script to have a lot of small compact UI modules that you can re-arrange however you want. Sort of like RS3's menus but WAYYY sexxieerr. Here's an old compact paint I made that was drawn entirely with the Java Graphics and Graphics 2D API.
- Void and Chinning services.