Lugia Posted June 22, 2013 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
Patskie Posted June 22, 2013 Posted June 22, 2013 Use wiki there's a tons of guides there http://rathena.org/wiki/Diff Quote
0 maczekiel Posted April 18, 2020 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
Lugia Posted June 22, 2013 Author Posted June 22, 2013 I dunno how? Kindly teach me NVM I got it. Quote
Question
Lugia
Is there any guide on how to add this to my source?
Release by Ind :
Need this asap.
6 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.