Paradox V4P v0011

Alexandria

New member
Messages
341
Points
0
Location
localhost
Hello guys.

I would like to know if the Paradox V4P still works in Hercules CP.

I know that there is a free version but i need to cofirm if it is still working on Flux Hercules.

Thanks

 
just try it and if you get any error post here so we can help

 
try to take a loot at /lib/cashshop.php

replace global_reg_value with acc_reg_num_db

and report back the result...

 
the correct one is "char_reg_num_db"

 
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?

 
Last edited by a moderator:
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?
idk but it worked for that guy xd

 
^ not also working, hercules brokes all v4p addons for flux.

 
Back
Top