Everything posted by Explv
-
Explv's OSBot Manager
UPDATED 2016-11-20: - Added some styling to the application - Added optional delay when running configurations
-
How to check amount of coins in inventory?
You need to open the bank first. if (getBank() == null) { // walk to bank } else if (!getBank().isOpen()) { if (getBank().open()) { new ConditionalSleep(5000) { @ Override public boolean condition() throws InterruptedException { return getBank().isOpen(); } }.sleep(); } } else { getBank().withdrawAll("Coins"); }
-
Explv's OSBot Manager
UPDATED 2016-11-19: - Added process tracking to visually display what configurations are running - Added import from file buttons for proxies and rs accounts Note: RS account files must have the format username:password or username:password:pin Proxy files must have the format: ip:port or ip:port:user:password
-
Explv's OSBot Manager
I am not getting that error. Are you using the latest version of my manager? explv_osbot_manager_20161117.jar? And are you sure you updated the osbot path in the bot settings tab to point to osbot 2.4.100?
-
Explv's AIO [13 skill AIO in 1 script]
Yeah I'm aware of the issue, it will be fixed along with some other things in the next update. Thanks
-
Explv's OSBot Manager
np, good to hear you are finding it useful
-
Something like isAttacking
Sorry I meant to say, if any character is interacting with it. See the code I posted.
-
Something like isAttacking
No that is not true. character.isUnderAttack() Will return true if the character's hit bar is visible and if another NPC or Player is interacting with it: public boolean isUnderAttack() { if(!this.isHitBarVisible()) { return false; } else { List<Character> allCharacters = new ArrayList<>(); allCharacters.addAll(getMethods().getNpcs().getAll()); allCharacters.addAll(getMethods().getPlayers().getAll()); for(final Character character : allCharacters) { if(character.isInteracting(this)) return true; } } return false; } Because OP's bot is interacting with the character, the method would return true if the NPC's hit bar is visible. I have replace the isUnderAttack() method with isHitBarVisible() because we already know that the player is interacting with that NPC, so we only need to check if the hit bar is visible.
-
Explv's OSBot Manager
Ok I will add some import from file options in the next update
-
Something like isAttacking
You could extend it further to make sure you are attacking the correct NPC, and that the NPC is still alive like so: public final boolean isAttacking(final String npcName) { final Character character = myPlayer().getInteracting(); return character != null && character.getName().equals(npcName) && character.getHealthPercent() > 0 && character.isHitBarVisible(); }
-
Something like isAttacking
If you want to know if your player is interacting with an NPC you can do: myPlayer().getInteracting() != null
- Quick Switching Hotkeys
-
Explv's OSBot Manager
UPDATED 2016-11-17: - Fixed compatibility issues with older configs - Fixed reflection and norandoms parameters not showing in table view - Added version checker, you will now be notified when starting the application if an update is available
-
Explv's OSBot Manager
Hmm interesting, i'll take a look and fix it tonight. Thanks for the bug report If you want to fix the issue yourself, I believe the issue lies here: https://github.com/Explv/osbot_manager/blob/master/src/bot_parameters/configuration/Configuration.java#L157 I forgot to add: reflection = new SimpleBooleanProperty(); noRandoms = new SimpleBooleanProperty(); Inside the catch block. (Note to build the application you will need to include the OSBot.jar in the output .jar for local script loading to work) I will upload a new version of the application at ~8pm GMT tonight (Can't do it now because I'm at work) Thanks
-
Explv's AIO [13 skill AIO in 1 script]
Thanks, I'll take a look
-
Explv's AIO [13 skill AIO in 1 script]
I will add a paint in the next update
-
How to setup CLI on linux?
http://osbot.org/forum/topic/100554-explvs-osbot-manager/
-
Explv's AIO [13 skill AIO in 1 script]
UPDATED : 2016-11-15 (Now available) - Fixed amulet crafting - Fixed random character creation on Tutorial Island - Fixed roof disabling on Tutorial Island
-
Explv's OSBot Manager
UPDATED 2016-11-15: - Added reflection and norandoms parameters
-
switching case if store contains items
Still not right, what if your inventory is full, and you are in the store? Your bot will carry on trying to buy even though it has no space
-
switching case if store contains items
That logic will not work. Look at your first two conditions. Your inventory is either full, or not full, therefore your script will always be in the BUY or BANK state.
-
switching case if store contains items
if inventory is full if not in bank walk to bank else if bank is not open open bank else deposit items else if not in store walk to store else if store is not open open store else if store contains items buy items else world hop It accepts String... and List<String> as well because Store extends ItemContainer, and those methods can be found in ItemContainer
-
Explv's AIO [13 skill AIO in 1 script]
I have pushed an update to fix it, but the SDN has not been updated yet. I will add a comment when it is available
-
Explv's OSBot Manager
I will add it tonight, if I remember
-
Explv's AIO [13 skill AIO in 1 script]
I have given you an auth to try it out