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_120351

Quest System — Complete Guide


Overview

The quest system allows you to create custom quests with NPC dialogue, requirements, stage tracking, and rewards. Player progress is saved automatically via MongoDB.


Part 1 — Installation

File Structure

Create these folders and files in your project:

This is the hidden content, please

Step 1 — Register Quest Module

File: StaticInit.java

Search for:

This is the hidden content, please

Add directly after:

This is the hidden content, please

Step 2 — Register NPC Actions

File: StaticInit.java

Search for:

This is the hidden content, please

Add directly after:

This is the hidden content, please

Step 3 — Add Quest Storage to Player

File: PlayerAttributes.java

Search for:

This is the hidden content, please

Add directly after:

This is the hidden content, please

Search for:

This is the hidden content, please

Add directly after:

This is the hidden content, please

Step 4 — Add Quest Command

File: CommandHandlerRegular.java

Add imports at the top with other imports:

This is the hidden content, please

Add this case inside the switch (command) block:

This is the hidden content, please

Step 5 — Rebuild

This is the hidden content, please

Step 6 — Test in Game

This is the hidden content, please

Part 2 — Adding a New Quest

  1. Create YourQuest.java in quest/impl/ extending Quest

  2. Override all required methods (see template below)

  3. Add to Module.java:

This is the hidden content, please
  1. Create NPC action file in npc/actions/

  2. Register NPC in StaticInit.java

  3. Rebuild


Part 3 — Full File Reference


Quest.java

kronos-server/src/main/java/io/ruin/model/quest/Quest.java

This is the hidden content, please

QuestManager.java

kronos-server/src/main/java/io/ruin/model/quest/QuestManager.java

This is the hidden content, please

QuestStage.java

kronos-server/src/main/java/io/ruin/model/quest/QuestStage.java

This is the hidden content, please

Module.java

kronos-server/src/main/java/io/ruin/model/quest/module/Module.java

This is the hidden content, please

ASimpleErrand.java

kronos-server/src/main/java/io/ruin/model/quest/impl/ASimpleErrand.java

This is the hidden content, please

Part 4 — Quest Template

Use this as a starting point for every new quest:

This is the hidden content, please

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.