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

Page 1 of 12 12311 ... LastLast
Results 1 to 10 of 120
  1. #1 [PI] Auto Donation System with Items - NEW 
    Registered Member
    Join Date
    Aug 2009
    Posts
    608
    Thanks given
    1
    Thanks received
    17
    Rep Power
    6
    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).
    Reply With Quote  
     


  2. #2  
    Registered Member
    Join Date
    Sep 2009
    Posts
    388
    Thanks given
    20
    Thanks received
    21
    Rep Power
    18
    Wow very cool. I might use.
    Reply With Quote  
     

  3. #3  
    Member
    Join Date
    Jul 2011
    Posts
    18
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Thanks man. using atm.
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Aug 2009
    Posts
    608
    Thanks given
    1
    Thanks received
    17
    Rep Power
    6
    Np, thanks for the fast replies. If you need anything, PM me. Cya guys tomorrow.
    Reply With Quote  
     

  5. #5  
    Donator


    Join Date
    Mar 2011
    Posts
    2,350
    Thanks given
    1,193
    Thanks received
    824
    Rep Power
    856
    Really nice, will look into using this when I get my forums back .
    Reply With Quote  
     

  6. #6  
    Banned
    Join Date
    Sep 2010
    Posts
    609
    Thanks given
    5
    Thanks received
    15
    Rep Power
    0
    Quote Originally Posted by jakehop22 View Post
    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).
    just in case. btw love ur work
    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Aug 2009
    Posts
    608
    Thanks given
    1
    Thanks received
    17
    Rep Power
    6
    Quote Originally Posted by pk flavor View Post
    just in case. btw love ur work
    Thanks if you ever need help setting it up, pm me. Or quote this post so I can get a notification.
    Reply With Quote  
     

  8. #8  
    Well, aren't you clever!

    Concious's Avatar
    Join Date
    Feb 2008
    Posts
    1,696
    Thanks given
    27
    Thanks received
    60
    Rep Power
    195
    Shit I wish I can use this but xamp laggs like a mother fucker on my computer.
    Reply With Quote  
     

  9. #9  
    Registered Member
    Join Date
    Aug 2009
    Posts
    608
    Thanks given
    1
    Thanks received
    17
    Rep Power
    6
    Quote Originally Posted by Matisyahu View Post
    Shit I wish I can use this but xamp laggs like a mother fucker on my computer.
    Try version 1.6.6a. It's the most stable version. If not, maybe we can try to set it up on another php tool like wamp server.
    Reply With Quote  
     

  10. #10  
    Well, aren't you clever!

    Concious's Avatar
    Join Date
    Feb 2008
    Posts
    1,696
    Thanks given
    27
    Thanks received
    60
    Rep Power
    195
    Trying now.

    It's loaded but when I try to click start for apache and mysql it really reallly starts to bug up.. :\
    Reply With Quote  
     

Page 1 of 12 12311 ... 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. [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
  •