Issue Information
-
#000150
-
3 - Medium
-
Fixed
Issue Confirmations
-
Yes (0)No (0)
Originally posted by knc
http://www.eathena.w...ker&showbug=150
I'm using 37 custom hair styles but if I try to create new character with style > 23 I got this error: 'Please try again in 24 hours' (possibly bad message - I have 0918 xray exe)
The problem is in src/char_sql/char.c :
Char server should read battle config and use max_hair_style and max_hair_color to compare dat[31] and dat[33] values.
http://www.eathena.w...ker&showbug=150
I'm using 37 custom hair styles but if I try to create new character with style > 23 I got this error: 'Please try again in 24 hours' (possibly bad message - I have 0918 xray exe)
The problem is in src/char_sql/char.c :
CODE
//check stat error
if ((dat[24]+dat[25]+dat[26]+dat[27]+dat[28]+dat[29]!=6*5 ) || // stats
(dat[30] >= MAX_CHARS) || // slots (dat[30] can not be negativ)
(dat[33] <= 0) || (dat[33] >= 24) || // hair style
(dat[31] >= 9)) { // hair color (dat[31] can not be negativ)
.
.
.
ShowWarning("Create char failed (%d): stats error (bot cheat?!)\n", sd->account_id);
return -2;
if ((dat[24]+dat[25]+dat[26]+dat[27]+dat[28]+dat[29]!=6*5 ) || // stats
(dat[30] >= MAX_CHARS) || // slots (dat[30] can not be negativ)
(dat[33] <= 0) || (dat[33] >= 24) || // hair style
(dat[31] >= 9)) { // hair color (dat[31] can not be negativ)
.
.
.
ShowWarning("Create char failed (%d): stats error (bot cheat?!)\n", sd->account_id);
return -2;
Char server should read battle config and use max_hair_style and max_hair_color to compare dat[31] and dat[33] values.