Jump to content

Profile

Members
  • Posts

    77
  • Joined

  • Last visited

Community Answers

  1. Profile's post in MAX CHAR - 20130807 was marked as the answer   
    After countless hours of fighting to find a solution, I have found the problem!
    It was in src/config/core.h
    While defining the VIP system, it altered the these configs. Making the default amount of CHARS per account = 3.
    #define VIP_ENABLE /// Enable VIP script changes? (requires VIP_ENABLE) /// The primary effects of this are restrictions on non-VIP players, such as requiring /// a Reset Stone to change into third classes, paying more for equipment upgrades, and /// so forth. Note that the changes are based on euRO, not iRO. #define VIP_SCRIPT 0 #ifdef VIP_ENABLE #define MIN_STORAGE 300 // Default number of storage slots. #define MIN_CHARS 3 // Default number of characters per account. #define MAX_CHAR_VIP 6 // This must be less than MAX_CHARS #define MAX_CHAR_BILLING 0 // This must be less than MAX_CHARS #endif As I have set the MAX CHARS on src/common/mmo.h to 12. I set the VIP system config like this and it is now working (Every account has 12 char slots).
    #define VIP_ENABLE /// Enable VIP script changes? (requires VIP_ENABLE) /// The primary effects of this are restrictions on non-VIP players, such as requiring /// a Reset Stone to change into third classes, paying more for equipment upgrades, and /// so forth. Note that the changes are based on euRO, not iRO. #define VIP_SCRIPT 0 #ifdef VIP_ENABLE #define MIN_STORAGE 300 // Default number of storage slots. #define MIN_CHARS 12 // Default number of characters per account. #define MAX_CHAR_VIP 0 // This must be less than MAX_CHARS #define MAX_CHAR_BILLING 0 // This must be less than MAX_CHARS #endif Is this intentional? Is it supposed to work like this?
    The VIP system is messing with other things.
     
  2. Profile's post in Feefty vote for points addon (FLUX) was marked as the answer   
    Isnt it possible to add something to the code, so that if the rows are empty it will create them?
    Wouldn't that work?
    UPDATE: I changed the code the to following and is now working fine!
    case "vote": // update votepoints $sql = "UPDATE $server->loginDatabase.cp_v4p_voters SET votepoints = votepoints + ? WHERE account_id = ?"; $sth = $server->connection->getStatement($sql); $sth->execute(array((int) $res->votepoints, $accoun if ( ! $sth->rowCount()) { $sql = "INSERT INTO $server->loginDatabase.cp_v4p_voters VALUES (?, ?)"; $sth = $server->connection->getStatement($sql); $bind = array($account_id, $res->votepoints); $sth->execute( if ( ! $sth->rowCount()) $errorMessage = sprintf(Flux::message("UnableToVote"), 3); Also, created a new table called cp_v4p_voters
  3. Profile's post in Adding custom MISC items was marked as the answer   
    Didn't know that MISC items didn't need .spr
    The issue has been solved, I simply made a typo in the ID number of the item.
  4. Profile's post in [SOLVED] Special characters issue was marked as the answer   
    SOLVED!
    I edited using notepad++ using the wrong encode.
    To fix, I changed the Format code to ANSI.
×
×
  • Create New...