In Cashpoints.php
replace this:
// Initialize cash points record if it doesn't already exist. if (!$this->cashRecords[$accountID]) { $sql = "INSERT INTO {$this->server->charMapDatabase}.global_reg_value "; $sql .= "(`str`, value, type, account_id, char_id) "; $sql .= "VALUES (?, 0, 2, ?, 0)"; $sth = $this->server->connection->getStatement($sql); $sth->execute(array($this->pointsType, $accountID)); }
with this:
// Initialize cash points record if it doesn't already exist. if (!$this->cashRecords[$accountID]) { $sql = "INSERT INTO {$this->server->charMapDatabase}.acc_reg_num_db "; $sql .= "(`key`, account_id, value ) "; $sql .= "VALUES (?, ?, 0)"; $sth = $this->server->connection->getStatement($sql); $sth->execute(array($this->pointsType, $accountID)); }
@edit
don't forget to replace
global_reg_value with
acc_reg_num_db.
@
evilpuncker
Why
char_reg_num_db?
#CASHPOINTS and #KAFRAPOINTS are saved in
acc_reg_num_db. right?