summaryrefslogtreecommitdiff
path: root/src/char_sql/char.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-05 17:59:28 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-06-05 17:59:28 +0000
commitf97561eb2ee94d591170e1f578c0cf736669b210 (patch)
tree53d275f73c8848a1d59d642d032a745263015a76 /src/char_sql/char.c
parentf7cf35aaad2512e7f329954946aac5e2a24cdfb7 (diff)
downloadhercules-f97561eb2ee94d591170e1f578c0cf736669b210.tar.gz
hercules-f97561eb2ee94d591170e1f578c0cf736669b210.tar.bz2
hercules-f97561eb2ee94d591170e1f578c0cf736669b210.tar.xz
hercules-f97561eb2ee94d591170e1f578c0cf736669b210.zip
- 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
Diffstat (limited to 'src/char_sql/char.c')
-rw-r--r--src/char_sql/char.c7
1 files changed, 7 insertions, 0 deletions
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)) {