Jump to content

Alek

Ex-Staff
  • Posts

    7878
  • Joined

  • Last visited

  • Days Won

    202
  • Feedback

    100%

Everything posted by Alek

  1. Classic example of how new scripters that concentrate more on antiban instead of learning how to write good code.
  2. Optional<RS2Object> optional = getObjects().getAll().stream().filter(n -> n.getName().equals("Coffin")).findFirst(); if(optional.isPresent()) { //do things } This is the more "proper" way, however your solution would work. The only static ids which are normally accepted is item ids and config ids. Although config ids have changed in the past they are considered very stable. Definitely replace entity ids with other identifiers, the entity hover debug tool should give you some ideas. As for using configs for checking if a quest is complete or not, that's definitely fine because you know the exact values for your individual quests. You said specifically you are new to Java coding, are you familiar with other languages?
  3. It sounds like you're implying that using text color means that it's buggy. Also part a and b are not completely valid arguments, the Quest API caches one time for initial values - then it's stored in memory (and called just as fast thereafter). The benefit to the way I set it up is that you don't need the configs and their values for hundred(s?) of quests, which would actually make the API a lot more prone to breaking than the color check. Just some things I noticed: The code in red is duplicate code, some of which is pretty expensive. Also: I'm very certain this script will break in 2 days because you're using a ton of static ids. Also your streams should really be optionals, using the orElse(null) kind of defeats the purpose. It's not bad but with some minor changes you can make a really big improvement.
  4. Correct - just as a reminder carefully go over the updated script rules.
  5. Yes, I said directly in the guide:
  6. You have been very rude because you keep using my name and I don't process them. A more appropriate question would have been "how long does it take to process a git request".
  7. The client will only display that error on a new bot startup, before any scripts are allowed to load, and only if SocketException is thrown.
  8. It's not a static web walker like the other bots, it loads all the map information and generates the routes dynamically. Some obstacles are automatically handled, others we write manual links for.
  9. Your understanding of Entity is not correct. An entity is not a representation, it's a reference to the generic object in game. This means when the entity is destroyed, so is the reference. When a new entity is created, so is a new reference. This is not so readily apparent because in Java everything is a value, and there is no way to represent a reference. Also an Entity is an interface between all the entities, ensure you arent object slicing if you are storing the object as an entity versus NPC, RS2Object, etc. I italicized some key words that you can Google if you need a further explanation.
  10. Alek

    OSBot 2.4.144

    Changelog: -All home teleports are supported in Magic API -Reverted LUMBRIDGE_HOME_TELEPORT spell -ARCEUUS_HOME_TELEPORT pending change to HOME_TELEPORT -Added 3 new prayer spells to Prayer API Thanks to: @Chris and @Fruity
  11. Alek

    Boot params?

    You should probably hide the ip since there are 11 year olds on this website. Also you didn't really give any information.
  12. Alek

    Paint API

    I'm flattered that you think I wrote OSBot 2 form scratch.
  13. They are both incredibly high level languages, not sure why it would make any difference. O(n) would be simplest, just putting the string to a char array then adding from each occurrence in the Dictionary (map?). I'm sure there is a BST way which is O(n log n).
  14. Alek

    Woof

    https://i.imgur.com/6rWN8Xl.mp4
  15. You should still have access to the script. If you no longer have access please message me or Maldesto.
  16. All true statements, if you really need money you're better off getting a minimum wage job. If you know programming very well, then you can save on some costs. If you don't know any programming, you're very likely to lose out.
  17. If you are using a 4k monitor, then don't.
  18. Alek

    Moo

    https://i.imgur.com/OHSnDae.mp4
  19. This file has existed for many years, if it was used for bans before then its not used anymore.
  20. Alek

    OSBot 2.4.142

    Changelog: -Improved bit logic behind Bank methods withdraw/swap modes -Removed index identifier from Spells -Updated Magic API, not reliant on static ids --Zach patched getSpellName() hook
  21. Is it spamming null pointer a lot? If so you have to stop the script instantly and scroll all the way up to the original stack trace, which is what I suspect is happening.
  22. Please don't troll here, we have a SPAM section for troll posts. Not sure how that solves his problem. Conditional sleeping is working on other scripts, so it must be something wrong. @HunterRS Post the stack trace/error
  23. It's open source, not sure why you would decompile it lol. Thanks at OP for credits.
×
×
  • Create New...