Thread: EverythingRS Voting Donate Hiscores Heatmaps Installation & More [ANY BASE]

Page 95 of 135 FirstFirst ... 45859394959697105 ... LastLast
Results 941 to 950 of 1344
  1. #941  
    Banned
    Join Date
    Dec 2018
    Posts
    119
    Thanks given
    1
    Thanks received
    42
    Rep Power
    0
    Quote Originally Posted by Genesis View Post
    EverythingRS - Free Donation Installation

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

    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 the next step is to 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


    Setting up your donation with Paypal

    In order for the donation script to work, you must set it up with your Paypal.

    • To set up your donation script to receive Paypal payments, go to your settings here
    • Input your Paypal email and hit submit




    Adding and removing items

    Adding and removing items from your Auto Donate is simple.

    • Go to your Auto Donate dashboard here
    • Under "Add new product", fill out the form information, then hit submit
    • To remove an item just click "Remove" next to the item that you are trying to remove




    (Optional) Creating a Sale

    We promote sales on our front page. This is a good way for new players to find deals on servers before joining, and for servers to earn new customers.

    • To create a sale go to your Sales dashboard here
    • Choose the item that you want to put on sale
    • Set the expiration date, and what % off you want to make the item
    • Read our notification and confirm that you commit to the sale.




    Lets take a look at your new donation page

    You can find your donation script at: yoursubdomain.everythingrs.com/services/store
    Attached image

    Making the auto donate work with your server

    This part of the tutorial is for PI & Ruse, 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.

    • Add the code below into Commands.java and you're all done!


    For PI

    Spoiler for :
    Code:
    			if (playerCommand.equalsIgnoreCase("claim")) {
    				new java.lang.Thread() {
    					public void run() {
    						try {
    							com.everythingrs.donate.Donation[] donations = com.everythingrs.donate.Donation.donations("secret_key", 
    									c.playerName);
    							if (donations.length == 0) {
    								c.sendMessage("You currently don't have any items waiting. You must donate first!");
    								return;
    							}
    							if (donations[0].message != null) {
    								c.sendMessage(donations[0].message);
    								return;
    							}
    							for (com.everythingrs.donate.Donation donate : donations) {
    								c.getItems().addItem(donate.product_id, donate.product_amount);
    							}
    							c.sendMessage("Thank you for donating!");
    						} catch (Exception e) {
    							c.sendMessage("Api Services are currently offline. Please check back shortly");
    							e.printStackTrace();
    						}	
    					}
    				}.start();
    			}



    For Vencillio

    Spoiler for :


    In PlayerCommand.java under

    Code:
    switch (parser.getCommand()) {
    Add

    Code:
    case "claim":
    			new java.lang.Thread() {
    				public void run() {
    					try {
    						com.everythingrs.donate.Donation[] donations = com.everythingrs.donate.Donation.donations("secret_key", 
    								player.getUsername());
    						if (donations.length == 0) {
    							player.send(new SendMessage("You currently don't have any items waiting. You must donate first!"));
    							return;
    						}
    						if (donations[0].message != null) {
    							player.send(new SendMessage(donations[0].message));
    							return;
    						}
    						for (com.everythingrs.donate.Donation donate : donations) {
    							player.getInventory().add(new Item(donate.product_id, donate.product_amount));
    						}
    						player.send(new SendMessage("Thank you for donating!"));
    					} catch (Exception e) {
    						player.send(new SendMessage("Api Services are currently offline. Please check back shortly"));
    						e.printStackTrace();
    					}	
    				}
    			}.start();
    			return true;



    For Ethos / Exotic


    Spoiler for :

    In ethos/model/players/packets/commands/all

    Open or create (if it does not exist) Claim.java

    and replace the entire file with this

    Code:
    package ethos.model.players.packets.commands.all;
    
    import ethos.model.players.Player;
    import ethos.model.players.packets.commands.Command;
    
    /**
     * Auto Donation System / https://EverythingRS.com
     * @author Genesis
     *
     */
    
    public class Claim extends Command {
    
    	@Override
    	public void execute(Player player, String input) {
    		new java.lang.Thread() {
    			public void run() {
    				try {
    					com.everythingrs.donate.Donation[] donations = com.everythingrs.donate.Donation
    							.donations("secret_key", player.playerName);
    					if (donations.length == 0) {
    						player.sendMessage("You currently don't have any items waiting. You must donate first!");
    						return;
    					}
    					if (donations[0].message != null) {
    						player.sendMessage(donations[0].message);
    						return;
    					}
    					for (com.everythingrs.donate.Donation donate : donations) {
    						player.getItems().addItem(donate.product_id, donate.product_amount);
    					}
    					player.sendMessage("Thank you for donating!");
    				} catch (Exception e) {
    					player.sendMessage("Api Services are currently offline. Please check back shortly");
    					e.printStackTrace();
    				}
    			}
    		}.start();
    	}
    
    }


    For Ruse

    Spoiler for :
    Code:
    if (command[0].equalsIgnoreCase("claim")) {
    			new java.lang.Thread() {
    				public void run() {
    					try {
    						com.everythingrs.donate.Donation[] donations = com.everythingrs.donate.Donation.donations("secret_key", 
    								player.getUsername());
    						if (donations.length == 0) {
    							player.getPacketSender().sendMessage("You currently don't have any items waiting. You must donate first!");
    							return;
    						}
    						if (donations[0].message != null) {
    							player.getPacketSender().sendMessage(donations[0].message);
    							return;
    						}
    						for (com.everythingrs.donate.Donation donate : donations) {
    							player.getInventory().add(new Item(donate.product_id, donate.product_amount));
    						}
    						player.getPacketSender().sendMessage("Thank you for donating!");
    					} catch (Exception e) {
    						player.getPacketSender().sendMessage("Api Services are currently offline. Please check back shortly");
    						e.printStackTrace();
    					}	
    				}
    			}.start();
    		}
    Fin

    You are now finished adding the auto donation script to your website and server. If you have any suggestions for features, leave a comment and let me know.
    http://prntscr.com/nfnfe4 keep getting this and this is a very helpfull errror message.
    Reply With Quote  
     

  2. #942  
    Rune-Server Affiliate
    Genesis's Avatar
    Join Date
    Sep 2010
    Posts
    4,149
    Thanks given
    1,508
    Thanks received
    1,980
    Rep Power
    4944
    Quote Originally Posted by DisergentPk View Post
    http://prntscr.com/nfnfe4 keep getting this and this is a very helpfull errror message.
    Please PM me your account name, that error usually means that the wrong subdomain was typed in.
    Reply With Quote  
     

  3. #943  
    Owner of Ghreborn new and old.


    Join Date
    Nov 2009
    Posts
    916
    Thanks given
    47
    Thanks received
    155
    Rep Power
    273
    can u make it so the whole market can be reset.
    Im back and working on reborn,
    Reply With Quote  
     

  4. #944  
    Rune-Server Affiliate
    Genesis's Avatar
    Join Date
    Sep 2010
    Posts
    4,149
    Thanks given
    1,508
    Thanks received
    1,980
    Rep Power
    4944
    Need feedback
    Reply With Quote  
     

  5. #945  
    Rune-Server Affiliate
    Genesis's Avatar
    Join Date
    Sep 2010
    Posts
    4,149
    Thanks given
    1,508
    Thanks received
    1,980
    Rep Power
    4944
    You can now add a terms of service here: https://everythingrs.com/account/web...rms-of-service
    Reply With Quote  
     

  6. #946  
    Rune-Server Affiliate
    Genesis's Avatar
    Join Date
    Sep 2010
    Posts
    4,149
    Thanks given
    1,508
    Thanks received
    1,980
    Rep Power
    4944
    Bump!
    Reply With Quote  
     

  7. #947  
    Rune-Server Affiliate
    Genesis's Avatar
    Join Date
    Sep 2010
    Posts
    4,149
    Thanks given
    1,508
    Thanks received
    1,980
    Rep Power
    4944
    Bump!
    Reply With Quote  
     

  8. #948  
    🖤Runic Developer🖤
    Castiel's Avatar
    Join Date
    Apr 2013
    Posts
    1,752
    Thanks given
    564
    Thanks received
    288
    Rep Power
    609
    keep up the good work bro
    Attached image
    Attached image
    Reply With Quote  
     

  9. Thankful user:


  10. #949  
    Rune-Server Affiliate
    Genesis's Avatar
    Join Date
    Sep 2010
    Posts
    4,149
    Thanks given
    1,508
    Thanks received
    1,980
    Rep Power
    4944
    Quote Originally Posted by Gallifrey View Post
    keep up the good work bro
    Thank you
    Reply With Quote  
     

  11. #950  
    Rune-Server Affiliate
    Genesis's Avatar
    Join Date
    Sep 2010
    Posts
    4,149
    Thanks given
    1,508
    Thanks received
    1,980
    Rep Power
    4944
    Bump!
    Reply With Quote  
     

  12. Thankful user:


Page 95 of 135 FirstFirst ... 45859394959697105 ... 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. MotivoteRS Installation Tutorial [ANY BASE]
    By funkE in forum Tutorials
    Replies: 147
    Last Post: 02-19-2019, 11:40 PM
  2. Replies: 8
    Last Post: 03-05-2018, 11:06 PM
  3. Setup Ruse Vote/Donate/Hiscores
    By NoahLH in forum Buying
    Replies: 6
    Last Post: 04-07-2017, 07:47 PM
  4. Replies: 6
    Last Post: 09-15-2016, 01:24 AM
  5. Replies: 8
    Last Post: 04-01-2016, 08:49 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •