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 Hiscores Installation [ANY BASE]

Discussion in 'Guides & Tutorials' started by Genesis, Feb 11, 2018.

  1. EverythingRS - Free Hiscores Installation

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

    Getting started

    • First off download our everythingrs-api.jar from Sorry you must be logged in to read this.
      Click here to log in.
      and include it into your project.

    Registration and secret key

    • After adding the everything-rs.jar into your project Sorry you must be logged in to read this.
      Click here to log in.
      , 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]

    Your Hiscores subdomain!

    • Go to your main panel at Sorry you must be logged in to read this.
      Click here to log in.
      . You should now see your voting URL in the "Your API Pages" section
    • (OPTIONAL) If you wish to embed the script on your website you can add the code below directly onto your website. Change "yoursubdomain" to the one that was provided to you

    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    
    <head>
    	<title>Hiscores</title>
    	<style type="text/css">
    		body,
    		html {
    			margin: 0;
    			padding: 0;
    			height: 100%;
    			overflow: hidden;
    		}
    		
    		#content {
    			position: absolute;
    			left: 0;
    			right: 0;
    			bottom: 0;
    			top: 0px;
    		}
    	</style>
    </head>
    
    <body>
    	<div id="content">
    		<iframe width="100%" height="100%" frameborder="0" src="https://yoursubdomain.everythingrs.com/services/hiscores/" />
    	</div>
    </body>
    
    </html>

    Making the Hiscores 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 Client.java under

    public void destruct() {

    Add this

    
    boolean debugMessage = false;
    com.everythingrs.hiscores.Hiscores.update("secret_key",  "Normal Mode", this.playerName, this.playerRights, this.playerXP, debugMessage);
    

    Be sure to change "secret_key" to the secret key on your ERS account.

    Fin

    You now have a working Hiscores on your server! If you have any suggestions or need help please leave a comment.

    Lets take a look at your new Hiscores

    [​IMG]

    [​IMG]

    Hiscores Dashboard

    You can remove members and add new modes from your Sorry you must be logged in to read this.
    Click here to log in.


    [​IMG]
     
    Tags:
  2. I get the error "playerrights cannot be resolved or is not a field" and i don't know how to fix so it'll work. I'm working with a 317 revision exotic/ethos base.
     
Loading...
Loading...