URI:
   DIR Return Create A Forum - Home
       ---------------------------------------------------------
       RunePalace
  HTML https://runepalaceforums.createaforum.com
       ---------------------------------------------------------
       *****************************************************
   DIR Return to: Runescape Private Servers Help and Tutorials
       *****************************************************
       #Post#: 1412--------------------------------------------------
       {317} Nice Donator Commands {317}
   DIR By: Hybrid
       Date: January 7, 2011, 11:07 pm
       ---------------------------------------------------------
       Well here are the donator commands i made and use for my server.
       The first is a command that the user types after they have
       donated to prove it is them. ::demail "their email"
       --- Code ---
       if (command.startsWith("demail"))  {
       String name = command.substring(6);
       sM("Your email has been posted, please wait for your donation
       reward!");
       writeLog(playerName+": "+name, "demails");
       }
       --- End Code ---
       And this records them all in your server files.
       The next are
       --- Code ---
       } catch(Exception e) {
       sM(name+" either isn't online or doesn't exist");
       }
       }
       if (command.startsWith("w2donator") &&
       playerName.equalsIgnoreCase("Your Name"))  {
       String name = command.substring(10);
       try {
       int p = PlayerHandler.getPlayerID(name);
       client c = (client) server.playerHandler.players[p];
       c.sM("You are about to recieve a donation reward, 10 spots are
       needed.");
       sM("Message has been sent.");
       } catch(Exception e) {
       sM(name+" either isn't online or doesn't exist");
       }
       }
       if (command.startsWith("w50donator") &&
       playerName.equalsIgnoreCase("Your Name"))  {
       String name = command.substring(11);
       try {
       int p = PlayerHandler.getPlayerID(name);
       client c = (client) server.playerHandler.players[p];
       c.sM("You are about to recieve a donation reward, 17 spots are
       needed.");
       sM("Message has been sent.");
       } catch(Exception e) {
       sM(name+" either isn't online or doesn't exist");
       }
       }
       --- End Code ---
       these commands let the player know they are about to receive
       their reward and tells them how many inventory spots they will
       need.The next set it
       --- Code ---
       if (command.startsWith("5donator") &&
       playerName.equalsIgnoreCase("Your Name"))  {
       String name = command.substring(9);
       try {
       int p = PlayerHandler.getPlayerID(name);
       client c = (client) server.playerHandler.players[p];
       c.sM("Here are your donation rewards. Click the tickets for
       items of choice.");
       c.addItem(995, 200000000);
       c.addItem(748, 1);
       c.addItem(748, 1);
       c.donator = 1;
       c.writeLog(c.playerName, "donators");
       sM("Items have been added.");
       } catch(Exception e) {
       sM(name+" either isn't online or doesn't exist");
       }
       }
       if (command.startsWith("10donator") &&
       playerName.equalsIgnoreCase("Your Name"))  {
       String name = command.substring(10);
       try {
       int p = PlayerHandler.getPlayerID(name);
       client c = (client) server.playerHandler.players[p];
       c.sM("Here are your donation rewards. Click the tickets for
       items of choice.");
       c.addItem(995, 400000000);
       c.addItem(748, 1);
       c.addItem(748, 1);
       c.addItem(748, 1);
       c.addItem(748, 1);
       c.addItem(3486, 1);
       c.addItem(3481, 1);
       c.addItem(3483, 1);
       c.addItem(3485, 1);
       c.addItem(3488, 1);
       c.donator = 1;
       c.writeLog(c.playerName, "donators");
       sM("Items have been added.");
       } catch(Exception e) {
       sM(name+" either isn't online or doesn't exist");
       }
       }
       if (command.startsWith("15donator") &&
       playerName.equalsIgnoreCase("Your Name"))  {
       String name = command.substring(10);
       try {
       int p = PlayerHandler.getPlayerID(name);
       client c = (client) server.playerHandler.players[p];
       c.addItem(7237, 1);
       c.addItem(7237, 1);
       c.addItem(7237, 1);
       c.addItem(7237, 1);
       c.addItem(7237, 1);
       c.addItem(7237, 1);
       c.addItem(7237, 1);
       c.addItem(7237, 1);
       c.addItem(7237, 1);
       c.addItem(7237, 1);
       sM("Items have been added.");
       } catch(Exception e) {
       sM(name+" either isn't online or doesn't exist");
       }
       }
       if (command.startsWith("2donator") &&
       playerName.equalsIgnoreCase("Your Name"))  {
       String name = command.substring(9);
       try {
       int p = PlayerHandler.getPlayerID(name);
       client c = (client) server.playerHandler.players[p];
       c.addItem(7237, 1);
       sM("Items have been added.");
       } catch(Exception e) {
       sM(name+" either isn't online or doesn't exist");
       }
       }
       if (command.startsWith("50donator") &&
       playerName.equalsIgnoreCase("Your Name"))  {
       String name = command.substring(10);
       try {
       int p = PlayerHandler.getPlayerID(name);
       client c = (client) server.playerHandler.players[p];
       c.sM("Here are your donation rewards. Click the tickets for
       items of choice.");
       c.addItem(995, 2000000000);
       c.addItem(748, 1);
       c.addItem(748, 1);
       c.addItem(748, 1);
       c.addItem(748, 1);
       c.addItem(748, 1);
       c.addItem(748, 1);
       c.addItem(748, 1);
       c.addItem(748, 1);
       c.addItem(748, 1);
       c.addItem(748, 1);
       c.addItem(2750, 1);
       c.addItem(2749, 1);
       c.addItem(2752, 1);
       c.addItem(2753, 1);
       c.addItem(2754, 1);
       c.addItem(2751, 1);
       c.donator = 2;
       c.writeLog(c.playerName, "golddonators");
       sM("Items have been added.");
       } catch(Exception e) {
       sM(name+" either isn't online or doesn't exist");
       }
       }
       --- End Code ---
       these commands are the ones that send the items into the players
       inventory. You can change the item id's to your donator rewards.
       Have fun with these useful commands.
       #Post#: 1484--------------------------------------------------
       Re: {317} Nice Donator Commands {317}
   DIR By: Zito6694
       Date: January 8, 2011, 1:34 pm
       ---------------------------------------------------------
       This is getting complicated...
       #Post#: 1496--------------------------------------------------
       Re: {317} Nice Donator Commands {317}
   DIR By: Hybrid
       Date: January 8, 2011, 6:20 pm
       ---------------------------------------------------------
       these are commands for the server.
       #Post#: 1509--------------------------------------------------
       Re: {317} Nice Donator Commands {317}
   DIR By: Zito6694
       Date: January 8, 2011, 6:30 pm
       ---------------------------------------------------------
       yes, i know, but that doesn't stop it from being complicated
       #Post#: 1551--------------------------------------------------
       Re: {317} Nice Donator Commands {317}
   DIR By: Hybrid
       Date: January 8, 2011, 7:17 pm
       ---------------------------------------------------------
       it's just copy and paste, nothing easier than this.
       #Post#: 1556--------------------------------------------------
       Re: {317} Nice Donator Commands {317}
   DIR By: Zito6694
       Date: January 8, 2011, 7:29 pm
       ---------------------------------------------------------
       Oh, ok, that isn't complicated at all then
       *****************************************************
       Page 1 of 1