Thread: [PI] Auto Donation System with Items - NEW

Page 12 of 12 FirstFirst ... 2101112
Results 111 to 120 of 120
  1. #111  
    Banned
    Join Date
    Aug 2014
    Posts
    518
    Thanks given
    88
    Thanks received
    21
    Rep Power
    0
    Quote Originally Posted by jakehop22 View Post
    EDIT to the EDIT 7/9/11 (MOST RECENT): PLEASE RE-RE-DOWNLOAD SQL.JAVA, I FIXED A SIMPLE ERROR.
    EDIT 7/9/11: PLEASE RE-DOWNLOAD SQL.JAVA, I MADE AN UPDATE THAT FIXED THE ERRORS.

    Hey guys, just recently came back to Rune-Server and I saw how badly my other tutorial was: http://www.rune-server.org/runescape...on-system.html.
    Well it wasn't that bad, the links were dead and I had a different system back then. I had another system that is far more effecient and I've decided to share it today with you.

    Tested Sources - SoulSplit
    Difficulty - 3/10
    Base - PI
    Revision - 317
    Programs needed - Xampp, install the service MySql and Apache in Xampp
    Files Modified - Client.java, sql.java

    Description: This is a MySql script that will check to see if the user is has donated and purchased an item on the website. Then send it will check with the website to make sure the player actually purchased the item.

    ~ Starting ~
    First Download Xampp, Sql.java, Paypal.zip, and Sql Table file.
    Next install it and install the services: MySql and Apache.
    Now go to into the server folder and go to src > server > util > and put the sql.java file inside there. Please change the settings that correspond to yours. [Defualt is root for username and nothing for the pass]
    Next go to src > server > model > players > Client.java and add this at the top:
    Code:
    import server.util.SQL;
    Now search for the logout method and below:
    PlayerSave.saveGame(this);
    Add this:
    Code:
    			                SQL.createConnection();
    				SQL.checkStatus(this);
    				SQL.destroyConnection();
    Now open Xampp and start Apache then MySql.
    Then click Admin for MySql. Now login and create a Database called "status"
    Then click import and import the sql table.sql file.

    Now you're server should be set up correctly. Any errors or bugs/glitches please tell me.

    ~~~~~~~~~~~~~~~~~~~~~~ IPN, PART 2 ~~~~~~~~~~~~~~~~~~~~~~

    Now extract paypal.zip to your desktop.
    Open up paypal.htm, and read the thing next to the <!-- ending with -->
    You can change the prices to anything you want. If you want to add another item, look under:
    <option value="20.00">20 USD</option> <!-- USD Amount for Item 3 -->
    And add:
    <option value="10.00">10 USD</option> <!-- USD Amount for Item 4 -->
    But make sure if you add another option you open up ipn.php in the ipn folder.
    Now look for:
    $paylist = array("5.00" => itemId1, "10.00" => itemId2, "20.00" => itemId3);

    Basically, when you pay using the first option (which is $5 USD), you will recieve the item id that is for itemId1. So lets say a dragon longsword was id 5877, for itemId1, you would replace that with 5877. Now when someone purchases using the first option, they would be paying $5 for a dragon longsword.

    If you want to add another option (4th option or more), replace this:
    $paylist = array("5.00" => itemId1, "10.00" => itemId2, "20.00" => itemId3);
    With:
    $paylist = array("5.00" => itemId1, "10.00" => itemId2, "20.00" => itemId3, "10.00" => itemId4);
    Also make sure you edit ipn.php and paypal.htm and replace: [email protected], with your email.
    And make sure that you edit your MySql details (username, password, table name, port).

    If you need anything, quote me, PM me, or add my msn and post a comment when you add me.
    Msn: [email protected]

    ~~~~~~~~~~~~~ Getting Paypal Setup with IPN Functions ~~~~~~~~~~~~~

    Follow these pictures:



    Make sure the IPN link is in this format: http://yoursite.com/paypal/ipn/ipn.php
    It must have ipn.php at the end of the link.

    If you think I'm missing something, I haven't explained enough detail in a specific section, or you need help, please tell me.
    Thanks and nominate this post if you think it should be stickied (if Rune-Server allows this).
    Will you do it for me ? ill pay for it if you would like add me to skype pk.paprd (owner of pandemia)
    Reply With Quote  
     

  2. #112  
    Registered Member
    Syles's Avatar
    Join Date
    Oct 2013
    Posts
    404
    Thanks given
    51
    Thanks received
    63
    Rep Power
    180
    Quote Originally Posted by jakehop22 View Post
    EDIT to the EDIT 7/9/11 (MOST RECENT): PLEASE RE-RE-DOWNLOAD SQL.JAVA, I FIXED A SIMPLE ERROR.
    EDIT 7/9/11: PLEASE RE-DOWNLOAD SQL.JAVA, I MADE AN UPDATE THAT FIXED THE ERRORS.

    Hey guys, just recently came back to Rune-Server and I saw how badly my other tutorial was: http://www.rune-server.org/runescape...on-system.html.
    Well it wasn't that bad, the links were dead and I had a different system back then. I had another system that is far more effecient and I've decided to share it today with you.

    Tested Sources - SoulSplit
    Difficulty - 3/10
    Base - PI
    Revision - 317
    Programs needed - Xampp, install the service MySql and Apache in Xampp
    Files Modified - Client.java, sql.java

    Description: This is a MySql script that will check to see if the user is has donated and purchased an item on the website. Then send it will check with the website to make sure the player actually purchased the item.

    ~ Starting ~
    First Download Xampp, Sql.java, Paypal.zip, and Sql Table file.
    Next install it and install the services: MySql and Apache.
    Now go to into the server folder and go to src > server > util > and put the sql.java file inside there. Please change the settings that correspond to yours. [Defualt is root for username and nothing for the pass]
    Next go to src > server > model > players > Client.java and add this at the top:
    Code:
    import server.util.SQL;
    Now search for the logout method and below:
    PlayerSave.saveGame(this);
    Add this:
    Code:
    			                SQL.createConnection();
    				SQL.checkStatus(this);
    				SQL.destroyConnection();
    Now open Xampp and start Apache then MySql.
    Then click Admin for MySql. Now login and create a Database called "status"
    Then click import and import the sql table.sql file.

    Now you're server should be set up correctly. Any errors or bugs/glitches please tell me.

    ~~~~~~~~~~~~~~~~~~~~~~ IPN, PART 2 ~~~~~~~~~~~~~~~~~~~~~~

    Now extract paypal.zip to your desktop.
    Open up paypal.htm, and read the thing next to the <!-- ending with -->
    You can change the prices to anything you want. If you want to add another item, look under:
    <option value="20.00">20 USD</option> <!-- USD Amount for Item 3 -->
    And add:
    <option value="10.00">10 USD</option> <!-- USD Amount for Item 4 -->
    But make sure if you add another option you open up ipn.php in the ipn folder.
    Now look for:
    $paylist = array("5.00" => itemId1, "10.00" => itemId2, "20.00" => itemId3);

    Basically, when you pay using the first option (which is $5 USD), you will recieve the item id that is for itemId1. So lets say a dragon longsword was id 5877, for itemId1, you would replace that with 5877. Now when someone purchases using the first option, they would be paying $5 for a dragon longsword.

    If you want to add another option (4th option or more), replace this:
    $paylist = array("5.00" => itemId1, "10.00" => itemId2, "20.00" => itemId3);
    With:
    $paylist = array("5.00" => itemId1, "10.00" => itemId2, "20.00" => itemId3, "10.00" => itemId4);
    Also make sure you edit ipn.php and paypal.htm and replace: [email protected], with your email.
    And make sure that you edit your MySql details (username, password, table name, port).

    If you need anything, quote me, PM me, or add my msn and post a comment when you add me.
    Msn: [email protected]

    ~~~~~~~~~~~~~ Getting Paypal Setup with IPN Functions ~~~~~~~~~~~~~

    Follow these pictures:



    Make sure the IPN link is in this format: http://yoursite.com/paypal/ipn/ipn.php
    It must have ipn.php at the end of the link.

    If you think I'm missing something, I haven't explained enough detail in a specific section, or you need help, please tell me.
    Thanks and nominate this post if you think it should be stickied (if Rune-Server allows this).
    inb4gone
    Reply With Quote  
     

  3. #113  
    Banned
    Join Date
    Aug 2014
    Posts
    518
    Thanks given
    88
    Thanks received
    21
    Rep Power
    0
    Follow these pictures:



    Make sure the IPN link is in this format: http://yoursite.com/paypal/ipn/ipn.php
    It must have ipn.php at the end of the link.

    If you think I'm missing something, I haven't explained enough detail in a specific section, or you need help, please tell me.
    Thanks and nominate this post if you think it should be stickied (if Rune-Server allows this).
    Very cool but the pictures are dead. Thanks for this and if you could or someone else finish the last part with the pictures will be nice
    Reply With Quote  
     

  4. #114  
    Coding coding coding...

    Ivo's Avatar
    Join Date
    Mar 2008
    Age
    33
    Posts
    1,425
    Thanks given
    30
    Thanks received
    147
    Rep Power
    2017
    Theres few things wrong with thease posts...

    This is nasty ass gravedig.
    Script is horribly outdated and wont work no matter how many times you try.
    Paypal IPN protocol has changed.
    Links doesnt work & nothing saves to database even if you would get this script somehow.

    $10 Updated donator script
    Reply With Quote  
     

  5. #115  
    Registered Member
    BigShot's Avatar
    Join Date
    Dec 2010
    Age
    30
    Posts
    302
    Thanks given
    129
    Thanks received
    216
    Rep Power
    239
    Quote Originally Posted by Ivo View Post
    Theres few things wrong with thease posts...

    This is nasty ass gravedig.
    Script is horribly outdated and wont work no matter how many times you try.
    Paypal IPN protocol has changed.
    Links doesnt work & nothing saves to database even if you would get this script somehow.

    $10 Updated donator script
    Don't buy this guys' donation script. It's just Martin's FREE Auto Donation System. Not to mention the site Ivo linked looks like a steaming pile of cow dung.
    Reply With Quote  
     

  6. #116  
    Coding coding coding...

    Ivo's Avatar
    Join Date
    Mar 2008
    Age
    33
    Posts
    1,425
    Thanks given
    30
    Thanks received
    147
    Rep Power
    2017
    Quote Originally Posted by BigShot View Post
    Don't buy this guys' donation script. It's just Martin's FREE Auto Donation System. Not to mention the site Ivo linked looks like a steaming pile of cow dung.
    What i sell is service to set it up.
    Big words from randy. Show me what you have....
    Reply With Quote  
     

  7. #117  
    Registered Member
    BigShot's Avatar
    Join Date
    Dec 2010
    Age
    30
    Posts
    302
    Thanks given
    129
    Thanks received
    216
    Rep Power
    239
    Quote Originally Posted by Ivo View Post
    What i sell is service to set it up.
    Big words from randy. Show me what you have....
    The whole "who's better" game is really immature and I'd much rather not get into it, but here's the store I put together.
    Reply With Quote  
     

  8. #118  
    Artix Owner
    Replenish's Avatar
    Join Date
    Jun 2015
    Posts
    162
    Thanks given
    9
    Thanks received
    25
    Rep Power
    43
    Quote Originally Posted by BigShot View Post
    The whole "who's better" game is really immature and I'd much rather not get into it, but here's the store I put together.
    Mind helping me with one? Or how much do you charge?
    Reply With Quote  
     

  9. #119  
    Registered Member
    Join Date
    Sep 2016
    Posts
    10
    Thanks given
    1
    Thanks received
    3
    Rep Power
    11
    Quote Originally Posted by Replenish View Post
    Mind helping me with one? Or how much do you charge?
    This was posted a year ago, perhaps make a thread about your issue in the help section?
    Reply With Quote  
     

  10. #120  
    Registered Member
    Join Date
    Jul 2013
    Posts
    356
    Thanks given
    44
    Thanks received
    17
    Rep Power
    12
    Awesome, thanks for this.

    removed
    #ProjectTrillex
    Reply With Quote  
     

Page 12 of 12 FirstFirst ... 2101112

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. [PI] Auto Donation System
    By jakehop22 in forum Tutorials
    Replies: 107
    Last Post: 07-11-2014, 05:39 AM
  2. Replies: 7
    Last Post: 06-17-2013, 11:23 PM
  3. Replies: 5
    Last Post: 07-13-2011, 08:15 PM
  4. [Pi] Auto Donation SYSTEM
    By Boxxy in forum Requests
    Replies: 2
    Last Post: 01-05-2011, 11:28 PM
  5. [PI] $25 Auto Donation System
    By Harambe_ in forum Requests
    Replies: 4
    Last Post: 11-23-2010, 01:24 AM
Tags for this Thread

View Tag Cloud

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •