Add votepoints to whole account

Results 1 to 9 of 9
  1. #1
    Valued Member joost1500 is offline
    MemberRank
    Jul 2010 Join Date
    NetherlandsLocation
    123Posts

    Add votepoints to whole account

    Hi,
    I have a votepoint system but it just adds the points to the character...
    How can I add the points to the whole account (like NX)?


  2. #2
    That one pokemon thing Luxray is offline
    MemberRank
    Apr 2010 Join Date
    2,043Posts

    Re: Add votepoints to whole account

    Quote Originally Posted by joost1500 View Post
    Hi,
    I have a votepoint system but it just adds the points to the character...
    How can I add the points to the whole account (like NX)?
    Add it under NX? o_O

  3. #3
    Account Upgraded | Title Enabled! Liv3 is offline
    MemberRank
    Dec 2011 Join Date
    CanadaLocation
    817Posts

    Re: Add votepoints to whole account

    Code it for accounts then...

  4. #4
    $_SESSION['DEV']; hecari is offline
    MemberRank
    Dec 2008 Join Date
    336Posts

    Re: Add votepoints to whole account

    Quote Originally Posted by joost1500 View Post
    Hi,
    I have a votepoint system but it just adds the points to the character...
    How can I add the points to the whole account (like NX)?
    Add a field/column under the account table and name it vp or votepoint. As for the vote script, you want the user to enter the login id or the character name in order for the vote point to be credited to their account.

  5. #5
    Valued Member joost1500 is offline
    MemberRank
    Jul 2010 Join Date
    NetherlandsLocation
    123Posts

    Re: Add votepoints to whole account

    I have added everything so it should work, but there are 2 votepoint columns in my DB (1 in Characters, 1 in Accounts). So when I try to add some VP to a character, then it updates the accounts table also, and when I create a new character on that account then it has that amount, but whenever I try to add/take away some VP on that new made character it doesn't save on the other character but it does save on the VP column in the accounts table.
    It's a bit complicated but I would be appreciated if someone knows how to fix this.

  6. #6
    Account Upgraded | Title Enabled! Nmb1Gamer is offline
    MemberRank
    Apr 2009 Join Date
    Anime HeavenLocation
    383Posts

    Re: Add votepoints to whole account

    Make sure it's saving under the accounts table. It should be under saveToDB in MapleCharacter.java but it should be saving next to nxCash or whatever the variables are for you.

  7. #7
    $_SESSION['DEV']; hecari is offline
    MemberRank
    Dec 2008 Join Date
    336Posts

    Re: Add votepoints to whole account

    Quote Originally Posted by joost1500 View Post
    I have added everything so it should work, but there are 2 votepoint columns in my DB (1 in Characters, 1 in Accounts). So when I try to add some VP to a character, then it updates the accounts table also, and when I create a new character on that account then it has that amount, but whenever I try to add/take away some VP on that new made character it doesn't save on the other character but it does save on the VP column in the accounts table.
    It's a bit complicated but I would be appreciated if someone knows how to fix this.
    Off your server for you to remove the vp on the character tables and copy all the vp from the character table to the account table.

  8. #8
    Valued Member joost1500 is offline
    MemberRank
    Jul 2010 Join Date
    NetherlandsLocation
    123Posts

    Re: Add votepoints to whole account

    Fixed it, just added everything under CashShop.java thanks The Sharingan

  9. #9
    $_SESSION['DEV']; hecari is offline
    MemberRank
    Dec 2008 Join Date
    336Posts

    Re: Add votepoints to whole account

    Quote Originally Posted by joost1500 View Post
    Fixed it, just added everything under CashShop.java thanks The Sharingan
    Shouldnt you just delete the vp column in the character field, when a character received a vp, instead of crediting it to the vp column in the characters table, you get the accountid of the character and add the vp into the vp column of the account where id = accountid.



Advertisement