Jump to content
Existing user? Sign In

Sign In



Sign Up

Dialogue Delay


sob freddie

Recommended Posts

i know this can be written better feel free todo so, i noticed theres no way to delay how long before the next dialogue popped up, useful if your creating quest, kinda needed anyways here how to add it, again its not perfect it can be better

 

 

Open Dialogue.java and add this to there

 

public int DialogueDelay() {
		return -1;
	}

 

close and save that then Open DialogueManager.java

 

In the Load void add

final int delay = reader.has("delay") ? reader.get("delay").getAsInt() : -1;

 

and add this below that

 

public int DialogueDelay() {
						return delay;
					}

 

then add

int delay = next.DialogueDelay();
		if(delay > 0) {
			player.getPacketSender().sendInterfaceRemoval();
			try { 
					Thread.sleep(delay * 1000);
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
		}

 

Above 

Quote

start(player, next);

inside the NEXT Void

 

Again this can be done better i just needed something quick for quest im making, feel free to edit and reshare what you changed :) - Brandon

Edited by sob freddie
Link to comment
Share on other sites

  • 1 month later...
  • 3 months later...
  • 10 months later...
  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Contact

[email protected]

astra.security

What is a RSPS?

A RSPS, also known as RuneScape private server, is an online game based on RuneScape, and controlled by independent individuals.

Popular RSPS Servers

Runewild Ikov RedemptionRSPS

Disclaimer

Runesuite is not affiliated with runescape, jagex in any way & exists solely for educational purposes.

×
×
  • Create New...