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.

Cutscene being interrupted

Featured Replies

So I've been trying my hand in a few quests and trying to create my own 7qp script. However, I can't seem to get past the fact that cutscenes are being interrupted (e.g. script talks to NPC again if the cut-scene interrupts dialogue). I've tried using different configurations, etc. Doesn't seem to work... The problem is that I don't know what other parameter throw in the 'if' besides NPC checking. The NPCs are in the cut-scenes.

Here are the problematic snippets. Both of them have cut-scenes, so I have problems with both.

		if (Juliet != null) {
			Juliet.interact("Talk-to");
			Utils.condSleep(15000, 3000, () -> dialogues.isPendingContinuation());
		}
		if (dialogues.isPendingContinuation()) {
			dialogues.completeDialogue();
			Utils.condSleep(10000, 500, () -> configs.get(144) == 60);
		}

		if (configs.get(144) == 60) {
			log("Going to the crypt with Romeo");
			walking.webWalk(VarrockCenter);
		}
		if (Romeo != null) {
			Romeo.interact("Talk-to");
			Utils.condSleep(15000, 3000, () -> dialogues.isPendingContinuation());
		}
		if (dialogues.isPendingContinuation()) {
			dialogues.completeDialogue();
			Utils.condSleep(10000, 500, () -> widgets.isVisible(277, 15));
		}

FYI Utils is a different class for conditional sleep (credits to @nosepicker for making it convenient).

 

Edited by Magerange

21 minutes ago, Magerange said:

So I've been trying my hand in a few quests and trying to create my own 7qp script. However, I can't seem to get past the fact that cutscenes are being interrupted (e.g. script talks to NPC again if the cut-scene interrupts dialogue). I've tried using different configurations, etc. Doesn't seem to work... The problem is that I don't know what other parameter throw in the 'if' besides NPC checking. The NPCs are in the cut-scenes.

Here are the problematic snippets. Both of them have cut-scenes, so I have problems with both.


		if (Juliet != null) {
			Juliet.interact("Talk-to");
			Utils.condSleep(15000, 3000, () -> dialogues.isPendingContinuation());
		}
		if (dialogues.isPendingContinuation()) {
			dialogues.completeDialogue();
			Utils.condSleep(10000, 500, () -> configs.get(144) == 60);
		}

		if (configs.get(144) == 60) {
			log("Going to the crypt with Romeo");
			walking.webWalk(VarrockCenter);
		}
		if (Romeo != null) {
			Romeo.interact("Talk-to");
			Utils.condSleep(15000, 3000, () -> dialogues.isPendingContinuation());
		}
		if (dialogues.isPendingContinuation()) {
			dialogues.completeDialogue();
			Utils.condSleep(10000, 500, () -> widgets.isVisible(277, 15));
		}

FYI Utils is a different class for conditional sleep (credits to @nosepicker for making it convenient).

 

tabs are disabled in cutscenes. If inventory tab is disabled tell script only to click continue on dialogue in chat box and do not interact w/ npcs

  • Author
24 minutes ago, scape said:

tabs are disabled in cutscenes. If inventory tab is disabled tell script only to click continue on dialogue in chat box and do not interact w/ npcs

Sounds great! Is that 100% of the time though?

Also, how do I interpretate the construction propertly?
'Tabs.INVENTORY.isDisabled(*what comes here*)'

Edited by Magerange

3 hours ago, Magerange said:

Sounds great! Is that 100% of the time though?

Also, how do I interpretate the construction propertly?
'Tabs.INVENTORY.isDisabled(*what comes here*)'

if (Tab.INVENTORY.isDisabled(this.getBot()))
            return State.WAIT;

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.