Lugia Posted June 22, 2013 Share Posted June 22, 2013 Is there any guide on how to add this to my source? Release by Ind : 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); Need this asap. Quote Link to comment Share on other sites More sharing options...
Patskie Posted June 22, 2013 Share Posted June 22, 2013 Use wiki there's a tons of guides there http://rathena.org/wiki/Diff Quote Link to comment Share on other sites More sharing options...
0 Bes Posted January 12, 2017 Share Posted January 12, 2017 Not working on latest revision Quote Link to comment Share on other sites More sharing options...
0 maczekiel Posted April 18, 2020 Share Posted April 18, 2020 On 1/12/2017 at 8:23 AM, Bes said: Not working on latest revision yeah, you have patch for this? Quote Link to comment Share on other sites More sharing options...
Anakid Posted June 22, 2013 Share Posted June 22, 2013 Just patch it to your SVN and recompile. Quote Link to comment Share on other sites More sharing options...
Lugia Posted June 22, 2013 Author Share Posted June 22, 2013 I dunno how? Kindly teach me NVM I got it. Quote Link to comment Share on other sites More sharing options...
Archetype Saber Posted June 22, 2013 Share Posted June 22, 2013 Install it manualy. Quote Link to comment Share on other sites More sharing options...
Is there any guide on how to add this to my source?
Release by Ind :
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);Need this asap.
Link to comment
Share on other sites