That modification has a bug wherein once you became a vip.. you are not also allowed to create characters more than 1.
This modification fix that bug.
// check the number of already existing chars in this account
if( SQL_ERROR == Sql_Query(sql_handle, "SELECT 1 FROM `%s` WHERE `account_id` = '%d'", schema_config.char_db, sd->account_id) )
Sql_ShowDebug(sql_handle);
+ if( sd->group_id != 5 && sd->group_id > 0 && sd->group_id < 99 && Sql_NumRows(sql_handle) >= 1 )
+ return -2; // character account limit exceeded
#ifdef VIP_ENABLE
if( Sql_NumRows(sql_handle) >= MAX_CHARS )
return -2; // character account limit exceeded