Leaderboard
Popular Content
Showing content with the highest reputation on 01/22/16 in Posts
-
Introduction To Predicates What is a Predicate in Java 8? A predicate is a boolean-valued function. In Java 8, it's used primarily for it's functional properties as well as it's ability to result in a true or false statement. This is really useful when you need to filter collections without having to loop over a collection manually as the stream api allows you to also chain predicates. P: X→ {true, false} P being the predicate (value or reference passed in) and X represents the following truth statement resulting in true or false. This might be confusing at first, but I'll show examples later on how this makes sense and why you should use this over the commonly used Filter<T> in OSBot. How is this any better than OSBot's Filter<T> api? We can use predicates to chain logic expressions and filter as many conditions as me need to while keeping our logic nice and clean. We can combine two pedicates where we filter a collection where both condition are met or return the second if the first predicate returns false. Collection of Loaded NPS List<NPC> where we'll be performing our filter final List<NPC> loaded = getNpcs().getAll(); create a list of all loaded npcs in the area Simple Predicate Filtering A Predicate final Predicate<NPC> exists = npc -> npc.exists(); This creates a predicate with the truth statement P(npc) : return true if npc exist Using it inside a stream to filter a collection final NPC getNpcWhere = loaded.stream().filter(exists).findFirst().orElse(null) This will return the first match in the collection that matches the predicate truth statement that returned true or else returns a null NPC object. Chaining Predicates Two Predicates we're going to chain final Predicate<NPC> exists = npc -> npc.exists(); final Predicate<NPC> isAttackable = npc -> npc.exists() && npc.hasAction("Attack") && !npc.isUnderAttack(); Predicate Chain were 2 Predicates return true final NPC getNpcWhere = loaded.stream().filter(exists.and(isAttackable)).findFirst().orElse(null); Here, we're simply chaining preidicates. We're filtering the collection where the the npc exists and it's attackable and if both This or That Predicates Three Predicates we're going to chain final Predicate<NPC> exists = npc -> npc.exists(); final Predicate<NPC> isInteractingLocally = npc -> npc.isInteracting(getPlayers().myPlayer()); final Predicate<NPC> isAttackable = npc -> npc.exists() && npc.hasAction("Attack") && !npc.isUnderAttack(); Alright, this is where the magic happens in a combat script! We can create 1 predicate query that should always return true then either return the second one or the third depending on the second returns true or not. The logic behind this one is that in a combat script, you'd obviously want to return npcs attacking you before you attack a random npc right? So you can achieve this by doing a predicate or function. final NPC getNpcWhere = loaded.stream().filter(exists.and(isInteractingLocally.or(isAttackable))).findFirst().orElse(null); We just made a really advanced logic filter in 1 line of code! That's the power of using Predicates over a generic Filter<T>8 points
-
These are gonna be my daily drivers/travel ones. Reason I chose these: Rated for up to 24 hours on a single charge - Only takes 3 hours to charge fully Bluetooth for wireless listing and AUX cable if batteries dies. Active noice cancellation Up to 100 meters range (300 feet) LED Battery indicator Can be paired with two devices at once! Beside that these are probably the headphones with most technology atm. When you take them off your head they automatically pauses your song, and resumes it again when you put them back up ) You can press a button and pass-thu sound, if somebody talks to you, you dont need to take them off.5 points
-
by Czar Buy now (only $8.99!) 143 HOURS IN ONE GO!!!!! update: this bot is now featured on the front page of osbot! More reviews than every other fishing bot combined! 100 hour progress report!!! How to use Script Queue: ID is 552, and the parameters will be the profile name that you saved in setup! This process is really simple, just to save you headache3 points
-
NEW! supports new south + east shortcuts, new hopper (upstairs), and mouse invokes!!! (just like runelite!) 'the intelligent choice' By Czar 34-99 Mining on video!! Agility Shortcut Setup Window Preview 70 hours run time https://i.imgur.com/wiF6VPO.png3 points
-
Changes your OSBot frame title to show your current IP address of your bot. Source import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; import javax.swing.*; import java.awt.*; import java.io.BufferedReader; import java.io.InputStreamReader; import java.net.URL; @ScriptManifest(author = "Purple", name = "IP Display Changer", version = 1.01, info = "Changes the title of your osbot to display your bots IP address.", logo = "") public class Display extends Script { @Override public int onLoop() throws InterruptedException { changeFrameTitle("OSBot (" + getCurrentIPAddress() + ")"); stop(false); return 0; } public void changeFrameTitle(final String title) { for(Frame frame : Frame.getFrames()) { if(frame.isVisible() && frame.getTitle().startsWith("OSBot")) { SwingUtilities.invokeLater(() -> frame.setTitle(title)); break; } } } public String getCurrentIPAddress() { try { URL url = new URL("http://myip.dnsomatic.com/"); BufferedReader b = new BufferedReader(new InputStreamReader(url.openStream())); String ip = b.readLine(); b.close(); return ip; } catch (Exception e) { e.printStackTrace(); } return "null"; } }3 points
-
3 points
-
Alright, thank you for the fast response guys! Appreciate it, looks like I'm buying VIP.3 points
-
Script is working now, please ignore all the above posts, updates take ~12 hours to register and those posts were related to the old version thanks all, and good luck ;) @Scracky darts/arrows should be fine now, let me know if they ever mess up and I will post a fix ASAP @Mystical - glory support will be here very soon, I need it in my AIO fighter too so I absolutely must code it, apologies for lateness3 points
-
Thank you everyone for all the support and feedback, this script officially is the most sold magic script on the market! Since 2015 it has been continually updated all the way to 2025! #1 SOLD MAGIC SCRIPT #1 MOST FEATURES MAGIC SCRIPT ESC MODE, HOVER-CLICK, NEAREST ITEM CLICK, FLAWLESS JMod nearby and we still alive. Anti-ban and Optimal script usage Anti-ban: - Don't go botting more than 3 hours at once, take breaks! Otherwise the ban-rate is highly increased! - Bans also depend on where you bot, for the best results: bot in unpopular locations Banking-related spells are the lowest ban-rate (spells which require banking or can be casted near a bank, e.g. superheating, maybe alching, jewelry enchanting etc etc) since you can just go to a full world and blend in with other non-bots (humans), for example: world 2 grand exchange If casting spells on npcs, then unpopular locations reduce the banrate by alot, So make sure not to go to botting hotspots otherwise you may be included in ban waves. - Some good areas used to be (until some got popular): grizzly bear, yanille stun-alching, any overground tiles (upstairs etc) but once the areas are overpopulated, try to go to another location which is similar to the aforementioned locations. This is a very popular thread with many many users so if a new location is mentioned, the location will be populated very quickly so I can only suggest examples of good locations - Don't go botting straight after a game update, it can be a very easy way to get banned. Wait a few hours! If you ever get banned, just backtrack your mistakes and avoid them in the future: you cannot be banned without making botting mistakes. Keep in mind you can be delay-banned from using previous scripts, so don't go using free/crap scripts for 24 hours then switching to a premium script, because the free/crap previous script can still get you banned! For more anti-ban information, see this thread which was created by an official developer: http://osbot.org/forum/topic/45618-preventing-rs-botting-bans/2 points
-
Account Creation service Hosted by @Khaleesi and @Gleets! Are you getting tired of creating accounts day after day after receiving those banns? Need more time to bot instead of making accounts multiple hours a day? Your time to worry is over now, we found the solutions for those problems, We have a intelligent system running, which create those annoying accounts for you! What do we have to offer: - Custom names and passwords - Option to choose emailprovider - Affordable prices - Bulk price discount - Account delivered in short timespan Why would you choose for this service: - We can provide a large amount of account in a short timespan. (Can be discussed) - Account creation is optimized by scriptwriter III @Khaleesi - @Gleets is a goldfarmer on large scale, he knows the bussiness like nobody else - Our prices are very flexible while buying in bulk. - This service is simply amazing! Payment methodes: - Currently only 07gp - Paypal coming soon Pricing: - Basic account -> 90k (Premade names + emails + passwords) - Custom account -> 110k (You choose the name + email + passwords) - Basic account + tut island -> 200k (Premade names + emails + passwords + tut island) - Custom account + tut island -> 220k (You choose the name + email + passwords + tut island) *Bulk discounts will be negotiated on skype. **None of these emails are registered How to order: - Leave a message on this topic with: Accounts quantity, basic/Custom account, your skype. - We will contact you on skype about your order. - OR You can just contact @Gleets on skype. Workers: @Khaleesi @Gleets Contact: skype @Gleets: glenn.2dehands TOS: - I have the right to deny any incoming order or package, if I cannot provide you at the current time. - No refunds will be given once a order is fulfilled, since this is a online and virtual service, the return policy is void once the delivery is completed. - Once an order is complete, you will leave one of the workers positive feedback, failing to do so will result in a neutral feedback from us. - Payment must be done up-front, unless I deem you more trustworthy than me. - You will be instructed and guides though by me once you order, so please follow my directions. - After tutorial island we let the account cooldown for 24-48h. If you need the accounts quicker and get a "delayed" bann, this is your responsibility and no refund will be given. - When trading over 07gp in game You'll always message @Khaleesi or @Gleets on the forum, we will ALWAYS tell you the message you send.2 points
-
2 points
-
I have the following account - https://gyazo.com/c2ce0546162208333803a87aea9ff30e2 points
-
@Override public void onStart() { getBot().addMouseListener(this); try { normalImg = ImageIO.read(new URL("https://i.imgur.com/tXYml3w.png")); powerImg = ImageIO.read(new URL("https://i.imgur.com/LVpXu5C.png")); displayImage = normalImg; } catch (MalformedURLException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } } @Override public void mouseClicked(MouseEvent event) { int x = event.getX(); int y = event.getY(); if (x > 413 && x < 471 && y > 388 && y < 458) { powerfishing = !powerfishing; displayImage = powerfishing ? powerImg : normalImg; } } @Override public void mouseMoved(MouseEvent event) { int x = event.getX(); int y = event.getY(); tooltip = x > 413 && x < 471 && y > 388 && y < 458; } @Override public void onPaint(Graphics2D graphics) { Graphics2D g = (Graphics2D) graphics; g.setRenderingHints(new RenderingHints(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_OFF)); if (displayImage != null) { graphics.drawImage(displayImage, 420, 400, null); } if (tooltip) { g.setColor(Color.BLUE); g.drawString("Click to " + (powerfishing ? "disable" : "enable") + " powerfishing.", 311, 15); } } Got it all working perfectly Thanks, code posted for people looking for this in the future2 points
-
efficient & flawless Link: Script now live: Here Features Bypasses Jagex's camera movement bot trap. new! Uses ESC key to close the interface new! Uses the higher xp method (aligns the camera to the target so it closes the menu when it pops up) NEVER gets in combat, 'tower' method of getting out of combat isn't even there (deliberately). Logs out when no money left Equips bronze arrows when necessary Displays 'goal' information, e.g. (at 77 range it will also show details for 80 range, time left, xp left, etc) Automatically equips higher level gear such as d'hide chaps and vambs Runs away just in case of emergency! ................................................................................................................................ With the bots on OSBot, Czar promises to deliver yet another incredible piece to the CzarBot empire. This means you will get to run the script with no worries about bans and xp waste. LEGENDARY HALL OF FAME 100 hour progress report Configuring the bot and the result: Set the npc attack option to 'Hidden' if you want to avoid deaths forever! For extra XP FAQ Why should I use this script when there are millions out there? It is the best script. Simply. Why are you releasing this now? It's time to make it public, it was privately shared with some friends and has been working flawlessly. Instructions There are no instructions. We do the all the work for you. CzarScripting™ Tips If you are low level, you can use a ranging potion at level 33 ranged to get in the ranging guild. Try and have as high ranged bonus as possible. Gallery ANOTHER 1M TICKETS GAINED !!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
-
Want to buy with OSGP? Contact me on Discord! Detailed feature list: - Task/progressive based setup - Gem cutting - Amethyst cutting - Glassblowing - Molten glass smelter - Armour crafting - Jewelry crafting/smelting - Jewelry stringing - Battlestaff combinging - Flax picking + spinning - Drift net weaving - Hide tanning - Shield crafting - Birdhouse crafting - Clockwork crafting - 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 2024! 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 666: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 manager you do not need to specify -script 666): -script 666:TaskList1.4515breaks (With breaks) -script 666:TaskList1.4515breaks.discord1 (With breaks & discord) -script 666:TaskList1..discord1 (NO breaks & discord)1 point
-
1 point
-
1 point
-
1 point
-
1 point
-
Plantronics BackBeat PRO (In case you can't see the name on the packaging, it isn't too clear.) Link to amazon.1 point
-
I never share my OSBot account!, and all my PCs are in my own room! I use it only for myself.1 point
-
1 point
-
They retail for $249,99. But depending on store/country you may be able to find them cheaper. I got mine for just under $180, which is think is a stun for the value. Yeah, it's great. You don't find premium features on many other headphones, and probably not even in this price range. As well as the thing where you lift them off your head it the music pauses by itself.1 point
-
1 point
-
1 point
-
1 point
-
yup, it's a VIP feature tho! Pay 9.99 for various things like VIP only scripts (few are in dev should be expected to see some this month) You get the ability to launch multiple bots + a bunch of other cool shit. Get VIP from here: http://osbot.org/forum/store/1 point
-
1 point
-
@Override public int onLoop() throws InterruptedException { changeFrameTitle("OSBot (" + getCurrentIPAddress() + ")"); stop(false); return 0; } changeFrameTitle("OSBot (" + getCurrentIPAddress() + ")"); stop(false); stop(false);1 point
-
Completed 4 quests for me in the blink of an eye, trusted with a rare name and high-level account! Thanks Completed 4 quests for me in the blink of an eye, trusted with a rare name and high-level account! Thanks1 point
-
1 point
-
1 point
-
1 point
-
Oh so it's basically just default java implementation, I was expecting something more complex built into the API. Thanks I think i can figure it out1 point
-
1 point
-
he has the newest version You'll always have the latest version available No need to worry for anyting, I do all the work for you! Khaleesi1 point
-
1 point
-
1 point
-
Cutting magics at Sorcerers tower is bugged. My character just stands in front of the bank building when trying to bank. After I manually clicked into the bank, it managed to bank by itself. However, it couldn't quite find its way back to the location EDIT: Ignore this, now it's working again for some reason lol1 point
-
1 point
-
I never asked one person to do all the work. You can do it for one monster and get the script free. I am only planning on releasing this because of a promise. I don't give a shit if you don't think it's worth it, I don't give a shit how much money I could make releasing this. I'm not going to lose sleep because you believe putting a little bit of time in to get a script isn't worth it. Pre-khal slayer is currently in testing, although I haven't heard anything about it in ages. Czar uses his slayer script as a hype generator, he has no intentions of releasing it. Lastly, there is no way Valkyr will be releasing his slayer script here. If you want a slayer script on the market and you want to help in return for a month's usage then please go ahead. Otherwise, fuck off. You can hold on to that little glimmer of hope that czar or prekhal will be releasing their scripts soon, but chances are they wont.1 point