
Originally Posted by
Cygnus
You should just back-trace something you already have in your accounts table. For instance, If you have a column named 'PaypalNX' in your accounts table, if you wanted to find out how you would add information of additional columns for your accounts table, You could search for PaypalNX in your IDE, and it would tell exactly where the data is read from.
It's weird because my column is nxCredit, but if I search that in my IDE, the only instance of it is in CashShop,java... but if i put a value in nxCredit, it actually shows up in-game.
Edit: did I just answer my own question? lol
Code:
ps = con.prepareStatement("SELECT `nxCredit`, `maplePoint`, `nxPrepaid` FROM `accounts` WHERE `id` = ?"); ps.setInt(1, accountId);
rs = ps.executeQuery();
if (rs.next()) {
this.nxCredit = rs.getInt("nxCredit");
this.maplePoint = rs.getInt("maplePoint");
this.nxPrepaid = rs.getInt("nxPrepaid");
}
- - - Updated - - -
http://pastebin.com/iJjq8vRY
Since it loads from the cashshop.java, where would I put the stuff? Also, would i need to take it all out of maplecharacter, too?