Jump to content

Deffiliate

Trade With Caution
  • Posts

    2346
  • Joined

  • Last visited

  • Days Won

    1
  • Feedback

    100%

Community Answers

  1. Deffiliate's post in How to was marked as the answer   
    Make sure you call the experienceTracker.start(Skill) method for each Skill you wish to track.
  2. Deffiliate's post in Entity/RS2Object problems... was marked as the answer   
    The reason you're having a problem is because the noun in the menu actually contains the arrow (->) as well. So you will have to account for that.
     
    To tackle this, you need to interact with the object using a noun that accoutns for the arrow. Here's an example:
    closestObject(objectId).interact("Use", "<col=ff9040>Selected item name<col=ffffff> -> <col=ffff>Object name"boolean forceLeftClick, int walkDistanceThreshold, boolean isWalkingAllowed, boolean turnCamera);
  3. Deffiliate's post in Paint. Hows does it work? was marked as the answer   
    uhmm simplest option would be to change "this" to null.
  4. Deffiliate's post in Select Menu option was marked as the answer   
    Yeah, you had it figured out precisely.
     
    Here's a custom snippet (Credits go to Toph): 
    public boolean selectMenuOption(String action, String noun) throws InterruptedException { if (!s.client.isMenuOpen()) return false; boolean found = false; int index = 0; List<Option> menu = s.client.getMenu(); for (; index < menu.size(); index++) { if (menu.get(index).action.equals(action) && menu.get(index).noun.contains(noun)) { found = true; break; } } if (found) { int x = s.client.getMenuX(); int y = s.client.getMenuY() + 21 + index * 14; return s.client.moveMouseTo(new RectangleDestination(x, y, s.client.getMenuWidth(), 10), false, true, false); } s.moveMouseOutsideScreen(); return false; }
×
×
  • Create New...