Thread: EverythingRS Auto Donation Installation [ANY BASE]

Page 28 of 33 FirstFirst ... 182627282930 ... LastLast
Results 271 to 280 of 324
  1. #271  
    Rune-Server Affiliate
    Genesis's Avatar
    Join Date
    Sep 2010
    Posts
    3,823
    Thanks given
    1,487
    Thanks received
    1,936
    Rep Power
    4860
    Quote Originally Posted by Aekramer View Post
    Where would I get these files, "ipn.php" (and Im assuming more for the webend)?
    Is there a tutorial for the non-subdomain version?
    The tutorial is for the subdomain version, sorry I'll edit the main post to reflect that.
    • [Only registered and activated users can see links. ]
    • [Only registered and activated users can see links. ]
    • [Only registered and activated users can see links. ]
    • [Only registered and activated users can see links. ]
    • [Only registered and activated users can see links. ]
    • [Only registered and activated users can see links. ]
    • [Only registered and activated users can see links. ]
    • [Only registered and activated users can see links. ]


    1. [Only registered and activated users can see links. ]


    1. [Only registered and activated users can see links. ]
    2. [Only registered and activated users can see links. ]
    Reply With Quote  
     

  2. #272  
    Registered Member
    Join Date
    Jul 2013
    Posts
    68
    Thanks given
    5
    Thanks received
    0
    Rep Power
    59
    Can I get an explanation on how to change the donation and vote command in order to have items go directly into players inventory by just typing ::redeem and just have something in my command just saying c.getItems().addItem(id, amount) instead of typing ::reward id ect..
    Reply With Quote  
     

  3. #273  
    Rune-Server Affiliate
    Genesis's Avatar
    Join Date
    Sep 2010
    Posts
    3,823
    Thanks given
    1,487
    Thanks received
    1,936
    Rep Power
    4860
    Quote Originally Posted by tank nation View Post
    Can I get an explanation on how to change the donation and vote command in order to have items go directly into players inventory by just typing ::redeem and just have something in my command just saying c.getItems().addItem(id, amount) instead of typing ::reward id ect..
    The command for voting is reward [id] [amount]. One thing you can do is change the command and id. So if you only have 1 item (vote tokens) and you want them to put all the points into the tokens. You can change [id] to reflect that, and [amount] to "all".

    Here's an example, where all they would have to do is type ::reward, and they would get all of the of id 1 (token).

    Code:
    if (playerCommand.equalsIgnoreCase("reward")) {
    				final String playerName = c.playerName;
    				final String id = 1; // This is changed to the id that you want to claim
    				final String amount = "all"; // And you want them to get all of the tokens that they can so this is changed to 'all'
    
    				com.everythingrs.vote.Vote.service.execute(new Runnable() {
    					@Override
    					public void run() {
    						try {
    							com.everythingrs.vote.Vote[] reward = com.everythingrs.vote.Vote.reward("secret_key",
    									playerName, id, amount);
    							if (reward[0].message != null) {
    								c.sendMessage(reward[0].message);
    								return;
    							}
    							c.getItems().addItem(reward[0].reward_id, reward[0].give_amount);
    							c.sendMessage(
    									"Thank you for voting! You now have " + reward[0].vote_points + " vote points.");
    						} catch (Exception e) {
    							c.sendMessage("Api Services are currently offline. Please check back shortly");
    							e.printStackTrace();
    						}
    					}
    
    				});
    			}
    • [Only registered and activated users can see links. ]
    • [Only registered and activated users can see links. ]
    • [Only registered and activated users can see links. ]
    • [Only registered and activated users can see links. ]
    • [Only registered and activated users can see links. ]
    • [Only registered and activated users can see links. ]
    • [Only registered and activated users can see links. ]
    • [Only registered and activated users can see links. ]


    1. [Only registered and activated users can see links. ]


    1. [Only registered and activated users can see links. ]
    2. [Only registered and activated users can see links. ]
    Reply With Quote  
     

  4. Thankful user:


  5. #274  
    Rune-Server Affiliate
    Genesis's Avatar
    Join Date
    Sep 2010
    Posts
    3,823
    Thanks given
    1,487
    Thanks received
    1,936
    Rep Power
    4860
    Bump!
    • [Only registered and activated users can see links. ]
    • [Only registered and activated users can see links. ]
    • [Only registered and activated users can see links. ]
    • [Only registered and activated users can see links. ]
    • [Only registered and activated users can see links. ]
    • [Only registered and activated users can see links. ]
    • [Only registered and activated users can see links. ]
    • [Only registered and activated users can see links. ]


    1. [Only registered and activated users can see links. ]


    1. [Only registered and activated users can see links. ]
    2. [Only registered and activated users can see links. ]
    Reply With Quote  
     

  6. #275  
    Rune-Server Affiliate
    Genesis's Avatar
    Join Date
    Sep 2010
    Posts
    3,823
    Thanks given
    1,487
    Thanks received
    1,936
    Rep Power
    4860
    Bump!
    • [Only registered and activated users can see links. ]
    • [Only registered and activated users can see links. ]
    • [Only registered and activated users can see links. ]
    • [Only registered and activated users can see links. ]
    • [Only registered and activated users can see links. ]
    • [Only registered and activated users can see links. ]
    • [Only registered and activated users can see links. ]
    • [Only registered and activated users can see links. ]


    1. [Only registered and activated users can see links. ]


    1. [Only registered and activated users can see links. ]
    2. [Only registered and activated users can see links. ]
    Reply With Quote  
     

  7. #276  
    Registered Member
    Join Date
    Jul 2013
    Posts
    68
    Thanks given
    5
    Thanks received
    0
    Rep Power
    59
    Quote Originally Posted by Genesis View Post
    The command for voting is reward [id] [amount]. One thing you can do is change the command and id. So if you only have 1 item (vote tokens) and you want them to put all the points into the tokens. You can change [id] to reflect that, and [amount] to "all".

    Here's an example, where all they would have to do is type ::reward, and they would get all of the of id 1 (token).

    Code:
    if (playerCommand.equalsIgnoreCase("reward")) {
    				final String playerName = c.playerName;
    				final String id = 1; // This is changed to the id that you want to claim
    				final String amount = "all"; // And you want them to get all of the tokens that they can so this is changed to 'all'
    
    				com.everythingrs.vote.Vote.service.execute(new Runnable() {
    					@Override
    					public void run() {
    						try {
    							com.everythingrs.vote.Vote[] reward = com.everythingrs.vote.Vote.reward("secret_key",
    									playerName, id, amount);
    							if (reward[0].message != null) {
    								c.sendMessage(reward[0].message);
    								return;
    							}
    							c.getItems().addItem(reward[0].reward_id, reward[0].give_amount);
    							c.sendMessage(
    									"Thank you for voting! You now have " + reward[0].vote_points + " vote points.");
    						} catch (Exception e) {
    							c.sendMessage("Api Services are currently offline. Please check back shortly");
    							e.printStackTrace();
    						}
    					}
    
    				});
    			}

    EDIT: Never mind the question below, Fixed the issue it was a mistake I made.

    Okay so question I have tried a couple of different things and it seem to be incorrect in someway in my chat box it says, INGAME - the reward you are trying to claim dosent exsit, please wait a few seconds ect.. is that "1" Suppose to be an integer instead of string or what? Cause I used it as "1" in order to tell it that I wanted the reward id "1" from the site, and also tried to replace it with the id number in game of the item I was wanting and I get the same type of response.
    Reply With Quote  
     

  8. #277  
    Rune-Server Affiliate
    Genesis's Avatar
    Join Date
    Sep 2010
    Posts
    3,823
    Thanks given
    1,487
    Thanks received
    1,936
    Rep Power
    4860
    Quote Originally Posted by tank nation View Post
    EDIT: Never mind the question below, Fixed the issue it was a mistake I made.
    Glad you got it working
    • [Only registered and activated users can see links. ]
    • [Only registered and activated users can see links. ]
    • [Only registered and activated users can see links. ]
    • [Only registered and activated users can see links. ]
    • [Only registered and activated users can see links. ]
    • [Only registered and activated users can see links. ]
    • [Only registered and activated users can see links. ]
    • [Only registered and activated users can see links. ]


    1. [Only registered and activated users can see links. ]


    1. [Only registered and activated users can see links. ]
    2. [Only registered and activated users can see links. ]
    Reply With Quote  
     

  9. #278  
    Registered Member
    Join Date
    Jul 2013
    Posts
    68
    Thanks given
    5
    Thanks received
    0
    Rep Power
    59
    Quote Originally Posted by Genesis View Post
    Glad you got it working
    Thanks for the code
    Reply With Quote  
     

  10. #279  
    Rune-Server Affiliate
    Genesis's Avatar
    Join Date
    Sep 2010
    Posts
    3,823
    Thanks given
    1,487
    Thanks received
    1,936
    Rep Power
    4860
    Bump!
    • [Only registered and activated users can see links. ]
    • [Only registered and activated users can see links. ]
    • [Only registered and activated users can see links. ]
    • [Only registered and activated users can see links. ]
    • [Only registered and activated users can see links. ]
    • [Only registered and activated users can see links. ]
    • [Only registered and activated users can see links. ]
    • [Only registered and activated users can see links. ]


    1. [Only registered and activated users can see links. ]


    1. [Only registered and activated users can see links. ]
    2. [Only registered and activated users can see links. ]
    Reply With Quote  
     

  11. #280  
    Rune-Server Affiliate
    Genesis's Avatar
    Join Date
    Sep 2010
    Posts
    3,823
    Thanks given
    1,487
    Thanks received
    1,936
    Rep Power
    4860
    Bump!
    • [Only registered and activated users can see links. ]
    • [Only registered and activated users can see links. ]
    • [Only registered and activated users can see links. ]
    • [Only registered and activated users can see links. ]
    • [Only registered and activated users can see links. ]
    • [Only registered and activated users can see links. ]
    • [Only registered and activated users can see links. ]
    • [Only registered and activated users can see links. ]


    1. [Only registered and activated users can see links. ]


    1. [Only registered and activated users can see links. ]
    2. [Only registered and activated users can see links. ]
    Reply With Quote  
     

Page 28 of 33 FirstFirst ... 182627282930 ... LastLast

Thread Information
Users Browsing this Thread

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

Similar Threads

  1. EverythingRS Voting Installation [ANY BASE]
    By Genesis in forum Tutorials
    Replies: 295
    Last Post: Yesterday, 04:10 AM
  2. EverythingRS Hiscores Installation [ANY BASE]
    By Genesis in forum Tutorials
    Replies: 197
    Last Post: 06-14-2019, 02:38 PM
  3. MotivoteRS Installation Tutorial [ANY BASE]
    By funkE in forum Tutorials
    Replies: 147
    Last Post: 02-19-2019, 11:40 PM
  4. Replies: 58
    Last Post: 12-25-2011, 12:16 AM
  5. Replies: 13
    Last Post: 12-25-2008, 09:54 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
  •