botelias Posted September 30, 2019 Share Posted September 30, 2019 (edited) Unfortunately removed until further notice. Discovered a bug which I do not have time to fix for now. Will re-upload when it gets solved, don't want unnecessary bans to happen Best regards Edited October 2, 2019 by botelias Quote Link to comment Share on other sites More sharing options...
Medusa Posted September 30, 2019 Share Posted September 30, 2019 Nice release. Looking at the code I can tell that you aren't using a task-based codebase. Everything might get more organized if you start using that Quote Link to comment Share on other sites More sharing options...
nezbomb Posted September 30, 2019 Share Posted September 30, 2019 does this support 1 defense/1 prayer builds for f2p? that would be neat. If this ends up supporting range, what about a progressive range safe-spotter? Quote Link to comment Share on other sites More sharing options...
FuryShark Posted September 30, 2019 Share Posted September 30, 2019 Will this support selling everything in the bank except for gear/foods or just the loot you get? Quote Link to comment Share on other sites More sharing options...
Heist Posted October 1, 2019 Share Posted October 1, 2019 Congrats on release! Quote Link to comment Share on other sites More sharing options...
Kramnik Posted October 1, 2019 Share Posted October 1, 2019 Awesome, waiting for progressive combat switching update Quote Link to comment Share on other sites More sharing options...
botelias Posted October 1, 2019 Author Share Posted October 1, 2019 12 hours ago, Medusa said: Nice release. Looking at the code I can tell that you aren't using a task-based codebase. Everything might get more organized if you start using that Thanks for the tip! I'll look into it. My first javascript from scratch, so the organization is a bit rough indeed Quote does this support 1 defense/1 prayer builds for f2p? I'll make sure to add that option once gui is implemented Not a hard thing to get running, so should come shortly. Quote Will this support selling everything in the bank except for gear/foods or just the loot you get? Just loot for now. If I can find a way to pull item id's from inventory slots, then I could implement all gear/foods. Quote Awesome, waiting for progressive combat switching update Next thing that will be implemented Quote Link to comment Share on other sites More sharing options...
BravoTaco Posted October 1, 2019 Share Posted October 1, 2019 (edited) 41 minutes ago, botelias said: Just loot for now. If I can find a way to pull item id's from inventory slots, then I could implement all gear/foods. For this you could loop through the inventory and add the ids to a list while checking if the list already contains that id: Here is an example. Haven't Tested this, but should work Spoiler private ArrayList<Integer> getItemIdsFromInventory(){ ArrayList<Integer> itemIds = new ArrayList<>(); for(Item item : getInventory().getItems()){ if(item != null && !itemIds.contains(item.getId())){ itemIds.add(item.getId()); } } return getItemIdsFromInventory(); } Also just in case you want to get an id from a certain slot: Spoiler private int getItemIdFromInventorySlot(int slotNumber){ Item item; if((item = getInventory().getItemInSlot(slotNumber)) != null){ return item.getId(); } return 0; } Any questions feel free to pm me or reply here. Edited October 1, 2019 by BravoTaco Quote Link to comment Share on other sites More sharing options...
botelias Posted October 1, 2019 Author Share Posted October 1, 2019 34 minutes ago, BravoTaco said: For this you could loop through the inventory and add the ids to a list while checking if the list already contains that id: Here is an example. Haven't Tested this, but should work Hide contents private ArrayList<Integer> getItemIdsFromInventory(){ ArrayList<Integer> itemIds = new ArrayList<>(); for(Item item : getInventory().getItems()){ if(item != null && !itemIds.contains(item.getId())){ itemIds.add(item.getId()); } } return getItemIdsFromInventory(); } Also just in case you want to get an id from a certain slot: Reveal hidden contents private int getItemIdFromInventorySlot(int slotNumber){ Item item; if((item = getInventory().getItemInSlot(slotNumber)) != null){ return item.getId(); } return 0; } Any questions feel free to pm me or reply here. Thanks! I'll make sure to implement that once I've got time! Quote Link to comment Share on other sites More sharing options...
botelias Posted October 1, 2019 Author Share Posted October 1, 2019 14 hours ago, Medusa said: Nice release. Looking at the code I can tell that you aren't using a task-based codebase. Everything might get more organized if you start using that Got a link to where I can read about that? Closest I found was using "modules". Is that the same thing? Thanks! Quote Link to comment Share on other sites More sharing options...
Medusa Posted October 1, 2019 Share Posted October 1, 2019 39 minutes ago, botelias said: Got a link to where I can read about that? Closest I found was using "modules". Is that the same thing? Thanks! https://osbot.org/forum/topic/92612-tutorialindepth-a-better-take-on-task-based-scripts/ 1 Quote Link to comment Share on other sites More sharing options...