Jump to content

Token

Script Officer
  • Posts

    8432
  • Joined

  • Last visited

  • Days Won

    49
  • Feedback

    100%

Everything posted by Token

  1. Let's not forget about GroundDecoration, Player, WallDecoration, WallObject and other interactables.
  2. It seems to be working fine for me but I haven't tested it much. If you don't trust OSBot's realDistance() method you can try implementing A* with collision flags and getting the length of the path and you should get the same result.
  3. Let me elaborate the post I made earlier since I couldnt post code from my phone. Main.Java package somePackage; import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; @ScriptManifest(name = "AIO Runescape", author = "JohnnyDepp", version = 6.9, info = "Unicorns", logo = "") public class Main extends Script { Woodcutting wc; @Override public void onStart() { wc = new Woodcutting(this); } @Override public int onLoop() { wc.cutTree(); return 100; } } Woodcutting.Java package somePackage; public class Woodcutting { Main main; public Woodcutting(Main mainReference) { this.main = mainReference; } public void cutTree() { main.log("Time to cut some shit"); // insert actual code } } The above code should spam your logger with "Time to cut some shit".
  4. In order to access OSBot fields and methods you must have a valid Script instance reference which must also be the instance you happen to be defining as your main class. I suggest you pass it as a parameter to the constructor of each class and store it in a non-static field. Then you can instantiate the class from your main class, passing the main class as a reference for your other classes to use in order to access OSBot methods and fields.
  5. position.distance() will not work properly if you want accurate long distance checks because that's just an application of Pythagora's algorithm and does not take into account plane difference, links or obstacles at all. map.realDistance(Position position) should take into consideration all the above situations. You could also try walking.webWalk(Position... positions) as that walks to the closest of the given positions since you mentioned you only want to walk.
  6. Token

    Stealth Quester

    You are the first person to notice that. I guess everyone else was as lazy as I expected and let the script buy all items I fixed that in a later version but that's not on the SDN yet.
  7. Token

    Stealth Quester

    Authed Just wondering, have you found any bugs lately? It's been quite long since last time I heard from the beta testers so I have to assume the script doesn't have any bugs.
  8. Token

    Stealth Quester

    Authed Just reminding everyone, please use the bug template on the first page. Just try to fill in as much info as you can as there is no way I can address a bug if you just tell me quest x is not working. I have worked a lot on the debug side of the script which you should notice when you open your logger (all those [DEBUG] messages are very important). Also take your time to read the big warnings regarding mirror mode and Draynor Manor on F2P.
  9. Token

    Stealth Quester

    Yes they are generally 48 hours, but I can always reauth you if the auth ends during the beta. Could you be more specific on the bug though? There is a bug template on the first post. Authed Authed
  10. Token

    Stealth Quester

    Authed These are beta testing auths not actual trials though. The current version is a BETA version, not a stable build yet.
  11. Click on decimal display. Get the config values Format: [CONFIG] : [VALUE] is displayed as you play. if (script.configs.get(CONFIG) == VALUE1) { // in dream } else if (scripts.config.get(CONFIG) == VALUE2) { // not in dream }
  12. In config debugger you have 3 big buttons for hexadecimal, decimal and binary display. The hexadecimal one is completely useless because there is no case in runescape history where information is stored on nibbles but quite often on bits (hence we sometimes use binary values for example when I wrote Demon Slayer the incantation is written in the quest config). The internal representation of numbers is binary in 2's complement but if you write Ah, 10 or 1010b and compare them with each other you should always get an equality because regardless of base, they have the same internal representation.
×
×
  • Create New...