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)?
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)?
Code it for accounts then...
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.
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.
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.