Everything posted by jca
-
Can you eliminate/reduce bans using cover up?
Yes
- Muling
-
Muling
Never use the same IP with your mules.
-
Help a newbie
FYI it was breaking because you're calling getInventory() before the inventory is available. Most API functions should be saved for your onLoop() as they require the game to be loaded / an account logged in to work correctly.
- AIO (In Progress) AFK Fisher V1.2
-
How to recheck the state of an RS2Object? (check if rock has been mined)
Look at using the stored rocks position and writing a condition that finds the same rock on that position and checks if it doesn’t have ore, rather than checking the referenced rock. private boolean checkRockHasOreAtPosition(Position p){ RS2Object rock = getObjects().getAll() .stream() .filter(obj -> obj.getPosition().equals(p) && Rock.CLAY.hasOre(obj)) .findFirst() .orElse(null); return rock != null; } Something like that
-
Preventing events from triggering at the same time.
If they are asynchronous just execute them in your onStart or a function that is guaranteed to run once and you’ll also be fine.
-
Break Condtion
Is the NPC mage already set by the time you reach the condition? In the Boolean function call NPC mage = getNpcs().closest(“mage”); before returning. That may help...
- Maxing
-
Checking for items in inventory
inventory#contains will check if any item in the provided array is in the inventory. There's probably a better way, but I use a separate function private boolean inventoryContainsAllItems(String... items){ for( String item : items ){ if ( !getInventory().contains(item) ) return false; } return true; }
-
Looking for bulk tutorial island accs
Check out my thread below
-
Accurate Region Checking
Ah I’m not really, I just wondered if there was a way. Again, theoretically dealing with a large area feels like it should be handled by region checking. But I can stick with areas, thanks for your thoughts and @Eliot
-
Accurate Region Checking
That’s still defining an area... it’s not an issue. Just if there was an option with regions it feels better to use. But maybe it’s not possible.
-
Accurate Region Checking
Yeah... well that’s one option. The area I need to check is huge (the size of the region, basically 104x104). My logic is if it’s already defined as a region and I could check that then it makes more sense then defining a massive area. But if there’s not really a better way then areas will have to do.
-
Accurate Region Checking
Identify the region my player is in so I can then perform logic, for example @Eliot if ( isInRegion(region) ){ doA(); } else { doB(); }
-
Accurate Region Checking
As far I’m aware that doesn’t give any information that helps you identify the region you’re currently in. It only gives you access to getClippingPlanes() and getTiles()...
-
Barbarian Village Fisher & Cooker
Good job on the release... I would try and refactor your code a little to be more maintainable. Rather than have a giant onLoop() you can break it down to functions and boolean checks. if ( ! myPlayer().isAnimating() ){ if ( !getInventory().isFull() ){ fish(); } else { if ( shouldBank() ){ bank(); } else { cook(); } } } else { // Wait as we are fishing or cooking } Also wrap your interactions in conditionals if ( fishingSpot.interact("Lure") ){ status = "Fishing"; //handle post interaction logic } This ensures you can check for interaction success / failure. Look into walking#walkPath as you shouldn't need to use webWalk for this.
-
Accurate Region Checking
Haven’t found a clean solution to check what region my player is in. At the moment using getMap().getBaseX() and getMap().getBaseY() but this varies slightly depending on how my player accessed the position in the region. With a rough calc I’m able to work it out, but as I said it’s a bit dirty. Are there any cleaner solutions?
-
Get the total lvl
Of course, my bad. I'll correct!
-
Is credit card needed to buy vip?
Hi Okimonit, you don't need a credit card, you can pay with PayPal, just select it on the checkout page.
-
Get the total lvl
Not sure if there is a method in the Skills API, I can't seem to find one, but you could do something like this... int totalLevel = 0; for( Skill skill : Skill.values() ){ totalLevel += getSkills().getStatic(skill); } log("My total level is " + totalLevel);
-
[Stable] OSBot v2.5.30
The memory usage is significantly lower, especially on lowcpu and nointerface. Also the buttons on lowresource being properly aligned left makes me happy. Great update!
-
Bitcoin payment/checkout on ecommerce site
On WooCommerce I use Coinbase Commerce and their plugin. It looks like that.
- [Stable] OSBot v2.5.30
- Warding