RSPS Auto Store Tutorial

Getting Started 4 steps

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

After adding the everything-rs.jar into your project the next step is to create an account, once the account is created you must register onto the toplist as we use the toplist data in many of our api's.

EverythingRS API
  • In order for the script to work, you must set up EverythingRS with Paypal.

  • To set up your store script with PayPal, go to your account settings here and input your PayPal email. Submit the changes and you're done!

  • EverythingRS makes it easy for your customers to make payments on your store.

RSPS and EverythingRS Store Setup
  • 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

RSPS Remove Item From Store
  • We may 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.

RSPS Create a Sale
  • You can find your donation script at: yoursubdomain.everythingrs.com/services/store

RSPS Webstore
  • This part is for PI & Ruse but can easily be changed to work with any server. If you have a request for a specific server let me know and I can add it to the tutorial.

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

  • For Other Servers - The script is compatible with any base, if you however need help adding it to a specific one, leave a link to the base and I'll add it to the tutorial.

  •                           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();
    }
                            
    In PlayerCommand.java under
    switch (parser.getCommand()) {
    Add
    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;
    In ethos/model/players/packets/commands/all Open or create (if it does not exist) Claim.java and replace the entire file with this
    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();
        }
    
    }
    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();
    }
How helpful was this post?