Jump to content

  •  

Bug Tracker Migration

June 3rd
Good news everyone! The staff has decided that it is time to slowly kill off this Bug Tracker. We will begin the process of slowly migrating from this Bug Tracker over to our Github Issues which can be found here: https://github.com/HerculesWS/Hercules/issues

Over the next couple of days, I will be closing off any opportunity to create new reports. However, I still will keep the opportunity to reply to existing Bug Reports. Doing this will allow us to slowly fix any bug reports we have listed here so that we can easily migrate over to our Issue Tracker.

Update - June 7th 2015: Creating new bug posts has been disabled. Please use our https://github.com/HerculesWS/Hercules/issues tracker to post bugs. Users are still able to reply to existing bug posts.

- Administration

Issue Information

  • #000150

  • 3 - Medium

  • Fixed

Issue Confirmations

  • Yes (0)No (0)
Photo

Create Character Problem

Posted by Hercules Bot on 29 September 2007 - 12:37 PM

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 :
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.

Originally posted by Ind
Fixed in [rev=15449]