Issue Information
-
#008580
-
0 - None Assigned
-
Working as Intended
Issue Confirmations
-
Yes (0)No (0)
My map console show this error after most recently updated ,Is there somthing missing in sql db?
[SQL]: DB error - Unknown column 'count4' in 'field list' [Debug]: at d:\hercules\src\char\int_quest.c:79 - SELECT `quest_i d`, `state`, `time`, `count1`, `count2`, `count3`, `count4`, `count5` FROM `ques t` WHERE `char_id`=?
int_quest.c uses the #define MAX_QUEST_OBJECTIVES from src/common/mmo.h to determine how many columns to lookup, the default value is 3 (I guess you modified it to 5?)
changed status to: Needs More Info
Sorry, i change MAX_QUEST_OBJECTIVES to 5, how can make it work withou that warring?
I don't know if other modifications are necessary, from your error I'd say you need to add the other 2 columns:
ALTER TABLE `quest` ADD COLUMN `count4` MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0'; ALTER TABLE `quest` ADD COLUMN `count5` MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0';
changed status to: Working as Intended