From fbd18e2ae54bbf77e362614a461deafadd4b6bac Mon Sep 17 00:00:00 2001 From: shennetsind Date: Thu, 22 Dec 2011 17:21:23 +0000 Subject: Minstrel/Wanderer changesex bugfix, bugreport:5147 git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15214 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/char_sql/char.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/char_sql') diff --git a/src/char_sql/char.c b/src/char_sql/char.c index 49fc3f2fc..3e3f12c62 100644 --- a/src/char_sql/char.c +++ b/src/char_sql/char.c @@ -2060,7 +2060,9 @@ int parse_fromlogin(int fd) { if( class_[i] == JOB_BARD || class_[i] == JOB_DANCER || class_[i] == JOB_CLOWN || class_[i] == JOB_GYPSY || - class_[i] == JOB_BABY_BARD || class_[i] == JOB_BABY_DANCER ) + class_[i] == JOB_BABY_BARD || class_[i] == JOB_BABY_DANCER || + class_[i] == JOB_WANDERER || class_[i] == JOB_WANDERER_T || + class_[i] == JOB_MINSTREL || class_[i] == JOB_MINSTREL_T ) { // job modification if( class_[i] == JOB_BARD || class_[i] == JOB_DANCER ) @@ -2069,6 +2071,10 @@ int parse_fromlogin(int fd) class_[i] = (sex ? JOB_CLOWN : JOB_GYPSY); else if( class_[i] == JOB_BABY_BARD || class_[i] == JOB_BABY_DANCER ) class_[i] = (sex ? JOB_BABY_BARD : JOB_BABY_DANCER); + else if( class_[i] == JOB_MINSTREL || class_[i] == JOB_WANDERER ) + class_[i] = (sex ? JOB_MINSTREL : JOB_WANDERER); + else if( class_[i] == JOB_MINSTREL_T || class_[i] == JOB_WANDERER_T ) + class_[i] = (sex ? JOB_MINSTREL_T : JOB_WANDERER_T); // remove specifical skills of classes 19,20 4020,4021 and 4042,4043 if( SQL_ERROR == Sql_Query(sql_handle, "UPDATE `%s` SET `skill_point` = `skill_point` +" " (SELECT SUM(lv) FROM `%s` WHERE `char_id` = '%d' AND `id` >= '315' AND `id` <= '330' AND `lv` > '0')" -- cgit v1.2.3-70-g09d2