Everything posted by Lordsthan
- OSRS Botting to max! [YOUTUBE] [DAILY]
- OSRS Botting to max! [YOUTUBE] [DAILY]
-
100k exp/hr NMZ Range?
Implying you are 80 Ranged and you are using mithril darts and overloads, you can tweak your boss choices based on this list:
-
100k exp/hr NMZ Range?
Why are you using Barrows Gloves with Void?
-
Autocasting Magic
- withdraw all items on a list
You can try: array items if the bank is open: loop through items if the bank contains items[x] and inventory does not: withdraw item[x] else continue/stop else if the bank is not open and my player is near the bank: open bank else go to the bank- Conditional Sleeps?
Here: https://web.archive.org/web/20151029095223/http://osbot.org/api/org/osbot/rs07/utility/ConditionalSleep.html- Finished a Cow Killer
1) You should use accessor methods (getter and setter) instead of public fields. Eg: - getMouse().moveOutsideScreen() instead of mouse.moveOutsideScreen() - getSettings().setRunning(true) instead of settings.setRunning(true) 2) You should use Conditional Sleep instead of static sleep. mouse.moveOutsideScreen(); sleep(random(5000,12000)); Currently, after moving your mouse off-screen, your script will always sleep from 5 to 12 seconds. getMouse.moveOutsideScreen(); new ConditionalSleep(5000) { @[member=Override] public boolean condition() throws InterruptedException { return !getMouse().isOnScreen(); } }.sleep(); Using a Conditional Sleep, your script will only sleep until your mouse is off-screen or the timeout is reached. You can check more about this here: https://webcache.googleusercontent.com/search?q=cache:http://osbot.org/api/org/osbot/rs07/utility/ConditionalSleep.html 3) What is anti-ban your opinion? If your user want his account to stay at 1 defence, should your script still check his defence experience? if(cowToKill != null && !cowToKill.isOnScreen()) camera.toEntity(cowToKill); Currently, in your script, your player will always attack the closest cow and if your target isn't visible on screen, it will rotate the camera. Doesn't a non-bot player attacks what is visible for him instead of rotating the camera before attacking a monster? (PS: IIRC @Krulvis already addressed that in the past but I couldn't find his post) If you want to do this, you need to remove the code above and modify your script to: @SuppressWarnings("unchecked") private NPC getTarget(){ NPC targetCow = getNpcs().closest(new Filter<NPC>(){ public boolean match(NPC theCow){ return theCow != null && (theCow.getName().equals("Cow") || theCow.getName().equals("Cow calf") && theCow.isAttackable() && theCow.isVisible()); } }); return targetCow; } 4) Visually speaking, you can reduce your paint to: g.drawString("Attack XP gained: " + attackXP + " - Attack Lvls gained: " + attackLvls, 25, 200);- Conditional Sleeps?
No, it will sleep until your condition returns true or the timeout is reached. You can check more about it here: https://webcache.googleusercontent.com/search?q=cache:http://osbot.org/api/org/osbot/rs07/utility/ConditionalSleep.html- Widget not working
Try getWidgets().get(465,24,10).interact(); or getWidgets().get(465,24,10).interact("-5%");- ๐ฅ KHAL SCRIPTS TRIALS ๐ฅ HIGHEST QUALITY ๐ฅ BEST REVIEWS ๐ฅ LOWEST BANRATES ๐ฅ TRIALS AVAILABLE ๐ฅ DISCORD SUPPORT ๐ฅ ALMOST EVERY SKILL ๐ฅ CUSTOM BREAKMANAGER ๐ฅ DEDICATED SUPPORT
Can I have a trial of the AIO Agility, please?- How to get NPC rotation?
Values from .getRotation() when walking into a new tile: North: 1024 Northeast: 1280 East: 1536 Southeast: 1792 South: 0 Southwest: 256 West: 512 Northwest: 768 When interacting with a NPC/Entity, subtract 1 from these values (Ex: North: 1024 if walking; 1023 if interacting).- [Stable Build] 2.3.113 - Weekend Patch Pack
Why did you removed Position from Debug Settings?- NullPointerException when using store.interact or store.buy
Thanks for everyone, I managed to fix my script using widgets.- NullPointerException when using store.interact or store.buy
Hey, today I started making my first script and got a bug called NullPointerException when I try to use store.interact or store.buy from OSBot API. Here's a part of my code: if(store.isOpen()){ status = "Buying"; sleep(random(300,700)); store.interact(8, "Buy 5"); //... } What I would like to do in-game: and here is the error: [ERROR][Bot #1][09/10 10:31:22 PM]: Error in script executor! java.lang.NullPointerException at org.osbot.rs07.api.Store.interact(xi:364) at main.onLoop(main.java:82) at org.osbot.rs07.event.ScriptExecutor$InternalExecutor.run(ni:26) at java.lang.Thread.run(Unknown Source) So how could I fix that? - withdraw all items on a list