1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Hey Guest, If you'd like to instant message with many other users, then join our
    Official Rune-Status Discord Server!
    Dismiss Notice
  3. Got your own Server? Looking for a Server to play right now??
    Make sure you check out the Public Server Directory!
    Dismiss Notice
  4. If you're new to the Rsps Scene and want to jump straight into learning how to Set-up and Customise your own RuneScape Private Sever then check out the Guides and Tutorials for RS2 here.
    Dismiss Notice
Dismiss Notice
Hey Guest,
Are you sure your posting in the Right Sections?
If your unsure which RuneTek version you are working with visit this page to find out.

EverythingRS Heatmaps Realtime [OSRS]

Discussion in 'Guides & Tutorials' started by Genesis, Mar 18, 2018.

  1. 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 [​IMG]

    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


    [​IMG]


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

    [​IMG]
     
  2. Interesting addition to your arsenal, great job - keep it up!
     
  3. Thank you! :)
     
Loading...