Meister Posted November 28, 2015 Share Posted November 28, 2015 Hi All, As the title says, requesting the src edit that disables creation of new character if GM account has already one character. Before, malufett posted it but can't be downloaded in the downloaded section. (Prohibited) the one created by Ind. Hope someone could share it. Thanks! Quote Link to comment Share on other sites More sharing options...
0 Lord Ganja Posted November 28, 2015 Share Posted November 28, 2015 Just saw this somewhere before. Maybe you can try it. Index: src/char/char.c =================================================================== --- src/char/char.c (revision 15859) +++ src/char/char.c (working copy) @@ -1366,6 +1366,13 @@ return -2; // character account limit exceeded } + if( sd->group_id > 0 && sd->group_id < 99 ) { + if( SQL_ERROR == Sql_Query(sql_handle, "SELECT 1 FROM `%s` WHERE `account_id` = '%d'", char_db, sd->account_id) ) + Sql_ShowDebug(sql_handle); + if( Sql_NumRows(sql_handle) >= 1 ) + return -2; // character account limit exceeded + } + // check char slot if( SQL_ERROR == Sql_Query(sql_handle, "SELECT 1 FROM `%s` WHERE `account_id` = '%d' AND `char_num` = '%d' LIMIT 1", char_db, sd->account_id, slot) ) Sql_ShowDebug(sql_handle); Quote Link to comment Share on other sites More sharing options...
0 maczekiel Posted April 18, 2020 Share Posted April 18, 2020 not working on new svn? this is not working anymore? OneCharPerGMAccount.patch anyone has a working patch for new SVN? Quote Link to comment Share on other sites More sharing options...
Hi All,
As the title says, requesting the src edit that disables creation of new character if GM account has already one character.
Before, malufett posted it but can't be downloaded in the downloaded section. (Prohibited) the one created by Ind.
Hope someone could share it.
Thanks!
Link to comment
Share on other sites