Jump to content

The RuneLocus forum has been archived and does not accept new registrations.
Click here for more information, and click here to join the community on Discord.

EverythingRS Heatmaps Realtime [OSRS]


Genesis
 Share

Recommended Posts

EverythingRS - Realtime Heatmaps Tutorial

EverythingRS is a free API system. Here's a quick tutorial on how to get started with adding Heatmaps.

Getting started

  • First off download our everythingrs-api.jar from here and include it into your project.

Registration and secret key

  • After adding the everything-rs.jar into your project create an account at https://everythingrs.com, once the account is created you must register onto the toplist as we use the toplist data in many of our api's.
  • Now go to your dashboard and you should see your secret key fWlKyhh.png

What you are adding

Heatmaps can be used to view hotspots in the game, you can view where the wilderness hotspots are, alternatively you can view non-wilderness hotspots. Either can be disabled, so if you only want to show the wilderness hotspot you can do this.

  • Red = Wilderness Hotspots
  • Blue = Non Wilderness Hotspots


vPo9EYl.png


Making the Heatmaps work with your server

This part of the tutorial is for PI, but can easily be changed to work with any server. If you want me to add a snippet on the thread so it can work with your framework leave a comment with the server base you want the snippet for.

In your server startup (Server.java) under

public static void main(

Add this and change your secret key to the one on your account

        com.everythingrs.service.Service.scheduledService.scheduleAtFixedRate(new Runnable() {
            @Override
            public void run() {
                com.everythingrs.heatmaps.Heatmap.getMap().clear();
                for (Player player : PlayerHandler.players) {
                    if (player != null) {
                        com.everythingrs.heatmaps.Heatmap.getMap().put(player.getUsername(),
                                new com.everythingrs.heatmaps.Heatmap(player.getUsername(), player.absX, player.absY,
                                        player.height));
                    }
                }
                com.everythingrs.heatmaps.Heatmap.update("secret_key");
            }
        }, 0, 5, java.util.concurrent.TimeUnit.SECONDS);
	

Fin

You are finished with the tutorial and can now view your heatmaps on your subdomain page ^^

JeecnNP.png

Edited by Genesis
Link to comment
Share on other sites

  • 2 years later...
  • 1 year later...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...