Npc interaction broken?

Discussion in 'Developer Support' started by Exile, Jul 28, 2014.

  1. Exile

    Joined:
    Jul 24, 2014
    Messages:
    188
    Likes Received:
    23
    I'm using the following code to collect essence from a Floating essence-NPC in RuneSpan.
    However it never succesfully completes, it always gives "Nope :( " in the debug box, what am I doing wrong?
    The NPC is valid, I tried drawing the model to the canvas using
    floatingEssence.getModel().render(g);
    This worked perfectly, so the Npc is actually found.

    [​IMG]
     
  2. Aidden

    Aidden The better executive

    Joined:
    Dec 3, 2013
    Messages:
    3,500
    Likes Received:
    728
    Is it printing out nope when it is actually interacting successfully? If so it's a bug in the api. If it's not interacting it could be that your actions are wrong or that multiple action interaction isn't working. Npc interaction using single actions is working fine for me.
     
  3. Black Fire

    Joined:
    Dec 13, 2013
    Messages:
    83
    Likes Received:
    7
    Was just about to say the same thing. Also OP, get rid of that static sleep. Im guessing when you interact with the floating essence, your animation ID != -1, so you can just do.
    Execution.delayUntil(new Callable<Boolean>() {
    @Override
    public Boolean call() throws Exception {
    return Players.getLocal.getAnimationID() == -1;
    }
    }, 1500, 2000);
    Also after you do single arugment interaction, add another one these dynamic sleeps because at the moment you interact, your ID != -1, so you can do Npc.interact(blablabla) &&
    Execution.delayUntil(new Callable<Boolean>() {
    @Override
    public Boolean call() throws Exception {
    return Players.getLocal.getAnimationID() != -1;
    }
    }, 150, 3000);
    Then do the rest of your code
     
  4. Cloud

    Joined:
    Jul 28, 2013
    Messages:
    2,574
    Likes Received:
    929
    I was running a combat script bot for several hours before the release yesterday so it should be working fine. Let me know when you come across more information.
     
  5. Exile

    Joined:
    Jul 24, 2014
    Messages:
    188
    Likes Received:
    23
    No, it's printing "Nope :(", and nothing is happening(so the interaction has really failed).
    The mouse is not moving at all, and I've tested it with 1 action, tripple checked the action name and it's correct...
     
  6. Exile

    Joined:
    Jul 24, 2014
    Messages:
    188
    Likes Received:
    23
    Even a simple floatingEssence.click() or floatingEssence.hover() does nothing..
    I am 100% sure the Npc is valid, as I can get the bounds, I can get the name by doing getDefinitions(), everything..
     
  7. Wyn

    Wyn

    Joined:
    Jul 10, 2014
    Messages:
    65
    Likes Received:
    7
    Yup, was doing all my interaction through Models and nothing was catching on.
     
    Exile likes this.
  8. Exile

    Joined:
    Jul 24, 2014
    Messages:
    188
    Likes Received:
    23
    Another update, I tried using Mouse.click(floatingEssence,Mouse.Button.RIGHT), this doesn't work either.
     
  9. Cloud

    Joined:
    Jul 28, 2013
    Messages:
    2,574
    Likes Received:
    929
    Can you pm me an account and a zip of your code?
     
  10. Exile

    Joined:
    Jul 24, 2014
    Messages:
    188
    Likes Received:
    23
    Yea sure I will pm it in a sec, but the code isn't done, the only thing "working" (it isn't), is collecting Floating essence
     
  11. Ian C

    Joined:
    Jul 6, 2014
    Messages:
    23
    Likes Received:
    8
    That's weird. I can vouch for interaction working on both OS and RS3.. Lol
     
  12. Exile

    Joined:
    Jul 24, 2014
    Messages:
    188
    Likes Received:
    23
    I can send my code to you as well if you wish?
    Not my account(not because I don't trust you, it's a lvl 3 with no stats), because Cloud is working on that one :p
     
  13. Wyn

    Wyn

    Joined:
    Jul 10, 2014
    Messages:
    65
    Likes Received:
    7
    [​IMG]
    [​IMG]
    [​IMG]
     
  14. Cloud

    Joined:
    Jul 28, 2013
    Messages:
    2,574
    Likes Received:
    929
    So is it happening for both of you at the runespan area then?
     
  15. Exile

    Joined:
    Jul 24, 2014
    Messages:
    188
    Likes Received:
    23
    I'll try to make another script bot not runecrafting related and tell you more ;)
     
  16. Cloud

    Joined:
    Jul 28, 2013
    Messages:
    2,574
    Likes Received:
    929
    I like that idea :p
     
  17. Exile

    Joined:
    Jul 24, 2014
    Messages:
    188
    Likes Received:
    23
    Can only continue in about 15 hours(working), can't you do something really quick please?
     
  18. Black Fire

    Joined:
    Dec 13, 2013
    Messages:
    83
    Likes Received:
    7
    Don't worry, @Cloud is on the job as quick as he can be. He is entirely dedicated to this so he is probz going as fast as he can, also, get rid of them static sleeps niggah!
     
  19. Wyn

    Wyn

    Joined:
    Jul 10, 2014
    Messages:
    65
    Likes Received:
    7

    I assume he's a beginner.
     
    Exile likes this.
  20. Black Fire

    Joined:
    Dec 13, 2013
    Messages:
    83
    Likes Received:
    7
    Well i did give him an example of how to use it :(
     

Share This Page

Loading...