Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 01/22/16 in all areas

  1. 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
  2. CzarScripts #1 Bots LATEST BOTS If you want a trial - just post below with the script name, you can choose multiple too. Requirements Hit 'like' on this thread
    6 points
  3. 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
  4. 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 headache
    3 points
  5. 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.png
    3 points
  6. 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
  7. Alright, thank you for the fast response guys! Appreciate it, looks like I'm buying VIP.
    3 points
  8. 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 lateness
    3 points
  9. 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
  10. 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
  11. I have the following account - https://gyazo.com/c2ce0546162208333803a87aea9ff30e
    2 points
  12. @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 future
    2 points
  13. Although it took us almost two years to finally release web walking, this update marks a point where our technology exceeds that of our old school botting competitors. Thanks to @MGI, we made the necessary adjustments to fine tune many facets of our web walker and went on a linking rampage. If there is a will, there is a way. Spirit trees, Sailing, quests, inventory items, obstacles, and dungeons; it has only just begun. This changes everything and really sets us apart from our competitors. As a scripter myself, I began re-writing my kCutter script to exclusively use web walking. @MGI surprised me when I started the script at the top of Lumbridge castle and my character walked to Catherby docks, took a boat to Karamja, took another boat to Port Khazard, and then began chopping yews outside of Yanille. Before scripts such as Slayer were daunting, now it's become a very real and manageable possibility for many scripters. Enough pep-talk, here's the nitty gritty: @MGI updates: -Improved quests api -All the links for webwalking including Spirit trees, sailing, quests, and much more -NodeRouteFinder performance & behavior updates -Various improvements and stability re-works; 1,500 lines of code (edit: more like 15000 actually) @Alek updates: -Smoothed camera and walking in WebWalkEvent -Patched Bank enableMode -Updated spell books -Patched WalkingEvent setMinDistanceThreshold() We still have a lot we're changing and adding, stay tuned for jewelry teleports, magic teleports, more quests, and more means of getting to where you need to go. API Docs have been updated -The OSBot Staff
    1 point
  14. its working fine know ;)
    1 point
  15. 1 point
  16. Don't risk it dude, you will regret it deeply in the end, no one gets out alive.
    1 point
  17. sup m8 maybe can give trial ?
    1 point
  18. Did my cape on my main, really fast and kept me updated throughout. Really friendly and helpful, very happy! I'll probably be back again!
    1 point
  19. Do not put dark magicians name in your thread again, he is not vouching for you.
    1 point
  20. Order form: What do you need? : Payment method? : Will you go first or use a middleman : Do you agree to the TOS? : What is your Skype? : T.O.S 1. You may not log into the account during a service unless you have permission from the owner of the service, doing so will result in the termination of the service with NO Refund. 2. You MUST NOT change the details of the account until the service has been completed, doing so will result in a void service with NO Refund. 3. If there are any items required for the service, it is between you and the service owner to come to an agreement on who covers them 4. You MUST change your password after the service is completed 5. If you have any substantial wealth on the account, it is your responsibility to protect it (Either Bank Pin/Transfer Trade) 6. Once the service is complete you must leave Feedback for the relevant parties involved 7. You MUST Post on the service thread to acknowledge their individual T.O.S and start the service 8. If the Service is requested to be done legit, any T.O.S related to bans/mutes become obsolete (Unless evidence can be provided of prior botting) 9. You will pay upfront or a middleman will be used. 10. Both myself and my workers have the right to decline any orders. My workers is @mma321 and myself for now.
    1 point
  21. 1 point
  22. Hey can i try trail?
    1 point
  23. ive got myself the sms street from 50. cent bought it for $160 at that time, these are way and way better
    1 point
  24. I just seen this on facebook, was gonna post when I got to pc lol
    1 point
  25. Well oops, used the wrong username after searching for myself on something else. ;) Chesher here!
    1 point
  26. Dope script brother, may i please get a 24hr trial>? os id is: 209886
    1 point
  27. You're right, but we're talking about nano seconds here :P It's not going to make a difference when it comes to RuneScape scripting. However, streams are a little bit slower than iterating over a collection using an iterator, but I'd rather have functionality and clarity of minimal performance when it comes to writing scripts. Some value speed over quality of life. Nice point out though.
    1 point
  28. You didn't mention anything about execution time, you think it will be faster then a regular Filter? Khaleesi
    1 point
  29. Updated to version 0.9! This update fixes an issue that sometimes happens when your player accidentally attacks a chin! Your player will now realize you are in combat and immediately stop and go back to catching chins.
    1 point
  30. i have tried several different times, ive tried different spots, ive tried starting from bank, and even switching my inventory. Let me know what you come up with and I appreciate your hard work and quick response times!
    1 point
  31. Oo I will add the remainder of Zeah banks, thanks for reminding me As for bird nests and other options: I will re-introduce the old script setup window, since it had world hopper, bird nest looting, stop at X level, antiban option etc. and this new one missed those out update coming up !
    1 point
  32. Ban rate for bank-related tasks is very low, almost none, (if you are in w2 and blend in) Ban rate for stun/alching totally depends on where you stunalch, if you are in a typical botting location the ban rate will be higher, I recommend going to a place which is above ground floor, or underground (anywhere where it's not popular) with the exception of lesser demon in wizard's tower
    1 point
  33. I think you meant to post this
    1 point
  34. Is there a reason it doesnt show me gp/hr? Perhaps there is a special way to turn that reporting feature on? http://puu.sh/mEAtm/ce2de32dc2.png
    1 point
  35. You can just increase the int that onLoop returns, and it will sleep more between iterations
    1 point
  36. Version 0.07 - Fixed pathfinding, had to change map values since Zeah ruined the map handler - Added a dialog warning to avoid any errors in the script, more user friendliness (only happens if you are not using deathwalk) - GUI Options are now correctly saved and loaded upon starting/stopping script
    1 point
  37. lol this thread
    1 point
×
×
  • Create New...