Thread: [PI] Need Help With Auto Donation Points System [PI]

Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1 [PI] Need Help With Auto Donation Points System [PI] 
    Registered Member
    Join Date
    Jun 2013
    Posts
    14
    Thanks given
    0
    Thanks received
    1
    Rep Power
    12
    Hey guys I have searched and have not found the thread that I am looking for directly for a PI server. So if you could please link me to a thread that has a full guide on how to add auto donation points system that would be great. I just want to add the system in and be able to buy items with points, 1$ = 10 points. I can add the items myself I just need a thread to get started.
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Jun 2013
    Posts
    14
    Thanks given
    0
    Thanks received
    1
    Rep Power
    12
    Bump.
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Dec 2011
    Posts
    454
    Thanks given
    17
    Thanks received
    37
    Rep Power
    61
    Use this: http://www.rune-server.org/runescape...on-system.html
    Replace the items with points.
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Jun 2013
    Posts
    14
    Thanks given
    0
    Thanks received
    1
    Rep Power
    12
    How do you do that? Like I know what you said and I have seen the thread I just don't know how to change it to points.
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Dec 2011
    Posts
    454
    Thanks given
    17
    Thanks received
    37
    Rep Power
    61
    Quote Originally Posted by TurmoilPvP View Post
    How do you do that? Like I know what you said and I have seen the thread I just don't know how to change it to points.
    Player.java you need to declare an integer for it like: public int donorPoints;

    Playersave.java Make donorPoints save to peoples character files.

    Martin provided you with this code server sided:
    Code:
    						if(prod == 1 && price == 3){
    							c.getItems().addItem(4151,1);
    							b = true;
    						} else if(prod == 2 && price == 6){
    							c.getItems().addItem(4151,1);
    							b = true;
    						} else if(prod == 3 && price == 9){
    							c.getItems().addItem(4151,1);
    							b = true;
    						}
    Change that to something like this:
    Code:
    						if(prod == 1 && price == 3){
    							c.donorPoints += 10;
    							b = true;
    						} else if(prod == 2 && price == 6){
    							c.donorPoints += 30;
    							b = true;
    						} else if(prod == 3 && price == 9){
    							c.donorPoints += 20;
    							b = true;
    						}
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Jun 2013
    Posts
    14
    Thanks given
    0
    Thanks received
    1
    Rep Power
    12
    So once I do that I am done right? I will need to change stuff web sided to though right?
    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Dec 2011
    Posts
    454
    Thanks given
    17
    Thanks received
    37
    Rep Power
    61
    Not really, website sided you would just the text to say something like "10 Donor Points - 1$", and make sure you have the correct price and product id. Server-sided you would need to check that product id and price to tell how many points to give to that person.

    Also don't forget to make a point shop for donor items using c.donorPoints.
    Reply With Quote  
     

  8. #8  
    Registered Member
    Join Date
    Jun 2013
    Posts
    14
    Thanks given
    0
    Thanks received
    1
    Rep Power
    12
    Yeah see ima need a tutorial. im a new coder...
    Reply With Quote  
     

  9. #9  
    Banned

    Join Date
    Nov 2010
    Age
    14
    Posts
    2,639
    Thanks given
    158
    Thanks received
    280
    Rep Power
    0
    Reply With Quote  
     

  10. #10  
    OoO Donor <3
    Rockstar Jax's Avatar
    Join Date
    Mar 2011
    Age
    27
    Posts
    608
    Thanks given
    77
    Thanks received
    78
    Rep Power
    21
    Add my skype? Jax.Edward.Fogle

    <-- amateur sig skills dont hate
    Reply With Quote  
     

Page 1 of 2 12 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. Need help with Auto Donation
    By IceBlitzRSPS in forum Help
    Replies: 0
    Last Post: 05-10-2013, 08:17 PM
  2. [pi] Need help with a Misc.random Coins [pi]
    By lastdivine in forum Help
    Replies: 5
    Last Post: 12-26-2012, 07:23 PM
  3. Replies: 4
    Last Post: 08-12-2011, 10:54 AM
  4. I need help with my donator rank;
    By Austin_ in forum Help
    Replies: 2
    Last Post: 03-15-2009, 04:05 PM
  5. Need help with auto restarter for my VPS
    By Decimation in forum Help
    Replies: 1
    Last Post: 02-11-2009, 06:43 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •