Everything posted by Vilius
-
Basic Function Names *Help Wanted*
Look at the api page at the top if the forums, look in the tutorial section I have a tutorial about the APIs documentation. Plus if you know oop look at my guide about tasks or someone elses taks tutorials. Because Apeacs tutorial is a bit outdated :\ Goodluck :p
- Becoming a Script Writer
-
INodeRouteFinder caused memory leak:(
The issue is that you are creating the inoderoutefinder every time you walk. You need to make one only onStart() once. Then maybe add it to your class that contains your variables public class test extends Script{ INodeRouteFinder nrf; public void onStart(){ nrf = INodeRouteFinder.createAdvanced(); } }
-
Premium Script Giveaway!
The spam is real as always..
-
Making graphics for a pure account.
Please provide a portfolio for people interested to see and evaluate your work
-
Best Avatar/Signature?
- why cant i upload pictures?
Upload to imgur and use the direct link, osbot doesnt allow people to upload images directly to the site. Let me know if you need more help :p- PPOSB - Jug of Wine
Man, this bloke @ProjectPact is making top notch scripts, who knew 99 cooking was so easy :p Much luv- Powermining ore pickup bot
Wrong section mate. That would be really easy. Run to ores -> take them -> run to bank -> bank -> repeat :p- PPOSB - AIO Hunter
Great script, would recommend mah boi @ProjectPact Much luv- Interact with object and then move on (PROBLEM)
And there is your problem, man, think about the boolean logic, you want it to say got and need to get at the same time, ofc it will do the first one. You need to have something like getInventory().contains("berries") && configstuff. -_-- Mandatory military
Wew 9 months of combat training Just do some drugs or some shit or just don't show up, run away to Lithuania, well accept you- SDMM quick starter guide
I fixed it already without the need of OCR and OCR has issues too, not all words are correct and need to be rewritten. plus cba to format it- SDMM quick starter guide
I'm sorry, but its an image, I can't do anything about it. I know how to paste without the white stoof too :p- SDMM quick starter guide
Found on the /r/2007scape subreddit Fixed the white- Fire cape asap
TrustMyBet might do it, he did my fcape :p- Botre AIO Magic Preview (Free Beta SoonTM)
The gui looks like its from 1999- Grab price from OSB
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.net.URL; public class Price { private static final String BASE = "https://api.rsbuddy.com/grandExchange?a=guidePrice&i="; public int getOverallPrice(int itemID) throws IOException { return this.parse(itemID, "overall"); } public int getBuyingPrice(int itemID) throws IOException { return this.parse(itemID, "buying"); } public int getSellingPrice(int itemID) throws IOException { return this.parse(itemID, "selling"); } private int parse(int itemID, String choice) throws IOException { String line; URL url = new URL("https://api.rsbuddy.com/grandExchange?a=guidePrice&i=" + itemID); BufferedReader file = new BufferedReader(new InputStreamReader(url.openStream())); String price = null; while ((line = file.readLine()) != null) { if (!line.contains("{")) continue; price = line.trim(); } price = choice.equals("buying") ? price.substring(price.indexOf(",") + 10, this.nthOccurrence(price, ',', 1)).trim() : (choice.equals("selling") ? price.substring(this.nthOccurrence(price, ',', 2) + 11, price.indexOf("sellingQuantity") - 2).trim() : price.substring(price.indexOf(":") + 1, price.indexOf(",")).trim()); file.close(); return Integer.parseInt(price); } private int nthOccurrence(String str, char c, int n) { int pos = str.indexOf(c, 0); while (n-- > 0 && pos != -1) { pos = str.indexOf(c, pos + 1); } return pos; } } Then you use it like so: public class Main extends Script{ Price price = Price(); int priceOfItem; public void onStart(){ priceOfItem = price.getSellingPrice(ITEMID); } }- New CPU can't run/open client
Lmao new "cpu". OT. Download jarfix and run it. That should fix your issue- Hero's monk robe collector
grats, making bonk stealing them robes- Seers Agility Course
Oh wow, this code repetition- [Snippet] Prayers Compatibility
nice bytes u got there- Correct method for adding a MouseListener and MouseMotionListener, consume()?
From what I understand you just want to block the input from the user? If so, then this is useless to you, you need to do it like this: getBot().disableHumanInput(true); And I think BotMouseListener is used for internal use only.- Correct method for adding a MouseListener and MouseMotionListener, consume()?
Make a class which would implement MouseListener, add all the default methods and use them to your liking. Then create a new object of your class and simply add it to your script like this: //your mouse object Mouse mouseObject = new Mouse(); public void onStart(){ getBot().addMouseListener(mouseObject); } Here are some snippets on how to hide your paint if you want:- LOL most butthurt guy i have ever seen
Someone should see a doctor, salt levels in the blood is too high, might mean kidney failure - why cant i upload pictures?