Everything posted by Token
-
Sooo I was passing by some oaks...
I have always been wondering if resources get depleted faster the more people attempt to collect them. This made it all clear.
-
Fastest way to ban an account?
Click a door 30 times during tutorial island -> instaban.
-
Accutane share your experiences
I have lots of friends who have acne and have been prescribed accutane. All I heard from them is that it's a very hepatotoxic drug. Most of them have cholesterol and liver problems after 3-6 months of treatment. I also had acne for over 2 years but I've never been prescribed accutane. I eventually found a doctor who would perform laser treatments for acne and went through 7 BBL (blue light) and 4 Thermoscan treatments. They are much less invasive and also seemed to work for me. All I can tell you is that acne has no cure. It will last until you are ~30, you can't stop it but you can control it. PS: Working out raises your testosterone levels, this is not caused by bodybuilding supplements. It is a normal consequence of working out but will be very severe if you decide to take steroids.
-
Bot not dismissing randoms
The random event hooks might be broken so they should be fixed next time the bot updates.
-
Scripts Not Starting
Did you attempt to refresh the scripts before starting them?
-
Scripts Not Starting
Check your logger messages as that most likely contains all the info you need.
-
Bot not dismissing randoms
Is this on mirror mode?
-
Osbot Web Walker/walking for any script/banking.
That happens because scripters generally just walk to any random tile that is inside the bank area and not to a tile just in front of the bank booth. The normal walking method has a distance threshold which will make it stop if the last click was at a distance of 2 or less from the destination which is why it won't walk back. If scripts implement webwalking then it will walk exacly to the tile they specified in their code and will even spam click like 10 times to get into it. I believe OSBot's webwalker is still in development but this issue can easily be fixed at script level. PS: This has nothing to do with mirror mode.
-
npcs.closest ?
OSBot has 2 distance methods, distance and realDistance. By default the closest method uses distance which is just a rounded pythagora's algorithm computation which is why a tile diagonally next to you is computed as round(sqrt(2)) = 1 even though its 1.4 and the ones directly accessible have distance equal to 1. Using realDistance on the other hand will yield a result of 0 on tiles north west east or south of you and a 2 for diagonal tiles. The reason why we don't use realDistance is the fact that it can only compute distances in the area local to your player (~30 tiles around you) so we mostly rely on distance. As for accurately determining long distances I implemented an algorithm that computes a path length that is used for webwalking (there is no support in the API for such thing).
-
How do i make my script STOP and not just stop moving
I guess you could try this @Override public int onLoop() { if (bank.isOpen()) { stop(false); } else if (npcs.closest("Banker") == null || myPosition().distance(new Position(3166, 3485, 0)) > 10) { walking.webWalk(new Position(3166, 3485, 0)); } else { npcs.closest("Banker").interact("Bank"); } return 69; }
- Selling nice account
-
Loot GroundItem?
item.interact("Take"); If you want to actually find a GroundItem then you could try GroundItem item = groundItems.closest(new Filter<GroundItem>() { @Override public boolean match(GroundItem item) { return item.getName().equals(ITEMNAME); } }); if (item != null) { item.interact("Take"); }
-
Problems with onLoop
Is the script spamming "Jet fuel can't melt Zulrah scales" or does it exit with an error onStart message?
-
Token that noob
- Mirror Mode dialogues/widgets
Mirror client version: I guess 2.1 Console output / terminal output: See pic below Crash report if a crash occurred: There was no crash Script that you ran: Stealth Quester Hooks that failed: Dialogues maybe? JVM/Browser bit version (32 / 64): Unknown It's from a beta tester, so I couldn't provide the exact info but here's the post: http://osbot.org/forum/topic/92297-stealth-quester/page-23 This appeared 5 mins after @MGI told me to remove the warning regarding Mirror Mode being unstable from my script. It apparently keeps spamming the first option. It's dialogues.inDialogue() and dialogues.completeDialogue() that are invoked there. The debug messages show 3 minutes ellapsed since end of webwalking event which is when he arrived at Sedridor, during which the bot apparently only clicked the first option and failed to complete the dialogue. Also some time ago someone reported that the bot when attempting to teleport to barbarian outpost using a games necklace, it will keep selecting the first option (which is not barbarian outpost). In this case the script searches for a widget containing "Barbarian Outpost" string and interacts with it.- Selling nice account
- Are there bans on f2p at weekends?
There's bans everywhere during the weekend.- Why get a degree in CS?
I confirm CS degree 100% useless. There are so many jobs in IT you don't even need a degree and will be paid better than most of the other jobs anyway. As for getting a job below your level, simply turn it down. It's not that hard. If you are actually above its level then you will have better offers.- [Guide]Types of Entities and how to use them correctly
Let's not forget about GroundDecoration, Player, WallDecoration, WallObject and other interactables.- Checking distance between two positions?
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.- Multiple classes :doge:
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".- Multiple classes :doge:
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.- Checking distance between two positions?
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.- Selling nice account
- Selling nice account
- Mirror Mode dialogues/widgets