vasterasjonte 0 Share Posted November 18, 2020 Anyone else have noticed problem to Interact Attack targets? I do this "if (target.interact("Attack")){}" but for some reason it does not interact the target first try. Takes about 3 interacts for it to actually interact Link to comment Share on other sites More sharing options...
Hmm 31 Share Posted November 19, 2020 Show full code please. Link to comment Share on other sites More sharing options...
vasterasjonte 0 Author Share Posted November 19, 2020 (edited) 11 hours ago, NEWPROG said: Show full code please. GroundItem bones = naxofuntions.getNPCItem(526, target); if (bones.interact("Take")) { sleepUntil(() -> !bones.exists(), 10000); } Edited November 19, 2020 by vasterasjonte Link to comment Share on other sites More sharing options...
Pseudo 178 Share Posted November 19, 2020 Show the method in question. And what you've posted is pertaining to a ground item not an npc? Or is the problem occurring for both? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now