Jump to content
Search In
  • More options...
Find results that contain...
Find results in...


  • Content Count

  • Joined

  • Last visited

  • Feedback


Community Reputation

0 Neutral

About Xuubasa

  • Rank
    New Botter

Recent Profile Visitors

665 profile views
  1. I'm making a mule that does multiple actions during idle time. I have basic scripts for fishing, mining, woodcutting and flax gathering so far. The one issue i'm having is figuring out when an object or ID has been 'used' - when a tree has been chopped, flax picked etc. Any advice is welcome. Thanks! private static boolean gatherFlax() { long timer = System.nanoTime(); while(running && !Inventory.isFull() && !isFlaxTimedOut(timer)) { RSObject[] flaxPlants = Objects.findNearest(Constants.FLAX_FIND_RANGE, Constants.FLAX_OBJECT_ID); if (flaxPlants.length > 0) { while(flaxPlants[0] != null && flaxPlants[0].isClickable() && !Inventory.isFull()) { flaxPlants[0].click(); Constants.randSleep(); } } } return isFlaxTimedOut(timer); }
  2. I've had a similar problem myself on non-LG instances. the other day I checked my accounts after about 2 hours and all of them kept failing to login just like this
  3. Thanks guys, this is exactly what I needed. Cheers!
  4. Hello, Recently I just wrote a mule script to support one of my scripts that i've been using for some time now. I need the two accounts to trade each other (preferably inside the bank), and for the most part it works normally, but if there are two characters stacked on top of each other sometimes the api will misclick or choose the wrong player. So instead of trading my bot supplies I try to give all my supplies to a human player. Is there an API method that I can use to check who i'm trading with as I'm trading? i'm not concerned with getting trade requests from randoms or anything like that, its the misclick that sends things awry. Has anyone else experienced this? This is the code for reference: TradeUtils.tradeUser(muleName, 5000); if (!Timing.waitCondition(new Condition() { @Override public boolean active() { return TradeUtils.isOpen(); } }, 5000)) { return false; }
  5. Hello, Recently I learned that you can't add external libraries to tribot. Has anyone here used a file sharing service such as one drive or dropbox to share information across different computers for their scripts? Looking for any relevant information. Thanks.
  6. This is exactly what I needed, thanks for the help all!
  7. Hello, Is there any way I can check to see if a potion effect is currently active on my player. For example i'm implementing stamina potions into my script currently but I don't want to have the player drink a stamina potion if they already have the effect. Can you guys tell me a way I could accomplish this? Thanks
  8. @Liam. Thanks man, this was the problem. Now my script is running like a dream!
  9. WebWalking isn't supported for dungeons as far as I know. I've attempted DPathNavigator for opening gates and such, but it seems to be more suited for moving short distances than the large amounts of area I need to cover quickly. I'll have to give PathNavigator a shot later and see what I can come up with. Just as an fyi, this method does in fact work its only this intermittent problem I get where the bot stops in place for a long stretch of time before it decides to wake up from its coma and get back to work. It probably happens once in 10 'loops', and this method is probably called ~10 times per loop
  10. Hey guys, currently i'm writing a script that needs to traverse through a dungeon, so i'm using the Walking classes blindWalkTo function to accomplish this. However i'm getting problems where sometimes I will get stuck for like 30+ seconds before the bot starts moving again. I know from my log that it is getting into this function, but the while loop isn't iterating. I imagine this might have something to do with blindWalkTo() itself, but i'm not sure. Here is the code for the function I am referring to: private static void moveToTile(RSTile tile, int range) { //TODO: not sure if this is necessary or not, requires testing. //Camera.turnToTile(tile); General.sleep(500); while (Walking.blindWalkTo(tile, new Condition() { @Override public boolean active() { return tile.isOnScreen(); } }, 2000)) { General.println("walking to tile, X: " + tile.getX() + " Y: " + tile.getY()); General.sleep(250, 500); } while(Player.getPosition().distanceTo(tile) > range) { DynamicClicking.clickRSTile(tile, "Walk here"); General.sleep(1500, 2000); General.println("Distance to tile: " + Player.getPosition().distanceTo(tile)); General.println("Player position: " + Player.getPosition() + " tile position: " + tile.getPosition()); } General.println("Successfully moved to tile, X: " + tile.getX() + " Y: " + tile.getY()); }
  11. Yea it actually just turned out being related to the function that called this one. silly me
  12. Hey guys i'm working on a new script that makes the Player walk through a wildy gate. I'm currently using the DPathNavigator class to automatically traverse through the gate for me. However, when I enter the wilderness even if i'm on the final RSTile the navigator won't end the traverse function and i'll get stuck going in and out the gate forever. I added a condition but it doesn't seem to be working. private static void handleGate(RSTile tilePastGate, RSArea area) { DPathNavigator navigator = new DPathNavigator(); navigator.setStoppingCondition(new Condition() { @Override public boolean active() { if (area.contains(Player.getRSPlayer())) { General.println("In area, stopping."); return true; } else { General.println("Not in area"); return false; } } }); navigator.traverse(tilePastGate); Timing.waitCondition(navigator.getStoppingCondition(), 3000); General.sleep(800, 1000);}I will get "In area stopping" in my log, so I know that the area check is firing within the condition, but it won't actually stop the navigator. Thoughts?
  13. I would look into the DPathNavigator class. https://tribot.org/doc/org/tribot/api2007/util/DPathNavigator.html it handles gates automatically if you are nearby, but its not a replacement to WebWalking by any means.
  • Create New...