Jump to content

Chris

Scripter II
  • Posts

    8335
  • Joined

  • Last visited

  • Days Won

    14
  • Feedback

    100%

Everything posted by Chris

  1. message me in the discord and ill see if I can resolve the issue
  2. UPDATE VRK-64.0: Slight speed improvements were made during vorkath fight interaction, banking, and more.
  3. UPDATE VRK-63.0: Restock updates for crossbow mode: It will now withdraw from the bank at the start of the script if needed instead of waiting for the Message Listener to register it is missing bolts. The script can be started at the Grand Exchange. Useful for those who mule off their accounts and want to rerun. Updated the Bank Handler logging to be more specific. Added 'Frozen ornate pool of Rejuvenation' to the house interactions.
  4. All you need https://johann.loefflmann.net/en/software/jarfix/index.html
  5. These can be equal by changing the final chain method call in my example. canWalk.getPositions().stream().filter(nonWalk::contains).collect(Collectors.toList()) //List<Position> The Area class accepts the following constructor: Area(Position[] positions) canWalk.getPositions().stream().filter(nonWalk::contains).toArray() The following returns an Object[] array and would not be accepted by the Position[] constructor parameter unless we cast onto the object. I am not sure if my example works as I have only typed it up and did not run a test script to verify. canWalk.getPositions().stream().filter(nonWalk::contains) //Note .filter(nonWalk::contains) is an example of a method reference https://www.tutorialspoint.com/differences-between-lambda-expression-and-method-reference-in-java https://www.baeldung.com/java-method-references
  6. The documentation for AreaFilter states that it will return a new Filter instance containing the Entities filtered by their position. It will check the entity positions to check whether they fall within the provided Area passed in as the parameter. Here is an example of its usage in the NPC API: closest method docs: https://osbot.org/api/org/osbot/rs07/api/EntityAPI.html#closest-org.osbot.rs07.api.filter.Filter...- getNpcs().closest(new PositionFilter<>(myPosition())); // Return the NPC that matches this filter // Get the closest NPC that is on my positon. getNpcs().closest(new AreaFilter<>(new Area(1,2,3,4))); // Get the closest NPC where their position is in this Area ..and so on
  7. nvm just noticed i posted in script factory section but the logic should still apply.
  8. Here is some pseudo logic boolean shouldLoot if shouldLoot // loot logic else if interacting npc not null if interacting npc healthpercent == 0 loot position = npc position shouldLoot= true; else //currently fighting else // fight new target
  9. Try this as a solution. As of now I don't think there is API for this but I may be wrong. You could always make a wrapper class that extends the Area API to create your own methods. Area nonWalk = ....; Area canWalk = ....; Area walkable = new Area((Position[]) canWalk.getPositions().stream().filter(nonWalk::contains).toArray());
  10. UPDATE VRK-62.0: Removed Spirit Seed from the loot list. Updated the collection task to handle a possible miss-click issue when first trying to collect items. Updated the instance task to extend the click range to avoid clicking over the climb-rocks object when attack walking.
  11. it will restock equipment if it dies when you enable deathwalking in the UI. It should always restock food.
  12. do tut island manually problem solved and dont use nordvpn lmao
  13. https://osbot.org/api/org/osbot/rs07/api/Keyboard.html#typeString-java.lang.String-
  14. UPDATE VRK-61.0: Updated Slayer's Staff method to full functionality. LootingTask updates: Added a isStalled fail safe to shutdown the looting handler when the user disconnects and is not inside the vorkath instance anymore. Updated to use common item ids instead of string names (Mirror issues) Fail safe patch: As of client v58 (stable), there are issues where sometimes it will fail to interact with ground items. I updated the existing check to hover and click the item in the meantime until fixes are introduced to the client api methods. Updated the inventory organizer Other misc improvements. Tested Client V58 Stable w/ Injection mode
  15. Use the Utilities.takeScreenshot(); https://osbot.org/api/org/osbot/rs07/api/util/Utilities.html
  16. UPDATE VRK-60: Updated LootingTask system: - Prioritizes dropping existing blue dhide in the inventory for better loot. - Performance enhancements to increase script speed during looting. - Added failsafes for when the script errors out while looting and will just click the tile for the loot item. Updated VorkathInstanceTask: - Added experimental slayer staff mode. Simply start the script with a Slayer's staff in the inventory and make sure its pre-autocasted to do crumble undead. - Fixed an issue where the script was not using the new boltSwitchPercentage parameter from the configuration file. It should now work as intended. Updated BankingTask: - Dueling ring is now withdrawing after grabbing potions for inventory cleanliness. Updated MessageListener: - Added message "You have items stored in an item retrieval service." to the listener. Other: - Removed the script stop conditions for the travel tasks when it cannot find a path. They now just increment the error counter behind the scenes (>= 30 errors trigger a script stop) - Added a fail-safe for when the script accidentally travels to the island when attempting to collect gear on death.
  17. Issue has been fixed but am waiting to see if I can get it pushed to the SDN today. Sorry for the downtime.
  18. bruh https://osbot.org/api/org/osbot/rs07/api/Inventory.html#isItemSelected-- https://osbot.org/api/org/osbot/rs07/api/Inventory.html#deselectItem--
×
×
  • Create New...