quest_objectives

Back-to:World

Table: quest_objectives

This table provides answer for a very important question. What do I need to do in order to finish a quest?

Structure

Field

Type

Attributes

Null

Key

Default

Comment

ID

mediumint(8)

unsigned

NOPRI0


QuestID

mediumint(8)unsigned

NO


0


Type

tinyint(3)

unsignedNO


0


StorageIndex

tinyint(3)signedNO


0


ObjectID

int(10)

signedNO
0


Amount

int(10)

signedNO
0
Flagsint(10)unsignedNO
0
Flags2int(10)unsigned
NO
0
ProgressBarWeightfloat
NO
0
Descriptiontext
YES
NULL
VerifiedBuildsmallint(5)signedNO
0

Description of the fields

ID

Unique ObjectiveId

QuestID

The Quest Id from quest_template.id

Type

TypeIDObjectID
QUEST_OBJECTIVE_MONSTER0creature_template.entry
QUEST_OBJECTIVE_ITEM1itemID from Item.db2
QUEST_OBJECTIVE_GAMEOBJECT2gameobject_template.entry
QUEST_OBJECTIVE_TALKTO3creature_template.entry
QUEST_OBJECTIVE_CURRENCY4
QUEST_OBJECTIVE_LEARNSPELL5SpellId Spell.db2
QUEST_OBJECTIVE_MIN_REPUTATION6Faction
QUEST_OBJECTIVE_MAX_REPUTATION7Faction
QUEST_OBJECTIVE_MONEY8Money
QUEST_OBJECTIVE_PLAYERKILLS9
QUEST_OBJECTIVE_AREATRIGGER10
QUEST_OBJECTIVE_WINPETBATTLEAGAINSTNPC11
QUEST_OBJECTIVE_DEFEATBATTLEPET12
QUEST_OBJECTIVE_WINPVPPETBATTLES13
QUEST_OBJECTIVE_CRITERIA_TREE14
QUEST_OBJECTIVE_PROGRESS_BAR15
QUEST_OBJECTIVE_HAVE_CURRENCY16
QUEST_OBJECTIVE_OBTAIN_CURRENCY17

StorageIndex


ObjectID

See above

Amount

Displays how much players you need to kill before completing the quest.

Flags

This flag field defines more specifically the type of objective it is.

FlagNameDescription
0QUEST_OBJECTIVE_FLAG_NONENo flags
1QUEST_OBJECTIVE_FLAG_TRACKED_ON_MINIMAPClient displays large yellow blob on minimap for creature/gameobject
2QUEST_OBJECTIVE_FLAG_SEQUENCEDClient will not see the objective displayed until all previous objectives are completed
4QUEST_OBJECTIVE_FLAG_OPTIONALNot required to complete the quest
8QUEST_OBJECTIVE_FLAG_HIDDENNever displayed in quest log
16QUEST_OBJECTIVE_FLAG_HIDE_ITEM_GAINSSkip showing item objective progress
32QUEST_OBJECTIVE_FLAG_PROGRESS_COUNTS_ITEMS_IN_INVENTORYItem objective progress counts items in inventory instead of reading it from updatefields
64QUEST_OBJECTIVE_FLAG_PART_OF_PROGRESS_BARHidden objective used to calculate progress bar percent (quests are limited to a single progress bar objective)

Like all flag based fields, QuestObjectiveFlags can be added for the different types of objective.

Flags2


ProgressBarWeight


Description


VerifiedBuild