Frukzz 0 Posted August 9 Share Posted August 9 Hi i cant find any examples of how to interact with an NPC and i have a bit of trouble understanding the API documentation properly. Could someone give me an example on how this is done? 🙂 Quote Link to comment Share on other sites More sharing options...
Frukzz 0 Posted August 10 Author Share Posted August 10 Npc npc = Query.npcs() .nameEquals("Npc Name") .findFirst() .orElse(null); npc.interact("Talk-to") Waiting.waitUntil(npc::isInteractingWithMe); I figured it out, hope it helps someone else 🙂 Quote Link to comment Share on other sites More sharing options...
cass2186 45 Posted August 11 Share Posted August 11 You can do  if(Query.npcs().nameContains("name").findClosest().map(n-> n.interact("Talk-to").orElse(false)){ Waiting.waitUntil(5000, 100, ChatScreen:isOpen); }  Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.