Jump to content

thatguycalledrob

Members
  • Posts

    33
  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by thatguycalledrob

  1. I'm back from a 3-month break! December deadlines + January exams bit hard, but I now have a few more months to work on this again - watch this space! It's finally time to actually push to make some serious money.
  2. RIP the best free script on the SDN. Take my money. $$$
  3. Okay I see, I think this will actually make it easier to solve a bug in the R&J script I found yesterday. Thanks for the example! Out of interest, any idea how to order a stream with multiple values, based on a set of conditions? I was writing a fishing script and I noticed that all bots all move at the same time to the same next spot when one vanishes (probably due to using the . closest API command). I tried to better with a stream it but now it seems to go to the Object with the lowest x+y (coords). Both seem to be easily detectable with some basic pattern recognition on Jagex's side. I wanted to order the stream, and then remove the top n elements of the stream based on a distribution, such that it picks the closes spot with probability p(1), the second with p(2), etc My issue is that I couldn't find a way to do this trivially, either ordering or discarding. I could put the stream (after filtering) into an array, then order, remove, check, etc... but these seem like things that you should be able to do with the inbuilt functionality of Java. Yessir, I did a placement year last year (might be called a year in industry in the USA) where I basically ended up scripting in VBA 40 hours a week, and I have done a load of C, Maple, R and Matlab over the first half of my degree, although I'm nowhere near as good as I am with VBA.
  4. Ah the man himself! Okay okay, I admit that the real reason that I didn't use it was because it didn't work as expected the first time (wouldn't return true when a quest was completed). However, since this whole script is config-based it did make some logical sense to use a different implementation! I guess the API focuses on robustness over most else. Thanks for looking through the code though, it means a lot to have one of the main devs check it! I still want to log which one is causing an error when I have Verbose mode, but you're right in that each if statement calls the function, even if VERBOSE = False. I think I will wrap the whole thing in an if(Verbose){} statement, as to only call them the second time if I am actually wanting an output. Good catch on this, I wouldn't have seen this if I had been looking! Valid, I was worried about this yesterday. I'm fairly new to OSbot & java coding here, so could you, or someone else please help me with a best practice example? I am unsure how often ID's change, and the best implementation for options. are we talking about: https://docs.oracle.com/javase/8/docs/api/java/util/Optional.html ? if so - would you replace my stream: RS2Object Coffin = getObjects().getAll().stream().filter(n -> n.getName().equals("Coffin") && (n.getId() == 15061 || n.getId() == 2145)) With something like: RS2Object Coffin = Optional.ofNullable(getObjects().getAll()).filter(n -> n.getName().equals("Coffin")).orElse("Some default")? Examples would be appreciated! Looks like tomorrows session is just going to be a lot of code cleaning
  5. Will implement this, thanks! I started coding ad-hoc at the start, and I have a lot of cleaning up to do!
  6. I know that now! I wish someone had told me earlier I thought I was being all anti-pattern, but I ended up getting this weird bug where I pass WebWalk a position, and it dosn't walk to it. Actually, it webwalks just outside and then stops. I then get a conflict: Webwalk thinks its there, but its not. This is why there is a LOCATION and LOCATION_SUPER in the questlocation enum. I'm going to have to do a walking investigation & rewrite for this script at some point soon...
  7. Looking seriously good! It seems you're ahead of me on the moneymaking side of things. goodluck!
  8. UPDATE: Now does 7QP - working on more though.
  9. This is the sort of feedback I need! I have had a look at task-based coding, namely: However, it seems to me that the only method that I can move to a task-based system is the talk to character "ConverseWithCharacter" method, which has clear "Can process" conditions and run conditions. I was actually wanting to move it to my Abstract Quest class for just that reason. What else in the script would you automate tasks?
  10. In intelliJ press mouse 3 or "f4" when clicked onto a function call - this will decompile the function. Unfortunately, the decompiler isn't perfect, so you get odd variable names. However, it is still readable! This is the isComplete function call: this.iiiiIiiIIIiI.contains(quest); is checking that the quest is in the array list holding all of the quests - so will always be true for valid input. return this.iIIIiiiIIIii() is what we are really interested in: So it's a little cumbersome to read, and I didn't make it so this may not be exactly how it works, but in order: >Gathers all widgets into an array list: > finds the widgets which relate to the quest you're looking for. I'm guessing the nested "while(true) {" loops are due to the decompiler - not how the actual source code is > Checks the text color of the label I hope this helps? Mods pls don't ban me for revealing secret information or something lol
  11. I found "quests.isComplete()" to be buggy, it uses the colour of the quest in the quest menu, meaning that it would open the quest tab and run a (relatively) complex function call to iterate through all quests in the menu checking if the colour was red, yellow or green. Using config ID's means that you can: a) check without opening the quest menu b) process faster, as it just tests a memory value Thanks for testing though!
  12. Just picking this up again now I am moved into my new place for the year. Classic Java noob mistake, I forgot to break; my case in my switch statement. Of all the things to go wrong! I submitted a fix just now, and am hoping to add the next quest tonight or tomorrow!
  13. Okay Just spent a week settling into uni before getting on onto this again. It's hard to know - follow along I guess! Its an evening thing for me now, so maybe a couple of months? Once you have things set up it will be easier and quicker. But until that point, who's to know? ~Rob
  14. Modified it to work with your VERBOSE suggestion, will implement CLI further down the road, although its a great suggestion for the "production" finish! Also the new version includes R&J quest
  15. Thanks for the feedback! I will give what feedback I can in return if you upload any code. Yeah, my sleep's are totally messed up - definitely one for the next version! I started developing with Explv's conditional sleep classes (which I base on the maximum expected execution time of the activity), but then I hit a null pointer exception earlier in development, which hung my game window since it looped endlessly with no delay between loops (as to let me hit the big red button). I started adding sleeps all over the place to mitigate this, as well as trying to be clever and implement a normally distributed sleeping as a form of an anti-pattern, but my implementation of the whole thing is all over the place. Ah, great suggestion - and I was here thinking that I would just comment them all out when the time comes! will implement now
  16. Can you walk through how you got these? I have tried using the config menu on the debugger, and it doesn't always show which config is changing. My backup option is to write a function which watches all configs and writes to the logger when one changes - but this seems like a very CPU intensive process.
  17. Yeah its a modified version of dark magician's - I will clean them up a little before I fully release this script, but as you say, they are amazing for debugging right now!
  18. R&J should be easy now I have the structure worked out
  19. UPDATE: 1st open source script created... Feedback on it welcome!
  20. I'm trying to improve at Java & RS script design. I am making a (fully) open source quester for F2P - please have a look and leave suggestions & feedback. Bugs / coding cleanliness /Constructive feedback - all are welcome. https://github.com/thatguycalledrob/Quester-FREE Ultimately my goal is for this to complete all F2P quests (maybe minus dragon slayer) & provide stealth training for the levels required. This is aimed to progress my own ability in scripting for OSbot, as well as a useful script for others. COMPLETES: Sheep Shearer Romeo & Juliet Cook's Assistant Rune Mysteries The Restless Ghost IN DEVELOPMENT: Goblin Diplomacy Doric's Quest (in progress) (+ option to "make the money" to buy the items) (+ fishing & cooking the food for this) DEVELOPMENT PENDING: Nice GUI for quest order selection & the like. A simple paint. CREDIT EXPLV for his great tutorial, map tool, Conditional sleep snippets & Open source tutorial island script. Dark Magician for his easy Entity manipulation code! I'm sure there will be more soon ~ Rob
  21. Let's make it happen! Not sure yet, probably write my own PVM script for some 400-600k/hr slayer creature. Benefit of writing your own script! The current challenge is working out the best way to bot enough gold to a buy bond in F2P without being instabanned lol. Might have to just buy membership another way for the first few bots, and transfer the money for the later ones
  22. Road to 1b farmed CURRENT STATUS: 0M Bit of Background: My name is Rob. I am 21 and British. I'm doing a Maths degree at a decent university. I used to play Runescape years ago (started in 2004) but gave it up in 2013 to focus on doing well at sixth form (senior High equivalent I think). I just finished a placement year, in which my job was literally to script in VB/VBA 8 hours a day. I like to think that I am pretty good at it. The plan is to Learn Java, and then build a gold farm from the ground up. GOALS ~Scripting~ You are always learning when programming, so this isn't going to be a: [] Learn Java box. More a list of tangible goals. [X] Create and test first useful script [X] Create 1 open source script [] Create 3 open source scripts [] Get a script onto the SDN ~Set up~ This is all about getting the barebones of a farm - automating everything is for another time [] Get 3 bots up and running [] Get a mule up and running [] Move operation onto VPS [] Have 10 bots running ~$$$~ Running total - I anticipate not much for a month, then suddenly 50m+/day. [] 10m botted [] 50m botted [] 100m botted [] 250m botted [] 500m botted [] 1000m botted
  23. Hi, all, So I'm looking for cheap proxies, and it seems that if you are okay with IPv6 you can buy your own entire own IPv6 subnet for ~$500, or go with a provider such as proxy6.net, who will sell you proxies for virtually nothing. The problem is that I can't find anything concrete about if we can use IPv6 or not. I have looked at the following 3 posts about the subject (all there is on here currently), and people seem to think that it isn't possible to connect with an IPv6: I have also polled oldschool.runescape.com and www.runescape.com on this site: http://ipv6-test.com This gives a "This website is not ready for IPv6" error. Can someone more knowledgeable about this subject please just confirm that we CANNOT use IPv6 proxies? Any further reading on the subject would also be appreciated. ~Rob
×
×
  • Create New...