Bug Hover skill for anti-pattern

Discussion in 'Developer Support' started by Raezor, Aug 8, 2016.

  1. Raezor

    Joined:
    Jul 24, 2016
    Messages:
    6
    Likes Received:
    0
    I am trying to hover a skill for my anti-pattern and I can't seem to find the correct way to get the InterfaceComponent. Could someone tell me how to get the correct component.
     
  2. awesome123man

    awesome123man Dawg -> Awesome -> Regal

    Joined:
    Jan 31, 2016
    Messages:
    3,480
    Likes Received:
    931
    currentTaskString = "Antiban :p";
    OSRSTab.STATS.open();
    (Interfaces.getAt(320,10)).hover();

    Do
    System.out.println(Interfaces.newQuery().texts("Put level here or name'.results().first());
    to find the interface you want

    For me .getAt(320,10) was for the agility skill. But 310 is going to be the first number, i am almost 100% sure of that. Also, you can use the development toolkit and open the stats tab and do the interfaces one and scroll to 320, num. then look through those to find the right one, or do a regex for it.
     
  3. Raezor

    Joined:
    Jul 24, 2016
    Messages:
    6
    Likes Received:
    0
    When I use System.out.println(Interfaces.newQuery().texts("Fishing").results().first()); it just returns null
     
  4. awesome123man

    awesome123man Dawg -> Awesome -> Regal

    Joined:
    Jan 31, 2016
    Messages:
    3,480
    Likes Received:
    931
    Is fishing the name that you see on runescape? Try doing .names("something") or search for the level number in the text instead. That's how i found it. or just use the dev toolkit and look in the interfaces (300) place
     
  5. Raezor

    Joined:
    Jul 24, 2016
    Messages:
    6
    Likes Received:
    0
    Thanks, I got it by looping through the components for 320. I tried using the developer toolkit and even tried searching using regex but all of the names say null
     
  6. awesome123man

    awesome123man Dawg -> Awesome -> Regal

    Joined:
    Jan 31, 2016
    Messages:
    3,480
    Likes Received:
    931
    Glad you got it, it's pretty good antiban :D
    I make it hover the agility skill when it breaks as if checking the skill right before taking a break :p
     
  7. PhaseCoder

    Joined:
    Jan 1, 2015
    Messages:
    271
    Likes Received:
    26
    I hope you are adding a timer for how many ms, it opens and hovers otherwise will loop all time looking bad
     
  8. Raezor

    Joined:
    Jul 24, 2016
    Messages:
    6
    Likes Received:
    0
    It's just one of many different types of anti pattern I intend to add, I am just working on a framework right now and am not familiar with this API yet, I used to develop scripts bots at powerbot a few years back and it's a little different. I have a system to do the frequency of activation.
     
  9. SlashnHax

    Joined:
    Dec 10, 2014
    Messages:
    2,963
    Likes Received:
    874
    Kind of makes sense, that will only match interface components which have the text "Fishing".
    Names most probably wouldn't work, the level number should work, but the component he wants is probably the parent of the one returned.
    Names probably aren't what you think they are, only certain interface components have names.

    I'd suggest using Open Interface Explorer for finding interfaces, it's what I use, but that could just be because I made it
    I'd probably start with container and actions, as the actions are most likely "View SkillName guide"
     
  10. Raezor

    Joined:
    Jul 24, 2016
    Messages:
    6
    Likes Received:
    0
    @SlashnHax When I try to use your interface explorer, I get this exception
    Code (Text):
    1.  
    2. javafx.fxml.LoadException:
    3. unknown path
    4.  
    5.     at javafx.fxml.FXMLLoader.constructLoadException(FXMLLoader.java:2601)
    6.     at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2579)
    7.     at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2425)
    8.     at com.openbots.bots.open_interface_explorer.OpenInterfaceExplorer.int(m:144)
    9.     at com.sun.javafx.application.PlatformImpl.lambda$null$173(PlatformImpl.java:295)
    10.     at java.security.AccessController.doPrivileged(Native Method)
    11.     at com.sun.javafx.application.PlatformImpl.lambda$runLater$174(PlatformImpl.java:294)
    12.     at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
    13.     at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
    14.     at com.sun.glass.ui.win.WinApplication.lambda$null$148(WinApplication.java:191)
    15.     at java.lang.Thread.run(Unknown Source)
    16. Caused by: java.lang.NullPointerException
    17.     at bot.COn.initialize(k:26)
    18.     at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2548)
    19.     ... 9 more
    20. Searching clicked
    21. Found clicked: []
    22.  
    23.  
     
  11. awesome123man

    awesome123man Dawg -> Awesome -> Regal

    Joined:
    Jan 31, 2016
    Messages:
    3,480
    Likes Received:
    931
    Are you using this for the hover skill thing? If so, just make your own :p
     
  12. Raezor

    Joined:
    Jul 24, 2016
    Messages:
    6
    Likes Received:
    0
    Nah I already got that working, it was the only thing I tried using his interface explorer for and couldn't get it to work
     

Share This Page

Loading...