From f97561eb2ee94d591170e1f578c0cf736669b210 Mon Sep 17 00:00:00 2001 From: skotlex Date: Mon, 5 Jun 2006 17:59:28 +0000 Subject: - Fixed skill_unitsetting using layout->count for the for instead of group->count - Added SC_INCDEXRATE/SC_INCAGIRATE. NPC_POWERUP/NPC_AGIUP now correctly increase dex/agi by 40% per level. - Fixed char-sql server not deleting character variables git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6984 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/char_sql/char.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/char_sql') diff --git a/src/char_sql/char.c b/src/char_sql/char.c index 66846fa7d..507704523 100644 --- a/src/char_sql/char.c +++ b/src/char_sql/char.c @@ -1585,6 +1585,13 @@ int delete_char_sql(int char_id, int partner_id) ShowDebug("at %s:%d - %s\n", __FILE__,__LINE__,tmp_sql); } + /* delete character registry */ + sprintf(tmp_sql,"DELETE FROM `%s` WHERE `type`=3 AND `char_id`='%d'",reg_db, char_id); + if(mysql_query(&mysql_handle, tmp_sql)) { + ShowSQL("DB error - %s\n",mysql_error(&mysql_handle)); + ShowDebug("at %s:%d - %s\n", __FILE__,__LINE__,tmp_sql); + } + /* delete skills */ sprintf(tmp_sql,"DELETE FROM `%s` WHERE `char_id`='%d'",skill_db, char_id); if(mysql_query(&mysql_handle, tmp_sql)) { -- cgit v1.2.3-70-g09d2