Thread: [UPDATED - MAY 2014]RuneTopList Voting Script V3

Page 1 of 6 123 ... LastLast
Results 1 to 10 of 60
  1. #1 [UPDATED - MAY 2014]RuneTopList Voting Script V3 
    Registered Member
    Join Date
    Nov 2011
    Posts
    86
    Thanks given
    0
    Thanks received
    120
    Rep Power
    59
    Intro:

    Description: How to add RTL’s Voting Script V3 to your server.
    Difficulty: 2/10
    What you should know: How to read, Copy+Paste

    Quick note: I am the owner of RuneTopList and this is the Voting Script which we provide for free to our users.

    Website side:

    1. Register on RSPS TopList - RuneScape Private Servers
    2. Go on your profile and a add server.
    3. Go to the control panel of the server you just added. Then edit the vote for rewards.
    4. The approved sites are the sites which offer a callback feature. To get the server id on RuneLocus, go on your servers page and get the 5 digit number after “details” on the URL. On top100arena the id is the number at the end of the URL in your servers detail page.
    5. Once you add an approved site, you are given a URL in red which is the callback URL. This link is to be pasted in the callback field in the control panel of the site you just added (Not on RuneTopList’s control panel!).
    6. Add whichever other sites you want on your voting script as a non-approved.
    7. Add your rewards and optional custom message.
    8. You now have a subdomain with your voting script. If your server name was “example” your voting script would be at example.runetoplist.com/vote.
    9. Download the jar file and add to the server project. RuneTopListSDK_3.2 and Gson. If you run the server from bat file you may need to include these in the bat file.
    10. Follow the spoiler below. Also add correct imports in the different files you edit.


    imports
    Code:
    import com.runetoplist.*;
    import com.runetoplist.callbacks.*;
    import com.runetoplist.model.*;

    Add this in your Server file at the within the main method.
    Code:
    RuneTopList.init("YOUR_SERVER_USERNAME", "PRIVATE_KEY");


    Add this in your commands class
    Code:
    if (playerCommand.equals("check")) {
    	RuneTopList.checkRewards(c.playerName, new VoteRewardCallback() {
    		
    		@Override
    		public void callback(Object obj) {
    			Client c = (Client)obj;
    			if(getVoteRewards().size() == 0){					
    				c.sendMessage("You haven't voted! Do ::vote to vote.");
    			} else {
    				
    				//TODO: Should check if there is enough space to add items in inventory, if not then bank
    				for(VoteReward reward : getVoteRewards()){
    					switch (reward.getRewardid()) {//find reward id in the vote4reward control panel at runtoplist.com/YOUR_SERVERUSERNAME/cp
    					case 401:
    						c.sendMessage("Add potions here");
    						break;
    					case 7332:
    						c.sendMessage("Add new battle staff");
    						break;
    					default:
    						System.out.println("Missing reward id: " + reward.getRewardid());
    						break;
    					}
    				}
    			}
    			
    		}
    	});
    }


    Add this in your Client class within the process method
    Code:
    RuneTopList.runPendingCallbacks(playerName, this);
    11. If you want to embed it into an iframe on your website we have different themes for that. The URL would be example.runetoplist.com/vote?theme=greenfox. You can check out the different themes which are redfox, bluefox, brightbluefox, orangefox, goldfox. We can custom build you a theme that matches your website for a price. Contact us on the website if you are interested.
    12. In the sub-domain you will find a video gallery that you can use on your website. The videos uploaded here by your users will also appear on RuneTopList’s root domain, making it a very good tool to advertise your server.

    Spoiler for Vote Script:










    Reply With Quote  
     


  2. #2  
    I Quitted

    First's Avatar
    Join Date
    Nov 2013
    Age
    26
    Posts
    501
    Thanks given
    132
    Thanks received
    82
    Rep Power
    131
    Thanks
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Jun 2012
    Posts
    223
    Thanks given
    61
    Thanks received
    17
    Rep Power
    25
    Thanks once again!
    Reply With Quote  
     

  4. #4  
    Member

    Join Date
    Nov 2010
    Posts
    490
    Thanks given
    396
    Thanks received
    224
    Rep Power
    0
    Nice tutorial .
    -removed
    Reply With Quote  
     

  5. #5  
    Aganoth Developer

    Aust1n's Avatar
    Join Date
    Aug 2012
    Posts
    1,857
    Thanks given
    280
    Thanks received
    406
    Rep Power
    60
    Nice Job Danny! What about the people using the old script and dont want to switch, like what would they use for the runetoplist call back thing so it works properly.




    Reply With Quote  
     

  6. #6  
    Banned
    Join Date
    Dec 2012
    Age
    27
    Posts
    457
    Thanks given
    67
    Thanks received
    29
    Rep Power
    0
    Nice to see you updated the script.
    Reply With Quote  
     

  7. #7  
    Donator

    Join Date
    Dec 2012
    Posts
    541
    Thanks given
    44
    Thanks received
    47
    Rep Power
    27
    I read your email, this seems pretty awesome.
    :: Making money is not the point, it is the community that matters in the end. ::
    > Unless your name is Pim or Kevin of course.
    Reply With Quote  
     

  8. #8  
    Developer of LonelySouls
    Lonely Souls's Avatar
    Join Date
    Jan 2014
    Posts
    115
    Thanks given
    15
    Thanks received
    16
    Rep Power
    0
    I can't get past the first step i go into my CP and i get no options to edit my server i added

    Java Programmer

    Quote Originally Posted by edvinas123 View Post
    So I've recently changed some things in the server, but when i compile it says -

    source\server\model\players\packets\Commands.java: 58: error: cannot find symbol
    This.Antileech("Remove This Line");
    ^

    any heeelppp??
    Reply With Quote  
     

  9. #9  
    Registered Member
    Join Date
    Nov 2011
    Posts
    86
    Thanks given
    0
    Thanks received
    120
    Rep Power
    59
    Lonely souls are you on this website?

    My guess is that the DNS still hasn't propagated on your IP so you are still seeing the old website. If that's the case give it a few more hours. It has been 24 hours since the release and I know some people can only still see the old website.
    Reply With Quote  
     

  10. #10  
    Owner of Zanarite
    Ep1k's Avatar
    Join Date
    May 2012
    Posts
    417
    Thanks given
    107
    Thanks received
    62
    Rep Power
    12
    Looks great! Nice work.
    Not allowed.
    Reply With Quote  
     

Page 1 of 6 123 ... LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. [NEW] RuneTopList Voting Script V2 (Vote4Items)
    By Danny RTL in forum Tutorials
    Replies: 522
    Last Post: 12-06-2018, 03:10 AM
  2. RuneTopList Voting script help
    By Most Dope in forum Help
    Replies: 1
    Last Post: 07-08-2012, 02:49 AM
  3. RuneTopList Voting Script V1 (Vote4Items)
    By Danny RTL in forum Tutorials
    Replies: 180
    Last Post: 06-14-2012, 07:11 PM
  4. Replies: 0
    Last Post: 03-04-2012, 03:16 AM
  5. Replies: 3
    Last Post: 01-03-2012, 02:43 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •