Meister Posted November 28, 2015 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
0 Lord Ganja Posted November 28, 2015 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
0 maczekiel Posted April 18, 2020 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
Question
Meister
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!
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.