Issue information

Issue ID
#150
Status
Fixed
Severity
Medium
Started
Hercules Elf Bot
Sep 29, 2007 12:37
Last Post
Hercules Elf Bot
Apr 19, 2012 15:41
Confirmation
N/A

Hercules Elf Bot - Sep 29, 2007 12:37

Originally posted by [b]knc[/b]
http://www.eathena.ws/board/index.php?autocom=bugtracker&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;


Char server should read battle config and use max_hair_style and max_hair_color to compare dat[31] and dat[33] values.

Hercules Elf Bot - Jan 14, 2012 10:42

Originally posted by [b]Ind[/b]
Fixed in [rev=15449]