Jump to content

Interacting with NPC


Frukzz

Recommended Posts

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? 🙂

Link to comment
Share on other sites

        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 🙂

Link to comment
Share on other sites

  • 1 year later...
On 8/10/2024 at 12:05 AM, Frukzz said:

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? 🙂







That's awesome news for Android users! The Better Reading Podcast has been a fantastic resource for book lovers, and now being able to listen directly from your phone makes it even more accessible. Whether you're commuting, exercising, or just relaxing at home, it's great to have literary discussions right at your fingertips. For those managing a lot of content or looking to optimize their listening habits, platforms like best free scanner app https://scanner.biz/reviews/best-free-scanner-apps/ can help organize and track your podcasts, ensuring you never miss an episode and stay on top of your listening schedule.

Thanks for information!

Edited by rosalysny
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...