Jump to content

Welcome to DreamBot!

Download for Free

Supercharge Your Bots

Run unlimited bots today using DreamBot's Covert Mode and
stay more protected.

Upgrade Now
Frequently Asked Questions
  • Are you not able to open the client? Make sure you have Java installed
  • Still not working? Try downloading and running JarFix
  • Help! My bot doesn't do anything! Enable fresh start in client settings and restart the client
  • How to purchase with PayPal/OSRS gold? You can purchase vouchers from other users
  • Try asking for help in the chatbox

Interested in advertising your business? Reach out today!

bebeli555

Detect if player is in Cutscene or not.

Recommended Posts

Here's a simple method that will return true if the player is currently in a Cutscene and false if not.

public static boolean inCutscene() {
	if (PlayerSettings.getConfig(1021) == 18624) {
		return true;
	} else {
		return false;
	}
}

 

Share this post


Link to post
Share on other sites

Oh and if those values dont work for your quest then just open the game explorer and go to PlayerSettings page. Then enter the cutscene and check what value just recently updated. then when u exit it the value should go back to what it was before you entered it. So then use that config value and the value it went to instead of those values in that method. But im not quite sure are the values quest releated. if they are then just do that and find out the values urself.

Share this post


Link to post
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...