Everything posted by HunterRS
-
Hunter's Fully Automated Farms | Full CLI Support | Automatic Mulling Support | Ban Replacements | Database Support
Bump
-
Hunter's Fully Automated Farms | Full CLI Support | Automatic Mulling Support | Ban Replacements | Database Support
Bump
-
Hunter's Fully Automated Farms | Full CLI Support | Automatic Mulling Support | Ban Replacements | Database Support
Bump
-
Hunter's Fully Automated Farms | Full CLI Support | Automatic Mulling Support | Ban Replacements | Database Support
Bump
-
Iron Miner (East Varrock)
Nice work, no need get the bank booth as an object, use getBank().open() instead. Also add some verifications, instead of: if (bank.isOpen()) { bank.depositAll(); } Do something like: if (bank.isOpen()) { if(bank.depositAll()) { //Here you should sleep untill inventory is empty } } Do stuff like this throughout your code. Also, in the confitional sleep in the bank method you use: return bank.isOpen() && getInventory().isEmpty(); When sleeping after just opening the bank, seperate this to just bank.isOpen() and then later verify the inventory is empty. The way it is now I am pretty sure it will always sleep on the first time you one the bank.
- Castle wars bot?
-
Hunter's Fully Automated Farms | Full CLI Support | Automatic Mulling Support | Ban Replacements | Database Support
Bump
-
Hunter's Fully Automated Farms | Full CLI Support | Automatic Mulling Support | Ban Replacements | Database Support
Bump
-
Hunter's Fully Automated Farms | Full CLI Support | Automatic Mulling Support | Ban Replacements | Database Support
Bump
-
Queing Scripts
Only with a private script/farm manager
-
Hunter's Fully Automated Farms | Full CLI Support | Automatic Mulling Support | Ban Replacements | Database Support
Bump
-
Problems with getWalking
It does sometimes missclick, what I do is simply recall it untill you reach the correct position.
-
Problems with getWalking
Try using this with a random pos in the wanted area: private static boolean walkExact(Script script, Position position) { WalkingEvent event = new WalkingEvent(position); event.setMinDistanceThreshold(0); return script.execute(event).hasFinished(); }
-
Hunter's Fully Automated Farms | Full CLI Support | Automatic Mulling Support | Ban Replacements | Database Support
Bump
-
Trying to see if there is an npc in 1 tile radius around my player
Filter<Item> prayerPotFilter = item -> item.getName().contains("Prayer potion("); . . . . if (getInventory().contains(prayerPotFilter)) { log("We have a prayer potion"); } This should work, play around with filters and the API, super usefull stuff.
-
Trying to see if there is an npc in 1 tile radius around my player
Try looking into filters too: Filter<NPC> goblinFilter = npc -> npc.getName().equalsIgnoreCase("Goblin") && myPlayer().getArea(1).contains(npc) && !npc.isHitBarVisible() && npc.isAttackable() && !npc.isUnderAttack() && npc.isVisible(); . . . . NPC goblin = getNpcs().closest(goblinFilter); Using them will result in cleaner code. EDIT: Don't just copy and paste this, i just threw a couple of methods of the top of my head.
-
Hunter's Fully Automated Farms | Full CLI Support | Automatic Mulling Support | Ban Replacements | Database Support
Bump
-
Hunter's Fully Automated Farms | Full CLI Support | Automatic Mulling Support | Ban Replacements | Database Support
Bump
-
Hunter's Fully Automated Farms | Full CLI Support | Automatic Mulling Support | Ban Replacements | Database Support
Bump
-
Hunter's Fully Automated Farms | Full CLI Support | Automatic Mulling Support | Ban Replacements | Database Support
Bump
-
[Beginner] How to withdraw an item from bank based on the condition that a skill is equal or above or/and under a certain level? :)
You want to get the current level of a specific skill, look at getDynamic or getStatic depending on your exact need.
-
[Beginner] How to withdraw an item from bank based on the condition that a skill is equal or above or/and under a certain level? :)
https://osbot.org/api/org/osbot/rs07/api/Skills.html
-
Hunter's Fully Automated Farms | Full CLI Support | Automatic Mulling Support | Ban Replacements | Database Support
Bump
-
Hunter's Fully Automated Farms | Full CLI Support | Automatic Mulling Support | Ban Replacements | Database Support
Bump
-
Half ass working Oak-doors
Just some little quick advice on top of what dozza wrote, Reusing code is a great thing, my advice though when rewriting a script is to maximazie your learning by only using your old code as a guide line for areas, method etc. Have your code open on one side and on the other start the rewrite, we have all done this at one point when we said "who is the fucking dumbass who wrote this, ohh wait me", in my opinion this is the goal of rewriting a script because you can improve a lot when learning from your old mistakes. Just my opinion. Great improvement on the script though, keep it up. (Also it does a apply a bit less if your goal isn't to improve but to get a working product as fast as possible)