Welcome to TRiBot Forums

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.

Beg

Registered
  • Content count

    317
  • Joined

  • Last visited

  • Feedback

    100%

Community Reputation

55 Excellent

1 Follower

About Beg

  • Rank
    Senior Botter

Personal

  • Sex
    Male

Recent Profile Visitors

894 profile views
  1. Go to Purchase VIP menu https://tribot.org/repository/user_panel/vip/ , on the bottom you can see an option to cancel recurring.
  2. You need to invert the path and walk through it. There are walking methods with a stopping condition. You can use that to check if you've reached the destination area. https://tribot.org/doc/org/tribot/api2007/Walking.html#walkScreenPath-org.tribot.api.interfaces.Positionable:A-org.tribot.api.types.generic.Condition-long- https://tribot.org/doc/org/tribot/api2007/Walking.html#walkPath-org.tribot.api.interfaces.Positionable:A-org.tribot.api.types.generic.Condition-long- You can also use antiban to dynamically decide which one to use: RSTile[] invertedPath = Walking.invertPath(path); Condition stopCondition = null; if (checkarea) stopCondition = new Condition() { public boolean active() { General.sleep(time to sleep in ms); return area.contains(Player.getPosition()); } }; WalkingPreference walkPref = AntiBan.generateWalkingPreference(distance); invertedPath.length should be a decent distance estimative if (walkPref == WalkingPreference.MINIMAP) Walking.walkPath(invertedPath, stopCondition, General.random(min time to check condition in ms, max time to check condition in ms)); else Walking.walkScreenPath(invertedPath, stopCondition, General.random(same as above, same as above));
  3. Credits are tribot's currency. You need to purchase VIP-E with those credits. There is a menu on your left (Purchase VIP) where you can trade them.
  4. https://tribot.org/repository/user_panel/vip/vipe/
  5. Yes. And testing limited to 2 hours every 3 days.
  6. Fixed. Admiral, wild and summer pies are not tested because I don't have any member account with the required cooking level. Added: - Make-item: Raw botanical pies - FIre: Redwood logs Cooked sweetcorn Anglerfish - Range: All pies Plain pizza
  7. Assuming you're combining two items, and minimum amount of each is 1, Inventory contains items to combine? ==> if (Inventory.getCount("itemName1") > 0 && Inventory.getCount("itemName2") > 0) or, Inventory does not contain items to combine? ==> if (Inventory.getCount("itemName1) < 1 || Inventory.getCount("itemName2) < 1)
  8. You don't need VIP to upload scripts. You either tried to upload .class files (.java required) or there was a compilation/security error.
  9. No point using an area with size 1. Just use that tile directly: private int playersUnderneath() { return Players.getAll(Filters.Players.tileEquals(Player.getPosition())).length - 1; } Or, as an alternative, if you don't care how many players are underneath, you can use Players.exists: // at least one player is underneath you private boolean hasPlayerUnderneath() { return Players.exists(Filters.Players.tileEquals(Player.getPosition()), 2); }
  10. I've answered a few days ago on your previous post Now that I know what you really want to do with the method i can rewrite it: // a list of item names private List<String> itemNames = Arrays.asList("blue wizard hat"); // a filter to find other players private Filter<RSPlayer> enemies = new Filter<RSPlayer>() { private RSPlayer myself = Player.getRSPlayer(); @Override public boolean accept(RSPlayer p) { return p != null && !p.equals(myself); } }; private boolean enemyFound() { List<String> enemyItemNames = new ArrayList<String>(); // get every enemy item around you for (RSPlayer p : Players.find(enemies)) { RSPlayerDefinition player = p.getDefinition(); if (player != null) { for (RSItem i : player.getEquipment()) { RSItemDefinition item = i.getDefinition(); if (item != null) { enemyItemNames.add(item.getName()); } } } } // if disjoint returns false, we have found an item that matches the ones you specified return !Collections.disjoint(itemNames, enemyItemNames); } @Override public void run() { if (enemyFound()) { // enemy found, do your logic here } } An example with "Quest point cape" on items list:
  11. You need to make sure the player is not you (i.e. !player.equals(me)) private RSItem[] getEnemyItems() { RSPlayer[] otherPlayers = Players.findNearest(new Filter<RSPlayer>() { private RSPlayer myself = Player.getRSPlayer(); @Override public boolean accept(RSPlayer p) { return p != null && !p.equals(myself); } }); if (otherPlayers.length > 0) { RSPlayerDefinition def = otherPlayers[0].getDefinition(); if (def != null) return def.getEquipment(); } return new RSItem[0]; } @Override public void run() { for (RSItem i : getEnemyItems()) { RSItemDefinition def = i.getDefinition(); if (def != null) System.out.println(def.getName()); } }
  12. https://tribot.org/doc/org/tribot/api2007/NPCs.html#isAt-org.tribot.api.interfaces.Positionable-int...- Npcs.isAt
  13. Players.getAll(filter) / Players.findNearest(filter) (Filter used to exclude yourself) getDefinition() getEquipment() Make sure to length/null check when necessary.