Leaderboard
Popular Content
Showing content with the highest reputation on 06/23/17 in Posts
-
Today, for the first time, I was able to watch my farm start itself up mule itself and shut it self down to get ready for tomorrow. 100% automated. I know a lot of people do this, but I took this on as a goal and today I can say I am successful. I own the hardware, I own the proxies, the account creation is automated and I built it, muleing is automated and I wrote all the scripts I am using. I saw 9/10 bots collect almost 10mil gold today and the hardware I have can handle 5 times that so I will be scaling up slowly. I couldn't have done it without this community. You guys and gals have helped me a TON and I want to know I appreciate all of you. To anyone reading this that thinks they can't farm: If you are really committed you can. At the beginning I didn't know any java (still dont know much) and while my career in IT gave me some advantages, it was still a labor of love. If you really want it to happen it will. I know many of you have bigger, better, more efficient farms but I am happy with mine. Thanks again OSbot community!7 points
-
3 points
-
The road ahead of you is long. They have been detecting and banning those like you for YEARS and you have been learning how to avoid it for a week. Expect to get banned. A lot. And here is the most important thing I have learned on my journey: What you learn on your own is MUCH more valuable than advice you will receive. Most mean well, but much of the help that is offered is full of confirmation bias, old wives tales, and just flat out incorrect information. That's not to say you can't trust any help offered, they usually mean well, but what you learn the hard way is far more useful. good luck3 points
-
I think scamquitting on OSBot is all the rage with this friend group. At least you morons stay in your own groups, wouldn't want your illness spreading.3 points
-
NEW! Added Gemstone Crab! 81 Hours at Cows Brutal Black Dragon support Sulphur Nagua support Blue Dragon 99 ranged 99 Ranged at Gemstone Crab 81 Range F2p Safespotting Hill Giants Hotkey List // F1 = set cannon tile // F2 = hide paint // F3 = Set afk tile // F4 = reset afk tile // F6 = Set safespot tile // F7 = activate tile selector // F8 = Reset tile selector // F9 and F10 used by the client, EDIT: will re-assign as they are no longer used by client // F11 = Set breaks tile // F12 = Reset breaks tile User Interface Banking Tab Demo (handles everything with banking) You can copy inventory (to avoid adding individual items...), you can insert item names which have Auto-Fill (for you lazy folk!) and you can choose whether to block an item and avoid depositing it in bank, ideal for runes and ammo. Looting Tab Demo (From looting to alchemy, noted/stackable items too) You can choose whether to alch an item after looting it simply by enabling a checkbox, with a visual representation. All items are saved upon exiting the bot, for your convenience! Tasking Demo (Not to be confused with sequence mode, this is an individual task for leveling) You can set stop conditions, for example to stop the bot after looting a visage, you can have a leveling streak by changing attack styles and training all combat stats, you can have windows alert bubbles when an event occurs and an expansive layout for misc. options! Prayer Flick Demo (Just example, I made it faster after recording this GIF) There are two settings: Safe mode and efficient mode, this is safe mode: Fight Bounds Demo Allows you to setup the fight bounds easily! Simplified NPC chooser Either choose nearby (local) NPCs or enter an NPC name to find the nearest fight location! Simple interface, just click! Level Task Switch Demo (Switching to attack combat style after getting 5 defence) You can choose how often to keep levels together! e.g. switch styles every 3 levels Cannon Demo (Cannon is still experimental, beta mode!) Choose to kill npcs with a cannon, recharges at a random revolution after around 20-24 hits to make sure the cannon never goes empty too! Results Caged Ogres: How does this bot know where to find NPCs? This bot will find far-away npcs by simply typing the NPC name. All NPCs in the game, including their spawn points have been documented, the bot knows where they are. You can type 'Hill giant' while your account is in Lumbridge, and the bot will find it's way to the edgeville dungeon Hill giants area! Here is a visual representation of the spawn system in action (this is just a visual tool, map mode is not added due to it requiring too much CPU) Fight Area Example (How the bot searches for the npc 'Wolf') Walking System The script has 2 main walking options which have distinctive effects on the script. The walking system is basically a map with points and connections linking each point. It tells the script where to go, and decides the routes to take when walking to fightzones. Walking system 1 This uses a custom walking API written by myself and is constantly being updated as new fightzones are added. Pros: - Updates are instant, no waiting times - More fightzones are supported Cons: - Sometimes if an object is altered, the changes are not instant - Restarting the script too many times requires loading this webwalker each time which adds unnecessary memory (there is no way to make it only load at client startup since I don't control the client) Walking system 2 This is the default OSBot webwalking API - it is relatively new and very stable since the developers have built it, but is currently lacking certain fightzones (e.g. stronghold) and other high level requirement zones. It is perfect for normal walking (no object interactions or stairs, entrances etc) and never fails. Pros: - Stable, works perfect for normal walking - All scripters are giving code to improve the client webwalker - More efficient when restarting the script since it is loaded upon client start Cons: - No stronghold support yet - Some new/rare fightzones not supported yet - If there is a game-breaking update or an unsupported fightzone, it may take some time to add/repair (less than 24 hours usually) So which system should I choose? Whichever one suits your chosen fightzone best! There really shouldn't be any problems - the sole purpose of these options are for backup and emergency purposes, if the script ever messes up there is always the next option to select. Note: If the script ever fails, there will be immediate updates to fix the walking systems! Script Queue/Bot Manager: Script ID is 758, and the parameters will be the profile name that you saved in the fighter setup! Bug Report templates: New feature request - What is the new feature - Basic description of what the script should do - Basic actions for the script: 'Use item on item' etc. For when the script gets stuck on a tile (or continuous loop): - Which exact tile does the script get stuck on? (exact tile, not 'near the draynor village') - Plugin or normal script? - Did you try all 3 walking options? Script has a logic bug (e.g. dies while safespotting) or (cannon mode doesn't pickup arrows) - What is the bug - How did you make the bug happen - (optional) recommendation for the bug, e.g. 'make the script walk back' or something - Tried client restart? - Normal script or a plugin? - Which exact setup options are enabled? Afk mode, cannon mode, etc etc.2 points
-
Brought to you by the #1 most sold script series on the market. Come and see why everyone's choosing Czar Scripts! This is the most advanced Agility bot you will find anywhere. BUY NOW $9.99 NEW! Added Both Wyrm Courses! SCRIPT INSTRUCTIONS Optimal Setup for the bot: Please set the mouse zoom to far away (to the left, like below) so that more obstacles can be seen in the view, and so the script can be more stable and reliable Also, make sure to have roofs toggled off (either go to settings tab or type ::toggleroof) for optimal results2 points
-
Script Version: 40.0 | Last Updated: 10/11/2023 [MM/DD/YYYY] LEADERBOARDS: https://cnar.dev/projects/edragons/leaderboard.php Script Progress Pictures Script Development Updates Script Manual GUI Settings (Disable Ad-block to see Images) Gui Saving / Loading: When selecting 'Save settings' a pop up directory will show up. Set a file name under "File name:" then click 'ok' or 'save'. It will save as a .txt file. When selecting 'Load settings' a pop up directory will show up. Simply find your saved .txt file and click it. Once selected, select 'ok' or 'load'. Safe-Spotting Mode: Please start the script at your preferred safe spot when selecting this option and pressing start OR load your saved settings.txt file to auto fill your safe spot! Looting Bag Mode: If toggled, it will use random behavior when adding bones or hides to the Looting Bag! If you happen to die the script will have added it to the lootlist and retrieve it once it spawns on dragon death and continue using it!. Loot distance: Default = 10 Tiles away from your player. Set your custom distance if you prefer. Loot range ammo: Loots the ammo type you have equipped if you are ranging! Default = Stack of 5 Bolts on floor Special Attack: Uses special attack during combat [Main weapon support only!] Deathwalk Mode: Handles death and regears with the equipment set from on start of the script. Current Modes Supported [BETA]: Under production. No guarantee that it is 100%. Green Dragons: West wilderness East wilderness Graveyard wilderness Lava maze wilderness Myth guild [BETA] Blue Dragons: Taverly Watchtower Ogre enclave Heroes' guild Myth guild [BETA] Black Dragons: Taverly Lost city chicken shrine Myth guild [BETA] Metal Dragons: Brimhaven Brutal Dragons: Black dragons in zeah catacombs [BETA] Blue dragons in zeah catacombs [BETA] Red dragons in zeah catacombs [BETA] Mode Help Blue Dragons Supported safespots for taverly mode only. *Other modes can use any spot* Near the agility pipe | Less traffic but with lower profit/hr Inside the Expanded blue dragon room Items | Requirements Anti-dragon shield Ranged/Melee/Magic support! Food Prayer potions *Blowpipe mode taverly mode* Summer Pie *Taverly mode* Falador teleports *Taverly mode* Dusty key *Taverly mode* Dueling rings *Watchtower mode or Heroes guild mode* Games necklaces *Heroes guild mode* Black Dragons Supported safespots Anywhere in the dragon area. Items | Requirements Anti-dragon shield Ranged/Magic support only! Food Anti-poisons *If taverly mode* Falador teleports *If Taverly mode* Dusty key *If Taverly mode* Raw chicken *Lost city mode* Green Dragons Ranged/Melee/Magic support! Supported safespots Graveyard: Anywhere in the myth guild or lava maze dragon area. Items | Requirements East Dragons: Dueling ring *Not optional* Games necklace *Optional* Glory *Optional* Metal Dragons Items | Requirements Select Bury bones option + Dragon bones in loot table to bury bones! Banking is not supported. Please start at the dragon room. It will randomly choose a metal dragon. Range / Magic only support Brutal Dragons Items | Requirements Ranging potions Extended antifire potions Prayer potions Food prayer > 43 rope tunnel route unlocked Start at blast mine bank At this time it will auto grab my set amount of prayer pots. Full GUI customization will come soon. CLI Information Script ID: 898 Create your own file & save under c/users/osbot/data as filename.txt Mode names "Blue dragons(Taverly)", "Blue dragons(Watchtower)", "Blue dragons(Heroes guild)", "Blue dragons(Myth guild)", "Black dragons(Taverly)", "Black dragons(Lost City)", "Black dragons(Myth guild)", "Green dragons(West)", "Green dragons(Graveyard)", "Green dragons(Lava maze)", "Green dragons(Myth guild)", "Metal dragons(Brimhaven)", "[BETA]Brutal dragons(Black)" Food names "Trout", "Salmon", "Tuna", "Potato with cheese", "Lobster", "Swordfish", "Jug of wine", "Monkfish", "Shark", "Manta ray", "Tuna potato", File creation template *See gui for options* *Create your own for validation*: #Dragon GUI Settings #Fri Mar 30 20:14:43 EDT 2018 checkSummerPieActive=false checkEatToFull=true textFoodAmount=1 checkBurningAndGlory=false checkRanarrWeed=true radioWorldHopper=false radioStrengthPotionRegular=false checkRegularWalker=false radioAttackPotionSuper=false radioSpecialAttack=false checkAdamantHelm=true checkWalkToBank=false checkGloryAndGames=false checkLootingBag=false radioMagicPotion=false radioSafeSpot=true radioRangePotion=true radioStrengthPotionSuper=false textWorldHopCount=7 checkRespawnTeleport=false comboDragonsMode=Blue dragons(Watchtower) radioCombatPotion=false checkAutoEatAt=false checkNatureRune=true textEatAt=60 checkAdamaniteOre=true checkBuryBones=false checkGamesAndDueling=false radioAntipoisonPotion=false checkRubyDiamondCombo=false checkSafetyTeleport=false checkRuneDagger=true checkLootAmmo=true radioAttackPotionRegular=false checkBlowpipeActive=false radioAntifirePotion=false checkDragonhide=true checkDragonBones=true checkGloryOnly=false textLootDistance=10 safeSpot=2443,3083,0 checkAntiPK=false checkClueScroll=false checkBurningAndDueling=false comboFoodType=Shark checkDeathwalking=false Bug Report Template Status in the paint(Screenshot): Client Version: "Osbot x.x.x" Client Type(Mirror Mode OR Stealth Injection): Inventory layout: Equipment layout: GUI settings (Screenshot(s)): What is the error that is occurring? How can I replicate this error? Logger output (Screenshot): GRAB YOUR OWN DYNAMIC SIGNATURE HERE https://cnar.dev/projects/edragons/users/All_Users.png //This gives you the all users image (600x200) I encourage you to display your signatures and linked to the thread! Would appreciate that To get your own just do (Case sensitive) https://cnar.dev/projects/edragons/users/YourNameHere.png if your osbot name has spaces (ex. Cool doot 33) https://cnar.dev/projects/edragons/users/Cool doot 33.png PURCHASE HERE2 points
-
tbf that was most likely a manual ban because jagex knew he was going to make a video about it2 points
-
Since you're banned on Sythe you will stay in TWC here. Please sort out your Sythe situation first then you can go ahead and post a TWC appeal.2 points
-
2 points
-
2 points
-
2 points
-
That's the thing about free scripts; you never hear about how useful it has been and never get a thank you. You only get replies in your inbox when something isn't working.2 points
-
2 points
-
2 points
-
I'm gonna compile this into a jar and demonstrate the usage later today. It was intended to be source code so other scripters could use, so I didn't spend anytime on user interface. Plan on tonight creating a graphical user interface with the option to specify proxy/no proxy and CLI compatibility so it can create an account and instantly start osbot. Down the line, I'm trying to figure out a way to register actual emails and verify the accounts. You can plan for a more user orientated application of this late tonight or tomorrow.2 points
-
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
-
Want to buy with OSGP? Contact me on Discord! Detailed feature list: - Supports banking at 99% of the locations - Task based setup (1-99) - Supports every fish (Shrimps, sardine, herring, anchovies, mackerel, trout, cod, pike,salmon, tuna, lobster, bass, Leaping trout/salmon/sturgeon, swordfish, monkfish, shark, dark crab, angler fish, sacred eel, infernal eel) - Supports almost every bank location (New ones can be requested) (Lumbridge swamp, Al-Kharid Sea, Draynor, Lumbrdige river, barbarian village, shilo village, Catherby, corsair cove, fishing guild, piscatoris, port piscarilius, karamja, jatizso, seers, gnome stronghold, Lands' end, Zul andra, Mor Ul rek) - Fish & bank (Preset) - Fish & bank (Custom) supports almost every location - Fish & Drop (Custom) supports every fishing spot - Barbarian fishing (Select leaping fish at fish & drop) - Cook fish when fire is nearby (Fish & Drop Only) - Minnows support - Karambwans + Karambwanji support - Aerial fishing support - Drift net fishing support - Humanlike idles - Dragon harpoon special - Barehand fishing option - Fishing barrel support - Spirit flakes support - Drop clue bottles support - 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 571:ScriptFile.BreakFile.DiscordFile SAVEFILE = Saved Filename BREAKFILE = Breakmanager 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 managers you do not need to specify -script 571): -script 571:TaskList1.4515breaks (With breaks) -script 571:TaskList1.4515breaks.discord1 (With breaks & discord) -script 571:TaskList1..discord1 (NO breaks & discord) Proggies: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 access Features: All spawns - Supports every multi-crab spawn point both along the south coast of Zeah and Crab Claw Isle All combat styles - Supports Ranged, Magic and Melee combat training. The script will not bank runes of any type Saving GUI - Intuitive, re-sizeable and fully tool tipped GUI (Graphical User Interface) allowing you to tailor the script session to your needs, with configuration saving / loading Human replication - Designed with human simulation in mind - multiple options to replicate human behaviour available in the GUI Setup customiser - Inventory customiser allows you to visually see your trip setup CLI support - The script can be started from the command line All potions - Supports all relevant potion types (including divine potions!), multiple potion types simultaneously and varying potion ratios Healing in a range - Dual slider allows you to specify a range within which to consume food. Exact eat percentages are calculated using a Gaussian distributed generator at run time Healing to full at the bank - When banking, the script will eat up to full hit points to extend trip times Safe breaking - Working alongside the OSBot break manager, the script will walk to safe place approximately two minutes before a break starts to ensure a successful log out Anti-crash - Smart crash detection supports multiple anti-crash modes (chosen in the GUI): Hop worlds if crashed - the script will walk to a safe place and hop worlds until it finds a free one, at which point it will resume training Force attack if crashed - the script will fight back and manually fight pre-spawned sand crabs until the crasher leaves Stop if crashed - the script will walk to a safe place and stop Ammo and Clue looting - Clue scroll and Ammo looting system based on a Gaussian-randomised timing scheme All ammo - Supports all OSRS ammo types and qualities Spec activation - Special attack support for the current weapon to maximise your exp per hour Auto-retaliate toggling - The script will toggle auto-retaliate on if you forget Move mouse outside screen - Option to move the mouse outside the screen while idle, simulating an AFK player switching tabs Refresh delay - Option to add a Gaussian-randomised delay before refreshing the chosen session location, simulating an AFK player's reaction delay Visual Paint and Logger - Optional movable self-generating Paint and Timeout Scrolling Logger show all the information you would need to know about the script and your progress Progress bars - Automatically generated exp progress bars track the combat skills that you are using Web walking - Utilises the OSBot Web alongside a custom local path network to navigate the area. This means the script can be started from anywhere! Safe banking - Custom banking system ensures the script will safely stop if you run out of any configured items Safe stopping - Safely and automatically stops when out of supplies, ammo or runes Dropping - Drops useless/accidentally looted items to prevent inventory and bank clutter All food - Supports pretty much every OSRS food known to man. Seriously - there's too many to list! ... and many more - if you haven't already, trial it! Things to consider before trying/buying: Mirror mode - currently there appear to be some inconsistencies with behaviour between Mirror mode and Stealth Injection meaning the script can behave or stop unexpectedly while running on Mirror. I would urge users to use the script with Stealth Injection to ensure a flawless experience! Since Stealth Injection is widely considered equally 'safe' to mirror mode and comes with a host of other benefits such as lower resource usage, this hopefully shouldn't be a problem. Using breaks - the script supports breaks and will walk to a safe place ready to log out approximately two minutes before a configured break starts. However, upon logging back in, your spot may no longer be open. If you configure the crash mode to be either 'Hop if crashed' (default) or 'Stop if crashed', this will not prove to be a problem. However if using 'Force attack if crashed', the script will attempt to take back the spot by crashing the occupying player and manually attacking spawned sand crabs. Be aware that players have a tendency to report anti-social behaviour such as this! Avoiding bans - while I have done my utmost to make the script move and behave naturally, bans do occasionally happen, albeit rarely. To minimise your chances of receiving a ban, I would strongly suggest reviewing this thread written by the lead content developer of OSBot. If you take on board the advice given in that thread and run sensible botting periods with generous breaks, you should be fine. That being said, please keep in mind that botting is against the Oldschool Runescape game rules, thus your account will never be completely safe and you use this software at your own risk. Setting the script up - I have done my best to make the GUI (Graphical User Interface) as intuitive as possible by making all options as self explanatory as I could, however if you are not sure as to what a particular setting does, you can hover over it for more information. If that doesn't help, just ask on this thread! Web-walking - alongside a network of paths, the script moves around with the OSBot web-walking system, using it when in unknown territory. While it has proven very reliable, there are naturally some areas for which the web-walker may struggle. As a result, prior to starting the script, I would highly recommend manually navigating your player close to the sand crabs bank, however in practice, anywhere on Zeah should be fine. Script trials: I believe that trying a script before buying is paramount. After trying the script, hopefully you will be convinced to get a copy for yourself, but if not you will have gained some precious combat experience! If you're interested in a trial, please follow the instructions on my trials thread which can be found here. Gallery: Start up GUI (Graphical User Interface): Paint (optional, movable and self-generating): User screenshots: Recent Testimonials: Starting from CLI: This script can be started from the command line interface. There is a single parameter, which can take two (and only two) values: 'gui' or 'nogui'. 'gui' will start the script and show the gui, 'nogui' will skip the GUI setup and start the script using your save file as the configuration. To start from CLI with 'nogui', the script requires a valid GUI save file to be present - if you haven't already, start the script manually and configure the GUI to suit your needs. Then hit 'Save configuration' and in future starting from CLI will use these configured settings. The script ID is 886. Example CLI startup: java -jar "osbot 2.4.137.jar" -login apaec:password -bot apaec@example.com:password:1234 -debug 5005 -script 886:nogui1 point
-
People are intimidated by Task/Node based scripts because they think its difficult to write and understand. Well you shouldn't be scared, because I'm going to cover everything you need to know. Before going on to the tutorial, I'm expecting from you, To have at least basic knowledge of java To have at least basic knowledge of the OSbots API So what are Task/Node based scripts? Well its simply states but in OOP design. Alright, so we are going to make an abstract class for a Task. We will use this code which I will explain in a bit. import org.osbot.rs07.script.MethodProvider; public abstract class Task { protected MethodProvider api; public Task(MethodProvider api) { this.api = api; } public abstract boolean canProcess(); public abstract void process(); public void run() { if (canProcess()) process(); } } Breaking down this code just comes simply to a few things. A constructor which accepts the MethodProvider class, but why shouldn't it accept the Script class? Well because we only want the task to know about the OSbot api, not the whole methods that the Script class can have, like onLoop(), onStart(), etc. protected MethodProvider api; public Task(MethodProvider api) { this.api = api; } An abstract boolean public abstract boolean canProcess(); An abstract method public abstract void process(); And a run method public void run() { if (canProcess()) process(); } When a class will inherit the methods from the Task class, that class will have a constructor, an abstract method and boolean. The boolean canProcess() will be the condition on which the process() method will execute code. So basically we do the checks and processing with the run() method, we would just check if the condition is true and let the process() method execute code accordingly. Now, we got that abstract class Task, we are going to make it do work for us. We are going to make a drop task, the class will extend the Task class and it will inherit the abstract methods which the Task class has. The drop task will have a condition, the condition will be api.getInventory().isFull(), the condition will return true after the inventory is full and let the process() method execute script accordingly, the code will be api.getInventory().dropAll(); Our class will look something like this import org.osbot.rs07.script.MethodProvider; public class DropTask extends Task { public DropTask(MethodProvider api) { super(api); } @Override public boolean canProcess() { return api.getInventory().isFull(); } @Override public void process() { api.getInventory().dropAll(); } } As you can see we declare a constructor public DropTask(MethodProvider api) { super(api); } Now you might ask why the constructor looks a bit differently from the abstract Task class and what super(api) means? the super() keyword invokes the parents class constructor AKA the Task's class constructor. Now going further we see @Override public boolean canProcess() { return api.getInventory().isFull(); } So that is how our condition is handled, we just return the booleans variable based on what the getInventory().isFull() returns. In term, if the inventory is full the condition will be true, if the inventory is empty the condition will be false. Further on we see @Override public void process() { api.getInventory().dropAll(); } This is basically what our custom task will do after the canProcess() is true, aka when the condition is true. If inventory is full -> we will drop the items. ' After we got our custom task done, we need to let our script execute the tasks, now how we will do it? Simply we will open our main class which extends Script, meaning that the main class is a script. We declare a new ArrayList at the top of our class, to which we will add tasks to. Our main class should look like this import java.util.ArrayList; import org.osbot.rs07.script.Script; public class Main extends Script{ //this is our array list which will contain our tasks ArrayList<Task> tasks = new ArrayList<Task>(); @Override public int onLoop() throws InterruptedException { return 700; } } Now we have our ArrayList which we have a non primitive data type in it (<Task>), in term think of it like the ArrayList is inheriting the methods from Task class. All though its a different topic called https://en.wikipedia.org/wiki/Generics_in_Java you can look into that if you want. Alright, so we have our ArrayList, time to add our tasks to it. In our onStart() method, which only executes once when the script starts we simply add tasks.add(new DropTask(this)); So basically we are adding a new task to the ArrayList, by doing that, to the .add() we add a new object of our DropTask by doing .add(new DropTask(this)); our DropTask has a constructor for MethodProvider which we simply pass by doing DropTask(this) the keyword this references this class that contains the code. Now why does it work by referencing this class, its because the Main class extends Script, the Script class extends MethodProvider as its stated in the OSBots API docs. So we added our tasks to the ArrayList, now we need to check the conditions state and execute the code accordingly. We simply add this to our onLoop() method. tasks.forEach(tasks -> tasks.run()); Which will iterate trough all the tasks in the ArrayList and execute the run() method, as we remember the run() method in our abstract Task script simply checks the condition and executes code if the condition is true. After all this our main class should look like import java.util.ArrayList; import org.osbot.rs07.script.Script; public class Main extends Script{ ArrayList<Task> tasks = new ArrayList<Task>(); @Override public void onStart(){ tasks.add(new DropTask(this)); } @Override public int onLoop() throws InterruptedException { tasks.forEach(tasks -> tasks.run()); return 700; } } Now after all this you can start making your own tasks and adding them to the list. Alright for those who want quick pastes you can find them here in this spoiler: So no need to be scared, you just really need to try and do it, hope this tutorial helped.1 point
-
When someone talks about task based script or enum based scripts there's always that other guy: Just use onloop bro! What does that mean though? Well first off you can think of it as normal scripting--it's not new! For an example take a look at this onloop() /** * Just use onLoop() bro * * @return the loop interval * @throws InterruptedException if something fucks up */ @Override public int onLoop() throws InterruptedException { if (!inventory.isFull() && cows.cowsNearby()) { status = "At work--picking up bones and hides..."; bone.pickupBones(); hide.collectHides(); hideCount = hide.getHideCount(); boneCount = bone.getBonerCount(); } else if (inventory.isFull()) { status = "Time to bank"; goToBank.walkToBank(); } else if (!cows.cowsNearby() && inventory.isEmpty()) { status = "Walking to cows for more loot"; cows.walkToCows(); } return random(200, 300); } It's small and concise. One could read it and understand what is going to be happening. Start from the top and work your way down: Inventory not full and cows nearby? Pickup some shit. Inventory full? Go bank Inventory not full and no cows nearby? FIND DEM COWS! It's easy to read, right? Just use onloop() bro Full project has been uploaded to this thread Bank.java CollectBoners.java CollectHide.java Main.java WalkToCows.java1 point
-
25m since no one seems interested in 4 months lol1 point
-
Considering actually learning Java as a language is neither my career choice nor something I actually give two shitsticks about, as long as I pull in an income to avoid having to slave while at Uni, ignorance is bliss. (Also still awaiting for my own special :spoonfeed: emote )1 point
-
1 point
-
1 point
-
1 point
-
hey I bought your whole selection of scripts, but they aren't showing up in my list and it says they expired pls trial1 point
-
Kaarthal was a French military and political leader who rose to prominence during the French Revolution and led several successful campaigns during the French Revolutionary Wars. As Kaarthal I, he was Emperor of the French from 1804 until 1814, and again briefly in 1815 (during the Hundred Days). Kaarthal dominated European and global affairs for more than a decade while leading France against a series of coalitions in the Kaarthalic Wars. He won most of these wars and the vast majority of his battles, building a large empire that ruled over continental Europe before its final collapse in 1815. One of the greatest commanders in history, his wars and campaigns are studied at military schools worldwide. Kaarthal's political and cultural legacy has endured as one of the most celebrated and controversial leaders in human history.1 point
-
1 point
-
He could, although users could try and fake this news to exploit getting trials so he should be cautious doing so !1 point
-
1 point
-
1 point
-
1 point
-
1 point
-
I'm buying 100m need this asap. Skype: laxrules2 I will pay over 1$ for it.1 point
-
1 point
-
1 point
-
1 point
-
1 point
-
1 point
-
Cleaned bank, Took payment did 10 quests! Banned me on skype, Scammed a few others.......1 point
-
If you're looking for a simple solution and don't want to go through the hassle of creating your own GUI, and this is the only data you want to input, consider using a JOptionPane. Just remember to check the data that's inputted and ensure that it's valid, and if not pop the option pane up again! -Apa1 point
-
1 point
-
1 point
-
Can I get a trial for this? I want to try it out before risking it on my main. So close to 99 :P1 point
-
1 point