Thread: EverythingRS Auto Donation Installation [ANY BASE]

Page 26 of 26 FirstFirst ... 16242526
Results 251 to 257 of 257
  1. #251  
    Registered Member
    Join Date
    Jan 2016
    Posts
    122
    Thanks given
    17
    Thanks received
    2
    Rep Power
    11
    Thanks for this!
    but how i can make it to claim more than one item, like a complete set?

    Thanks again
    Reply With Quote  
     

  2. #252  
    Extreme Donator

    Genesis's Avatar
    Join Date
    Sep 2010
    Posts
    3,680
    Thanks given
    1,474
    Thanks received
    1,914
    Rep Power
    4724
    Quote Originally Posted by EXE Gamer View Post
    Thanks for this!
    but how i can make it to claim more than one item, like a complete set?

    Thanks again
    Search for

    Code:
    for (com.everythingrs.donate.Donation donate : donations) {
    In the for loop you can add custom code. So replace the current for loop with one similar to this but customized to how you want it. Note: It's important to replace / customize the for loop, and not just place this one in without deleting the old one. This is an example of how you can customize the code in order to be able to add sets or ranks.

    Code:
    for (com.everythingrs.donate.Donation donate : donations) {
    
        // Check for a custom product id
    
        switch (donate.product_id) {
    
            // Let's use item ID 4151 as an example (Abyssal Whip)
            case 4151:
                /* Add custom code */
    
                // Give the abyssal whip to the customer
                c.getItems().addItem(4151, 1);
    
                // But lets also give them a partyhat with the abyssal whip
                c.getItems().addItem(1040, 1);
    
                // Lets also send a custom message with the Abyssal Whip
           
                c.sendMessage("You received a free partyhat with the abyssal whip!");
    
            continue; // Important, do not use break; or return; as you do not want to exit the for loop or the method incase the customer has purchased multiple products.
    
            // Let's use item ID 1050 as an example (Santa Hat)
            case 1050:
                /* Add custom code */
    
                // Give the Santa Hat to the customer
                c.getItems().addItem(1050, 1);
    
                // Lets also give the customer 10m coins with this purchase
    
                c.getItems().addItem(995, 10000000);
        
                // Lets also send a custom message with the Santa Hat
    
                c.sendMessage("You have received a Santa Hat and 10,000,000 coins!");
    
            continue; // Important, do not use break; or return; as you do not want to exit the for loop or the method incase the customer has purchased multiple products.
    
    
        }
    
        c.getItems().addItem(donate.product_id, donate.product_amount);
    
        c.sendMessage("Thank you for donating!");
    }
    • [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  
     

  3. #253  
    Extreme Donator

    Genesis's Avatar
    Join Date
    Sep 2010
    Posts
    3,680
    Thanks given
    1,474
    Thanks received
    1,914
    Rep Power
    4724
    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  
     

  4. #254  
    Registered Member
    Join Date
    Jan 2016
    Posts
    122
    Thanks given
    17
    Thanks received
    2
    Rep Power
    11
    anyone give me codes for 718?
    Reply With Quote  
     

  5. #255  
    Registered Member
    Join Date
    Jun 2016
    Posts
    6
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Very nice but i'm having some problems with the store. I've already posted 2 reports on the website. About 2 different things. If you've seen them you dont need to respond to this comment
    Reply With Quote  
     

  6. #256  
    Extreme Donator

    Genesis's Avatar
    Join Date
    Sep 2010
    Posts
    3,680
    Thanks given
    1,474
    Thanks received
    1,914
    Rep Power
    4724
    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. #257  
    Extreme Donator

    Genesis's Avatar
    Join Date
    Sep 2010
    Posts
    3,680
    Thanks given
    1,474
    Thanks received
    1,914
    Rep Power
    4724
    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 26 of 26 FirstFirst ... 16242526

Thread Information
Users Browsing this Thread

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

Similar Threads

  1. EverythingRS Hiscores Installation [ANY BASE]
    By Genesis in forum Tutorials
    Replies: 147
    Last Post: 12-04-2018, 06:25 PM
  2. EverythingRS Voting Installation [ANY BASE]
    By Genesis in forum Tutorials
    Replies: 241
    Last Post: 12-04-2018, 06:24 PM
  3. MotivoteRS Installation Tutorial [ANY BASE]
    By funkE in forum Tutorials
    Replies: 146
    Last Post: 08-18-2018, 07:29 AM
  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
  •