Jump to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How to talk with NPC in Tutorial Island?

Featured Replies

According to my logic, this fragment should work to talk to an NPC of Tutorial Island.

if(dialogues.inDialogue()) {
	if(!dialogues.isPendingContinuation()) {
		if(dialogues.clickContinue()) {
			dialogues.clickContinue();
		}
	}
}else {
	NPC tuto2 = npcs.closest("Survival Expert");
	if(tuto2.isVisible()){
		tuto2.interact("Talk-to");
	}else{
		getCamera().toEntity(tuto2);
	}
}

But in Tutorial Island the annoying messages appear that seem to dialogue with another NPC but they are not.

I attach the image specifying the message to which I refer.

https://photos.app.goo.gl/3ta5FZpqZNg8EfSM6

Edited by trainux

Well firstly @trainux, don't check if getDialogues().inDialogue(), because as you said yourself, the player is always in a dialogue.

Whenever you are talking to an NPC on the island the "Click here to continue" / "Click to continue" widget will be visible. So just check for that instead.

Just look at my open source script https://github.com/Explv/Tutorial-Island

Edited by Explv

  • Author
2 minutes ago, Explv said:

Well firstly @trainux, don't check if getDialogues().inDialogue(), because as you said yourself, the player is always in a dialogue.

Whenever you are talking to an NPC on the island the "Click here to continue" / "Click to continue" widget will be visible. So just check for that instead.

Just look at my open source script https://github.com/Explv/Tutorial-Island

Your island code is free, I did not know, I will use it to guide me.
Thanks brother.

Quote

NPC tuto2 = npcs.closest("Survival Expert");
    if(tuto2.isVisible()){
        tuto2.interact("Talk-to");
    }else{
        getCamera().toEntity(tuto2);
    }

Don't write in camera code, interact does it for you. Also interaction event has specific requirements on whats visible or not, so its possible your script stalls forever.
 

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.