Jump to content
View in the app

A better way to browse. Learn more.

RuneSuite RSPS Development

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.

Featured Replies

Posted
comment_6389

 

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

  • 1 month later...
comment_8046

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)

Create an account or sign in to comment

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.