Table: quest_template
...
Field | Type | Null | Key | Default | Extra | Comment | |
---|---|---|---|---|---|---|---|
int(10) unsigned | NO | PRI | 0 | ||||
tinyint(3) unsigned | NO | 2 | |||||
int(11) | NO | -1 | |||||
int(10) unsigned | NO | 0 | |||||
int(11) | NO | 0 | |||||
smallint(6) | NO | 0 | |||||
smallint(5) unsigned | NO | 0 | |||||
tinyint(3) unsigned | NO | 0 | |||||
int(10) unsigned | NO | 0 | |||||
int(10) unsigned | NO | 0 | |||||
float | NO | 1 | |||||
int(11) | NO | 0 | |||||
int(10) unsigned | NO | 0 | |||||
float | NO | 1 | |||||
int(10) unsigned | NO | 0 | |||||
int(10) unsigned | NO | 0 | |||||
int(10) unsigned | NO | 0 | |||||
int(10) unsigned | NO | 0 | |||||
int(10) unsigned | NO | 0 | |||||
int(10) unsigned | NO | 0 | |||||
int(10) unsigned | NO | 0 | |||||
float | NO | 1 | |||||
int(10) unsigned | NO | 0 | |||||
int(10) unsigned | NO | 0 | |||||
int(10) unsigned | NO | 0 | |||||
int(10) unsigned | NO | 0 | |||||
int(10) unsigned | NO | 0 | |||||
int(10) unsigned | NO | 0 | |||||
int(10) unsigned | NO | 0 | |||||
int(10) unsigned | NO | 0 | |||||
int(10) unsigned | NO | 0 | |||||
int(10) unsigned | NO | 0 | |||||
int(10) unsigned | NO | 0 | |||||
float | NO | 0 | |||||
float | NO | 0 | |||||
int(11) | NO | 0 | |||||
int(10) unsigned | NO | 0 | |||||
int(10) unsigned | NO | 0 | |||||
int(10) unsigned | NO | 0 | |||||
int(10) unsigned | NO | 0 | |||||
int(10) unsigned | NO | 0 | |||||
int(10) unsigned | NO | 0 | |||||
int(10) unsigned | NO | 0 | |||||
int(11) | NO | 0 | |||||
int(1174218806 | int(11) | NO | 0 | ||||
int(10) unsigned | NO | 0 | |||||
int(10) unsigned | NO | 0 | |||||
int(10) unsigned | NO | 0 | |||||
int(10) unsigned | NO | 0 | |||||
int(10) unsigned | NO | 0 | |||||
int(10) unsigned | NO | 0 | |||||
int(10) unsigned | NO | 0 | |||||
int(10) unsigned | NO | 0 | |||||
int(11) | NO | -1 | |||||
int(10) unsigned | NO | 0 | |||||
text | YES | (NULL) | |||||
text | YES | (NULL) | |||||
text | YES | (NULL) | |||||
text | YES | (NULL) | |||||
text | YES | (NULL) | |||||
text | YES | (NULL) | |||||
text | YES | (NULL) | |||||
text | YES | (NULL) | |||||
text | YES | (NULL) | |||||
smallint(5) | YES | 0 |
Description of the fields
...
if value < 0 then (-value) is quest sort id: (in general profession or class quests. Also see RequiredSkillPoints 74218806 ) Value is ID from QuestSort.dbc
...
Mist of Pandaria and all Expansions after:
33555378 (33554432 + 256 + 128 + 32 + 16 + 2 + 512) = Horde
18875469 (16777216 + 2097152 + 1024 + 64 + 8 + 4 + 1) = Alliance
RequiredSkillId
Skill required to know to accept the quest. See SkillIne.dbc
0 means no skill is required.
...
Reputation value that the player must achieve with the faction in RepObjectiveFaction 74218806 as part of the quest objectives.
...
If value < 0: Contains the parent quest id, that must be active before this quest can be started.
See the examples section for examples.
NextQuestId
If value > 0: Contains the next quest id, if PrevQuestId of that quest is not sufficient.
If value < 0: Contains the sub quest id, if PrevQuestId of that quest is not sufficient. If quest have many alternative next quests (class specific quests lead from single not class specific quest) field PrevQuestId in next quests can used for setting this dependence.
See the examples section for examples.
ExclusiveGroup
...
Note: All quests that use an ExclusiveGroup must also have entries in pool_template and pool_quest in order for the core to choose one randomly. See the examples section for examples.
RewardNextQuest
...
The quest entry from a creature or gameobject that ends a quest and starts a new one. The result is, that if you end the quest, the new quest instantly appears from the quest giver.
See the examples section for examples.
RewardXPDifficulty
According to the Level 74218806, the basic experience with index RewardXPDifficulty is taken from QuestXP.dbc.
RewardMoney
Money earned by completing the quest (if value > 0) or money requirement to complete the quest (if value < 0) .
RewardMoneyMaxLevel
The money a character at level 80 would get when they complete this quest. This field also controls the XP given as the XP is calculated from the value in this field by the following formula. If the quest is repeatableThis field also controls the XP given as the XP is calculated from the value in this field by the following formula. If the quest is repeatable, XP will be given only once. The total XP that a character will receive is also affected by the level difference between the character's level and the quest's level.
The formula for calculating XP from the value in this field:
QuestLevel >= 65: XP = RewMoneyMaxLevel / 6.0
QuestLevel h1. 64: XP = RewMoneyMaxLevel / 4.8
QuestLevel 63: XP = RewMoneyMaxLevel / 3.6
QuestLevel h1. 62: XP = RewMoneyMaxLevel / 2.4
QuestLevel 61: XP = RewMoneyMaxLevel / 1.2
QuestLevel <= 60: XP = RewMoneyMaxLevel / 0.6
RewardSpell
...
RewardMoney
Money earned by completing the quest (if value > 0) or money requirement to complete the quest (if value < 0) .
RewardBonusMoney
The money a character at level 80 would get when they complete this quest.
RewardSpell
Spell that is shown to be casted on quest completion in the quest log. Note that this spell will NOT be casted if 74218806 is non-zero. The spell in the other field will be casted instead, in which case the spell here only serves as the visual in the quest log.
...
Spell that will always be casted at player when completing the quest. This can be learn spell and player learned some spell in result, or buff spell, for example. If this field is non-zero then this spell will ALWAYS be casted and the spell in RewardSpell 74218806 will not.
NOTE: This field comes straight from the WDB and should not be changed.
...
How many seconds to wait until the mail is sent to the character that turned in a quest rewarding items from a loot template defined in RewardMailTemplateId 74218806
RewardHonor
Number of honorable kill honor rewarded for completing this quest.
...
RewardHonorMultiplier
Multiplies RewardHonor 74218806, so if value is 2, it will give double.
WARNING: If this field is 1 and RewardHonor 74218806 is 0, the quest will reward default honor kill value (124 honor at level 80)
...
Flag | Name | Comments |
---|---|---|
0 | QUEST_FLAGS_NONE | No flags, so no groups assigned to this quest. |
1 | QUEST_FLAGS_STAY_ALIVE | If the player dies, the quest is failed. |
2 | QUEST_FLAGS_PARTY_ACCEPT | Escort quests or any other event-driven quests. If player in party, all players that can accept this quest will receive confirmation box to accept quest. |
4 | QUEST_FLAGS_EXPLORATION | Involves the activation of an areatrigger. |
8 | QUEST_FLAGS_SHARABLE | Allows the quest to be shared with other players. |
16 | QUEST_FLAGS_HAS_NONE2Unknown at this time and not used.CONDITION | Not used currently |
32 | QUEST_FLAGS_HIDE_REWARD_EPICEpic class quests (hunter) (??)POI | Not used currently: Unsure of content |
64 | QUEST_FLAGS_RAIDRaid | or similiar player group needed for quest.Can be completed while in raid |
128 | QUEST_FLAGS_TBCAdded with or after TBC. | Not used currently: Available if TBC expansion enabled only |
256 | QUEST_FLAGS_DELIVER_MOREQuest needs extra non-objective items dropped (eg. RequiredSourceItemId fields) NO_MONEY_FROM_XP | Not used currently: Experience is not converted to gold at max level |
512 | QUEST_FLAGS_HIDDEN_REWARDS | Item and monetary rewards are hidden in the initial quest details page and in the quest log but will appear once ready to be rewarded. |
1024 | QUEST_FLAGS__AUTO_REWARDEDTRACKING | These quests are automatically rewarded on quest complete and they will never appear in quest log client side. |
2048 | QUEST_FLAGS_TBCDEPRECATE_RACESBlood elf/draenei starting zone quests.REPUTATION | Not used currently |
4096 | QUEST_FLAGS_DAILY | Daily repeatable quests (only flag that the core applies specific behavior for) |
8192 | QUEST_FLAGS_FLAGS_REPEATABLEUsed on repeatable questsPVP | Having this quest in log forces PvP flag |
16384 | QUEST_FLAGS_UNAVAILABLE | Used on quests that are not generically available |
32768 | QUEST_FLAGS_WEEKLY | Weekly repeatable quests (only flag that the core applies specific behavior for) |
65536 | QUEST_FLAGS_AUTOCOMPLETE | Auto complete |
131072 | QUEST_FLAGS_SPECIALDISPLAY_ITEM | has something to do with RequiredItemId and SourceItemId |
262144 | QUEST_FLAGS_OBJ_TEXT | Use Objective text as Complete text |
524288 | QUEST_FLAGS_AUTO_ACCEPT | Quests in starting areas |
1048576 | QUEST_FLAGS_AUTO_SUBMIT | Quests with this flag player submit automatically by special button in player GUI |
2097152 | QUEST_FLAGS_AUTO_TAKE | Automatically suggestion of accepting quest. Not from npc. |
_IN_TRACKER | Displays usable item in quest tracker | |
262144 | QUEST_FLAGS_OBJ_TEXT | Use Objective text as Complete text |
524288 | QUEST_FLAGS_AUTO_ACCEPT | The client recognizes this flag as auto-accept. However, NONE of the current quests (3.3.5a) have this flag. Maybe blizz used to use it, or will use it in the future. |
1048576 | QUEST_FLAGS_PLAYER_CAST_ON_ACCEPT | Quests with this flag player submit automatically by special button in player GUI |
2097152 | QUEST_FLAGS_PLAYER_CAST_ON_COMPLETE | Automatically suggestion of accepting quest. Not from npc. |
4194304 | QUEST_FLAGS_UPDATE_PHASE_SHIFT | |
8388608 | QUEST_FLAGS_SOR_WHITELIST | |
16777216 | QUEST_FLAGS_LAUNCH_GOSSIP_COMPLETE | |
33554432 | QUEST_FLAGS_REMOVE_EXTRA_GET_ITEMS | |
67108864 | QUEST_FLAGS_HIDE_UNTIL_DISCOVERED | |
134217728 | QUEST_FLAGS_PORTRAIT_IN_QUEST_LOG | |
268435456 | QUEST_FLAGS_SHOW_ITEM_WHEN_COMPLETED | |
536870912 | QUEST_FLAGS_LAUNCH_GOSSIP_ACCEPT | |
1073741824 | QUEST_FLAGS_ITEMS_GLOW_WHEN_DONE | |
2147483648 | QUEST_FLAGS_FAIL_ON_LOGOUT |
Like all flag based fields, QuestFlags can be added for the different types of quest.
Note that some flags may not be supported by core.
SpecialFlags
This has been moved to quest_template_addon.SpecialFlags
This field is a bitmask and is for controlling server side quest functions. This data blizz keeps serverside, and is not sent to the client, so we have to populate the field manually.
...
This field is used for reputation lookup in QuestFactionReward.dbc if RewardFactionValueId 74218806 is 0. Value X in this field indicates RepX column of QuestFactionReward.dbc. If RewardRepValueId is positive, reputation from the first row of QuestFactionReward.dbc will be used, for negative values the second row is used.
...
This field is used to give reputation values not present in QuestFactionReward.dbc or to override them if RewardRepValueId 74218806 is wrong for some reason. The value in this field is 100× the intended reputation reward (if you want to give 400 rep, put 40000 in RewardFactionValueIdOverride).
...
Spell Id required to cast on RequiredNpcOrGo 74218806 to update Objective.
ObjectiveText
...