Leaderboard
Popular Content
Showing content with the highest reputation on 03/21/16 in all areas
-
Currently only supports the normal spellbook. Examples package org.botre.magic; import org.osbot.rs07.api.ui.MagicSpell; import org.osbot.rs07.api.ui.Skill; import org.osbot.rs07.script.Script; //Script manifest... public class ExampleScript extends Script { private Autocast auto = new Autocast(this); @Override public int onLoop() throws InterruptedException { /* * These are radom non-dependant examples. */ // Autocasts the fireblast spell in non-defensive mode auto.autocast(AutocastSpell.FIRE_BLAST, false); // Autocast the wind bolt spell in defensive mode auto.autocast(AutocastSpell.WIND_BOLT, true); // Stop the script immediately if in defensive mode. if(auto.isDefensiveMode()) { stop(); } // Get the difference between the level required to autocast the... // spell you are autocasting and your static magic level (a bit arbitrary). MagicSpell spell = auto.getAutocastSpell(); if(spell != null) { int difference = Math.abs(spell.getRequiredLevel() - getSkills().getStatic(Skill.MAGIC)); } return 500; } } Autocast package org.botre.magic; import java.awt.Point; import org.botre.tab.TabHotkey; import org.osbot.rs07.api.ui.MagicSpell; import org.osbot.rs07.api.ui.RS2Widget; import org.osbot.rs07.input.mouse.WidgetDestination; import org.osbot.rs07.script.MethodProvider; import org.osbot.rs07.utility.ConditionalLoop; import org.osbot.rs07.utility.ConditionalSleep; public class Autocast { public static final int AUTOCAST_SPELL_CONFIG = 108; public static final int AUTOCAST_MODE_CONFIG = 439; // 0 = regular, 256 = defensive public static final Point DEFENSIVE_AUTOCAST_BUTTON_POSITION = new Point(650, 280); public static final Point REGULAR_AUTOCAST_BUTTON_POSITION = new Point(651, 333); private MethodProvider ctx; public Autocast(MethodProvider ctx) { this.ctx = ctx; } public boolean isAutocasting() { return ctx.getConfigs().get(AUTOCAST_SPELL_CONFIG) != 0; } public boolean isAutocasting(AutocastSpell auto) { return ctx.getConfigs().get(AUTOCAST_SPELL_CONFIG) == auto.getConfigValue(); } public boolean isAutocasting(AutocastSpell auto, boolean defensive) { return ctx.getConfigs().get(AUTOCAST_SPELL_CONFIG) == auto.getConfigValue() && defensive == isDefensiveMode(); } public boolean isRegularMode() { return ctx.getConfigs().get(AUTOCAST_MODE_CONFIG) == 0; } public boolean isDefensiveMode() { return ctx.getConfigs().get(AUTOCAST_MODE_CONFIG) == 256; } public MagicSpell getAutocastSpell() { AutocastSpell auto = AutocastSpell.forConfigValue(ctx.getConfigs().get(AUTOCAST_SPELL_CONFIG)); if(auto == null) return null; return auto.getSpell(); } public boolean isAutocastPanelOpen() { RS2Widget panel = ctx.getWidgets().get(201, 0); return panel != null && panel.isVisible(); } @SuppressWarnings("unchecked") public boolean openAutocastPanel(boolean defensive) { new ConditionalLoop(ctx.getBot(), 10) { @Override public boolean condition() { return !isAutocastPanelOpen(); }; @Override public int loop() { if(TabHotkey.COMBAT.openTab(ctx)) { RS2Widget button = ctx.getWidgets().singleFilter(ctx.getWidgets().getAll(), w -> { return w != null && w.isVisible() && w.getMessage() != null && w.getMessage().equals("Spell") && w.getPosition().equals(defensive ? DEFENSIVE_AUTOCAST_BUTTON_POSITION : REGULAR_AUTOCAST_BUTTON_POSITION); }); if(button != null) { WidgetDestination destination = new WidgetDestination(ctx.getBot(), button); if(ctx.getMouse().click(destination)) { new ConditionalSleep(2400, 200) { @Override public boolean condition() throws InterruptedException { return !button.isVisible(); } }.sleep(); } } } return MethodProvider.random(50, 150); } }.start(); return isAutocastPanelOpen(); } @SuppressWarnings("unchecked") public boolean closeAutocastPanel() { new ConditionalLoop(ctx.getBot(), 10) { @Override public boolean condition() { return isAutocastPanelOpen(); }; @Override public int loop() { RS2Widget cancel = ctx.getWidgets().singleFilter(ctx.getWidgets().getAll(), w -> { return w != null && w.isVisible() && w.getMessage() != null && w.getMessage().equals("Cancel"); }); if(cancel != null) { WidgetDestination destination = new WidgetDestination(ctx.getBot(), cancel); if(ctx.getMouse().click(destination)) { new ConditionalSleep(2400, 200) { @Override public boolean condition() throws InterruptedException { return !cancel.isVisible(); } }.sleep(); } } return MethodProvider.random(50, 150); } }.start(); return !isAutocastPanelOpen(); } public boolean autocast(AutocastSpell spell, boolean defensive) { new ConditionalLoop(ctx.getBot(), 10) { @Override public boolean condition() { return spell != null ? !isAutocasting(spell) : isAutocasting(); }; @SuppressWarnings("unchecked") @Override public int loop() { if(isAutocastPanelOpen()) { if(spell == null) { closeAutocastPanel(); } else { if(defensive != isDefensiveMode()) { closeAutocastPanel(); } else { RS2Widget button = ctx.getWidgets().singleFilter(ctx.getWidgets().getAll(), w -> { if(w != null && w.isVisible() && w.getInteractActions() != null) { String name = spell.getSpell().toString().replace("_", " "); for (String action : w.getInteractActions()) if(action != null && action.equalsIgnoreCase(name)) return true; } return false; }); if(button != null) { WidgetDestination destination = new WidgetDestination(ctx.getBot(), button); if(ctx.getMouse().click(destination)) { new ConditionalSleep(2400, 200) { @Override public boolean condition() throws InterruptedException { return !button.isVisible(); } }.sleep(); } } } } } else { openAutocastPanel(defensive); } return MethodProvider.random(50, 150); } }.start(); return spell != null ? isAutocasting(spell) : !isAutocasting(); } } AutocastSpell This is a MagicSpell wrapper storing the config value for a MagicSpell. package org.botre.magic; import org.osbot.rs07.api.ui.MagicSpell; import org.osbot.rs07.api.ui.Spells.NormalSpells; public enum AutocastSpell { WIND_STRIKE(NormalSpells.WIND_STRIKE, 3), WATER_STRIKE(NormalSpells.WATER_STRIKE, 5), EARTH_STRIKE(NormalSpells.EARTH_STRIKE, 7), FIRE_STRIKE(NormalSpells.FIRE_STRIKE, 9), WIND_BOLT(NormalSpells.WIND_BOLT, 11), WATER_BOLT(NormalSpells.WATER_BOLT, 13), EARTH_BOLT(NormalSpells.EARTH_BOLT, 15), FIRE_BOLT(NormalSpells.FIRE_BOLT, 17), WIND_BLAST(NormalSpells.WIND_BLAST, 19), WATER_BLAST(NormalSpells.WATER_BLAST, 21), EARTH_BLAST(NormalSpells.EARTH_BLAST, 23), FIRE_BLAST(NormalSpells.FIRE_BLAST, 25), WIND_WAVE(NormalSpells.WIND_WAVE, 27), WATER_WAVE(NormalSpells.WATER_WAVE, 29), EARTH_WAVE(NormalSpells.EARTH_WAVE, 31), FIRE_WAVE(NormalSpells.FIRE_WAVE, 33); private MagicSpell spell; private int configValue; private AutocastSpell(MagicSpell spell, int configValue) { this.spell = spell; this.configValue = configValue; } public MagicSpell getSpell() { return spell; } public int getConfigValue() { return configValue; } public static AutocastSpell forSpell(MagicSpell spell) { for (AutocastSpell a : values()) { if(a.spell == spell) return a; } return null; } public static AutocastSpell forConfigValue(int configValue) { for (AutocastSpell a : values()) { if(a.configValue == configValue) return a; } return null; } }6 points
-
5 points
-
Example: Event event = new SpellOnItemEvent(NormalSpells.LVL_2_ENCHANT, "Emerald ring"); execute(event); if(event.getStatus() == EventStatus.FINISHED) { casts++; } Code: public class SpellOnItemEvent extends Event { private MagicSpell spell; private String item; public SpellOnItemEvent(MagicSpell spell, String item) { this.spell = spell; this.item = item; } @Override public int execute() throws InterruptedException { if(getMagic().isSpellSelected()) { int slot = getInventory().getSlot(item); long count = getInventory().getAmount(item); if(getMouse().click(new InventorySlotDestination(getBot(), slot))) { if(new ConditionalSleep(2400, 200) { @Override public boolean condition() throws InterruptedException { return getInventory().getAmount(item) != count; } }.sleep()) { setFinished(); } else { setFailed(); } } } else if(getMagic().castSpell(spell)) { if(!new ConditionalSleep(2400, 200) { @Override public boolean condition() throws InterruptedException { return getTabs().getOpen() == Tab.INVENTORY; } }.sleep()) { setFailed(); } } return MethodProvider.random(50, 150); } }5 points
-
Note: It's free Quite buggy and NOT a finished product Some features don't work, just post here if you're unsure Just a BETA version I decided to release Any questions regarding making a miniscript should be posted here. All miniscripts are encouraged to be shared! Thread will be updated with guides soon... Download link: http://upx.nz/bg4WQY4 points
-
hey here's something he posted in Sinatra's dragon support chat - Doubt he's 'selling all his gold and quitting' GL getting your money back bro3 points
-
View in store ($3,99 for lifetime access) Features: Supports every location you would ever want to cook (anywhere missing? request it!) Supports almost every food item cookable on a range or fire (anything missing? request it!) Smart Target-oriented back-end stops the script when you have accomplished your desired goal Option to move mouse outside screen while cooking to simulate human AFKing Where Make-All isn't available, A Gaussian distribution based suffixed string generation algorithm randomises entered Make-X values Utilises a combination of WebWalking and recorded paths to ensure the script never strays from it's job Simple, intuitive GUI which auto-detects your food and location based on your inventory and minimap position Stable cooking & banking algorithms, tuned individually for each food item and bank Clean, informative, Anti-aliased, un-obstructive and fully movable self-generating paint Movable on-canvas scrolling console logger Efficient script logic ensures an EXP-optimised experience Normally distributed response times to simulate a human's reflexes Stops & logs out when out of food, saving your progress to the console and web Dynamic signatures allow you to track your progress as you use the script Handles obstacles and doors between the bank and the range to ensure door spammers cannot hinder your gains CLI is supported for all hardcore chef needs ... and many more ... Supported food: This script only supports cooking these food items on ranges/fires, it will not combine ingredients to make items such as Tuna potatoes or Pineapple pizzas. Shrimp Anchovies Sardine Herring Mackerel Chicken Beef Bear meat Rabbit Rat meat Sinew from Bear meat Sinew from Beef Trout Salmon Cod Pike Bass Rainbow fish Tuna Lobster Swordfish Monkfish Shark Dark crab Sea turtle Manta ray Anglerfish Karambwan Poison Karambwan Bowl of Water Uncooked pizza Potato Seaweed Sweetcorn Stew (new!) Curry (new!) Just ask for a new food item to be added! Supported locations: Rogues den Lumbridge Kitchen (new!) Catherby Nardah Tzhaar City Al-Kharid Zanaris Neitiznot Varrock East Hosidius Kitchen Gnome Stronghold Varrock Cooks' Guild Port Khazard Edgeville Mor Ul Rek Myths' Guild (new!) Just ask for a new location to be added! Why choose APA Scripts? As an experienced veteran scripter here on OSBot, I strive to give you the best user experience that I can by providing frequent updates and fixes. With over 40 cumulative 5 star reviews on the store, as well as my Scripter III rank, you know you're in safe hands. Want something added? Don't like something? Have an awesome proggie to share? Let me know! Example GUI: Starting from CLI: Gallery: _________________________________________________________________________________________ Credits:2 points
-
You should really learn how to debug yourself. For starters, you are catching an Exception and never handling it. If you had printed out the exception by doing this: Image bg = getImage("http://s9.postimg.org/5tbnkub0r/Namnl_st_1.png"); @Override public void onPaint(Graphics2D g){ if(bg != null){ g.drawImage(bg, 100, 100, null); System.out.println("Drawing image"); } } private Image getImage(String url) { try { return ImageIO.read(new URL(url)); } catch (IOException e) { e.printStackTrace(); } return null; } You would have seen this displayed (in debug mode): The website returns a 403 response code (Forbidden error), most likely because it looks at the request headers and sees that you are not visiting this url from a web browser. You can either reupload the image to a different site, or you can set the User-Agent in your Java code to be a browser's User-Agent like this: Image bg = getImage("http://s9.postimg.org/5tbnkub0r/Namnl_st_1.png"); @Override public void onPaint(Graphics2D g){ if(bg != null){ g.drawImage(bg, 100, 100, null); System.out.println("Drawing image"); } } private Image getImage(String url) { try { URL imgUrl = new URL(url); URLConnection connection = imgUrl.openConnection(); connection.setRequestProperty("User-Agent", "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36"); return ImageIO.read(connection.getInputStream()); } catch (IOException e) { e.printStackTrace(); } return null; } Which works.2 points
-
2 points
-
2 points
-
What you are doing is a bad idea. onPaint is called many times per second, and in every loop you are re-getting the image from that url. You should only get the image once and store it.2 points
-
hi i have 2 scripts on the sdn, a miner, and a thiever. can i have scripter 1 rank please thank u have good day - ya boy deceiver2 points
-
2 points
-
getWidgets().closeOpenInterface(); imo any script is a good place to start. questing scripts are fine to start with if the person understands how to use configs. as for your theory on the bot actions, below are what some bot devs think jagex looks at, not what you're talking about. jagex could probably care less if you click the x to close or not. they're more worried about where you're clicking, how fast you're clicking/reacting, etc. see examples below botlike: humanlike:2 points
-
This is an AIO (All-in-one) bot that has almost every thieving style except blackjack, ask for a free trial by liking thread or making a post! Vyres and elves are now supported! Both can make solid profit per hour, decent passive income! BIG THANK YOU TO ALL OUR SUPPORTERS! WE ARE THE MOST SOLD THIEVING BOT IN OSBOT HISTORY. MOST REPLIES, MOST USERS, LONGEST PROGGIES #1 Thiever | Most Overall Sales | Most Total Replies | Most Results | 7+ Years Maintained | 'the intelligent choice' by Czar NOW SUPPORTS VYRES ONLY SCRIPT ON OSBOT AND OTHER CLIENTS THAT HAS FULL VYRE PICKPOCKETTING WITH SWITCHING. BOT SWITCHES VYRE NOBLE AND ROGUE OUTFIT APPROPRIATELY 224M made in a single sitting of 77 hours 1.1B made from elves and vyres!! ELVES SUPPORTED TOO! (NEW) 2.1m/hr, 6 crystals in 7 hrs 99 THIEVING MANY MANY TIMES, 35M EXP IN ONE BOTTING RUN!! 99 thieving in ~43k xp (12 minutes remaining)! Just got 99 proggy! Gratz to @iz0n THIEVING PET AT LVL 22 FROM TEA STALLS 11.5 HOURS, WITH PET TOO!! 610k/hr getting 99s on deadman worlds!1 point
-
Before buying, please ensure you check-out with the correct script. Swapping scripts is not possible. View in store $4,99 for lifetime use - Link to Sand Crabs script thread (better exp/h!) - Requirements: Camelot tabs / runes in main tab of bank Designated food in main tab of bank ~ 20-30+ combat level Features: CLI Support! (new!) Supports Ranged & Melee Attractive & fully customisable GUI Attractive & Informative paint Supports any food Custom cursor On-screen paint path and position debugging Supports [Str/Super Str/Combat/Super combat/Ranged/Attack/Super attack] Potions Collects ammo if using ranged Stops when out of [ammo/food/potions] or if something goes wrong Supports tabs / runes for banking Option to hop if bot detects cannon Global cannon detection Option to hop if there are more than X players Refreshes rock crab area when required Avoids market guards / hobgoblins (optional) Automatically loots caskets / clues / uncut diamonds Enables auto retaliate if you forgot to turn it on No slack time between combat Flawless path walking Advanced AntiBan (now built into client) Special attack support Screenshot button in paint GUI auto-save feature Dynamic signatures ...and more! How to start from CLI: You need a save file! Make sure you have previously run the script and saved a configuration through the startup interface (gui). Run with false parameters eg "abc" just so the script knows you don't want the gui loaded up and want to work with the save file! Example: java -jar "osbot 2.4.67.jar" -login apaec:password -bot username@[member=RuneScape].com:password:1234 -debug 5005 -script 421:abc Example GUI: Gallery: FAQ: Check out your own progress: http://ramyun.co.uk/rockcrab/YOUR_NAME_HERE.png Credits: @Dex for the amazing animated logo @Bobrocket for php & mysql enlightenment @Botre for inspiration @Baller for older gfx designs @liverare for the automated authing system1 point
-
Want to buy with OSGP? Contact me on Discord! Detailed feature list: - Supports all rooftops (Draynor, Al-Kharid, Varrock, Canafis, Falador, Seers, Polivneach, Relekka, Ardougne) - Supports most courses (Gnome stronghold, Shayzien basic, Barbarian stronghold, Ape toll, Varlamore basic, Wilderness (Legacy), Varlamore advanced, Werewolf, Priffddinas) - Supports Agility pyramid - All food + option to choose when to eat - (Super) Energy potions + Stamina potions support - Progressive course/rooftop option - Waterskin support - Option to loot and sell pyramid top - CLI support for goldfarmers Custom Breakmanager: - Setup Bot and break times - Randomize your break times - Stop script on certain conditions (Stop on first break, Stop after X amount of minutes, Stop when skill level is reached) - Worldhopping - Crucial part to botting in 2023! Script queueing: - Support queueing multiple script in a row - All Khal scripts support flawless transitions in between scripts - Start creating your acc in a few clicks from scratch to multiple 99's - Flawless CLI support - Learn more here: How to use CLI parameters: - Example Usage: -script 463:ScriptFile.BreakFile.DiscordFile SAVEFILE = Saved Filename BREAKFILE = Breakmanager Filename DISCORDFILE= discordSettings Filename - SAVEFILE: Save file can be created in the GUI. Navigate to the tab you want to run and press "Save As CLI file". Please choose your filename wisely (No special characters) - BREAKFILE (Optional): Breakfile can also be create in the GUI, set the breaksettings you wish to use and press "Save new CLI BreakFile". Please choose your filename wisely (No special characters) - Final form (Note that with some bot manager you do not need to specify '-script 463'): -script 463:TaskList1.4515breaks (With breaks) -script 463:TaskList1.4515breaks.discord1 (With breaks & discord) -script 463:TaskList1..discord1 (NO breaks & discord, leave 2nd parameter empty) Proggies:1 point
-
PPOSB - AIO Hunter Brand new trapping system just released in 2024! *ChatGPT Supported via AltChat* https://www.pposb.org/ ***Black chinchompas and Black salamanders have been added back*** Supports the completion of Varrock Museum & Eagle's Peak OR CLICK HERE TO PAY WITH 07 GOLD! The script has been completely rewritten from the ground up! Enjoy the all new v2 of the script JOIN THE DISCORD CHAT FOR QUESTIONS/ SUPPORT/ CHATTING/ UPDATES! New GUI: Features: Click Here Current functioning hunter tasks: (green - complete || yellow - started || red - incomplete) Screenshots: Progressive Leveling: 1-19 --> Crimson swift 19-43 --> Tropical wagtail 43-63 --> Falconry 63+ --> Red chinchompas Updates How to setup Dynamic Signatures Report a bug CLI Support - The script now supports starting up with CLI. The commands are given below. Please put in ALL values (true or false) for CLI to work properly. Make sure they are lowercase values, and they are each separated with an underscore. The script ID for the hunter bot is 677. Parameters: EnableProgression_EnableVarrockMuseum_EnableEaglesPeak_EnableGrandExchange Example: -script 677:true_true_false_true ***Don't forget to check out some of my other scripts!*** OSRS Script Factory Click here to view thread LEAVE A LIKE A COMMENT FOR A TRIAL The script is not intended for Ironman accounts. It still works for Ironman accounts, but you must have all equipment, gear, and items.1 point
-
Molly's Orber This script is designed to make earth orbs and air orbs for over 350k gp/ph with the added benefit of getting over 30k mage exp per hour! Buy HERE Requirements: - 66 mage for air orbs, 60 for earth orbs. - 40+ hp recommended(especially at low def) Features: - Supports using mounted glory in house(requires house teleport tablets) - Supports eating any food at bank, when under a set hp - Hopping out of bot worlds - Recovers from deaths(respawn point must be lumbridge) - Emergency teleporting when under a set hp - Stamina potion usage, the bot will use one dose prior to each run - World hopping in response to being pked to prevent pkers from farming. -Ability to bring one food with you in case you drop below the emergency teleport hp, script will still tele if you drop below it and have already eaten your food. -Enabling run when near black demons to prevent some damage. -Re-equipping armor in inventory on death. Setup: Start at Edge bank, have all supplies next to each other in your bank, preferably in the front tab at the top. You must have the item "Staff of air" for air orbs or "Staff of earth" for earth orbs. Have a fair amount of cosmic runes and unpowered orbs, glories, as well as some food to eat as the bot walks past black demons and will take some damage. FOR EARTH ORBS YOU MUST HAVE ANTIDOTE++. If you are using house mounted glory option set render doors open to "On" under your house options in Runescape. CLI setup: Proggies:1 point
-
Joined Osbot in November. Here is my progress so far. Current Total level: 1300+ Skills I didn't bot: Slayer, and Prayer. -no bans so far -I don't use any scripts other than the ones I write myself. **I used APA AIO cooker before I wrote my own. I rate APA's cooker 10/10** -I don't bot one skill for more than three hours at a time Goal is at least 1750 Total Lvl Thanks for providing a great service Osbot1 point
-
this is a story about how i fell in love with maldesto: i really like maldesto because he gave me many chances on osbot, i was a cunt to him to once when i got shown some stuff - i did some bad things but he forgave me, i have seen since that he is a gr8 individual i really like him - my love doesn't die - although he doesn't like me back really good guy, always sees the best in people1 point
-
1 point
-
Use ring of life bois, just logged in on my baby bot and it was in Lumbridge, thank god I had a RoL. Ranger boots, Robin Hood hat, 4M ca$h stack, 100K ranging guild tickets + 100K bronze arrows risk. Edit: Nvm I'm a retard and didn't read the paint which clearly says that you need to hide the NPC attack options from RS settings.1 point
-
1 point
-
The script works perfect, used it for birds, falconry and salamanders. You did a great job.1 point
-
i just knew some1 would mention it as season2 came out @op New Kids Turbo & New Kids Nitro best movies ever1 point
-
Alright latest updates: - Added a more frequent beep for rogue chest area if pkers are nearby (let me know how it goes!) - Enabled alching for nature rune chests - Beta blackjack feature is now live, please note it's only beta, no luring yet, just start the script ready, near your chosen blackjack npc latest version is 0.741 point
-
1 point
-
So I bought this script tonight and I wanted to set it up at Nature Chest in Ardy and have it alch in the downtime. Only problem is is that it will not alch even when i select the option to do so. I've tried typing in the name of item i want to alch as well as entering it's ID. Am I doing anything wrong or is this a bug?1 point
-
1 point
-
1 point
-
1 point
-
1 point
-
Hi OP loving the Script the only problem that i have is the lag. It starts to lag when i bot more than 3 hours is it my own computer performance problem? I know that my Laptop is not great ... but is there a way to let it run smoothly for 3 + hours or i have to restart the bot every time ? can't wait for blackjacking1 point
-
1 point
-
1 point
-
Quick and fast order. Friendly staff immediately available in live chat. Very competitive prices.1 point
-
nonetheless the auth system is not there to sell your script for gp. Which is basically bypassing a need for our system.1 point
-
Added on Skype, waiting for response.1 point
-
been checking out this website for awhile, looking to buy my first script and get 99 mining? is it possible i can try a free trial please? ty1 point
-
1 point
-
1 point
-
1 point