Jump to content
Existing user? Sign In

Sign In



Sign Up

Changing Spawn Location based off Mode


Slatum

Recommended Posts

 

Ok so I am trying to change the spawn location based off of a mode that players can pick when they first log on

 

In Config.java:

I copied the RESPAWN_X and _Y and created a new one called RESPAWN_1 and _2.

the mode is classified as c.hardMode

 

Quote

 

public static final int RESPAWN_X = 2981;

public static final int RESPAWN_Y = 9875;

public static final int RESPAWN_1 = 2196;

public static final int RESPAWN_2 = 4961;

 

 

Then I opened PlayerAsistant.java and found the respawn ruling for basic player death, and I copied and added the ruling.

 

Quote

 

} else if (c.duelStatus <= 4) { // if we are not in a duel repawn to

movePlayer(Config.RESPAWN_X, Config.RESPAWN_Y, 0);

c.isSkulled = false;

c.skullTimer = 0;

c.attackedPlayers.clear();

} 

else if (c.duelStatus <= 4 && (c.hardMode = true)) { // if we are not in a duel repawn to

movePlayer(Config.RESPAWN_1, Config.RESPAWN_2, 20);

c.isSkulled = false;

c.skullTimer = 0;

c.attackedPlayers.clear();

}

 

However, this is not working. The c.hardMode still spawns in the same location as a regular death would spawn. Does anyone know how to fix or make this work?

 

 

Edited by Slatum
Link to comment
Share on other sites

  • 1 month later...

else if (c.duelStatus <= 4 && (c.hardMode = true)) { // if we are not in a duel repawn to

Did that compile? Lol never seen that in my life

Change first

else if (c.duelStatus <= 4 && c.hardMode == false)

and second statement

else if (c.duelStatus <= 4 && c.hardMode)

Link to comment
Share on other sites

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...