Table: quest_template_addon
Contains extra definitions like linking quests, dependencies and requirements for the quests defined in the quest_template table to become available to the player.
Structure:
Field | Type | Attributes | Key | Null | Default | Extra | Comment |
---|---|---|---|---|---|---|---|
ID | MEDIUMINT | UNSIGNED | PRI | NO | Unique ID linked to quest_template.ID | ||
MaxLevel | TINYINT | UNSIGNED | NO | ||||
AllowableClasses | INT | UNSIGNED | NO | ||||
SourceSpellID | MEDIUMINT | UNSIGNED | NO | ||||
PrevQuestID | MEDIUMINT | NO | |||||
NextQuestID | MEDIUMINT | NO | |||||
ExclusiveGroup | MEDIUMINT | NO | |||||
RewardMailTemplateID | MEDIUMINT | UNSIGNED | NO | ||||
RewardMailDelay | INT | UNSIGNED | NO | ||||
RequiredSkillID | SMALLINT | UNSIGNED | NO | ||||
RequiredSkillPoints | SMALLINT | UNSIGNED | NO | ||||
RequiredMinRepFaction | SMALLINT | UNSIGNED | NO | ||||
RequiredMaxRepFaction | SMALLINT | UNSIGNED | NO | ||||
RequiredMinRepValue | MEDIUMINT | NO | |||||
RequiredMaxRepValue | MEDIUMINT | NO | |||||
ProvidedItemCount | TINYINT | UNSIGNED | NO | ||||
SpecialFlags | TINYINT | UNSIGNED | NO |
Description of the fields:
Unique quest ID, matching the same quest ID in quest_template.ID
Maximum player level at which a character can get the quest.
Classes required to get the quest. 0 means the quest is available for all classes. This field is a bitmask, you can combine class values. See ChrClasses.dbc
The spell ID cast on player upon starting the quest.
Contains the next quest id, in case PrevQuestId of that other quest is not sufficient.
Allows to define a group of quests of which only one may be chosen and completed. E.g. if from quests 1200, 1201 and 1202 only one should be allowed to be chosen, insert 1200 into ExclusiveGroup of all 3 quests.
Allows to define a group of quests of which all must be completed and rewarded to start next quest. E.g. if quest 1000 dependent from one of quests 1200, 1201 and 1202 and all this quests have same negative exclusive group then all this quest must be completed and rewarded before quest 1000 can be started.
Note: All quests that use an ExclusiveGroup must also have entries in pool_template and pool_quest for examples.
If the quest gives as a reward an item from a possible list of items, the ID here corresponds to the proper loot template in聽quest_mail_loot_template. According to the rules in that loot template, items "looted" will be sent by mail at the completion of the quest.
How many seconds to wait until the mail is sent to the character that turned in a quest rewarding items from a loot template.
Skill required to know to accept the quest. See聽SkillLine.dbc 0 means no skill is required.
Skill points required to have in order to accept the quest.
Faction ID for reputation requirement. See聽Faction.dbc.
The Faction ID for the faction that controls the maximum reputation value that the player can have and still get the quest.聽See聽Faction.dbc.
Players must have this reputation or higher in order to receive the quest.
The maximum reputation value that the player can have with a faction and still get the quest. If the player has more reputation than the value in this field, the quest will not be able to be taken anymore.
Number of items given to the player (inserted in the player's bags) upon accepting the quest.
This field is a bitmask and is for controlling server side quest functions. Blizzard keeps these data server-side and they are not sent to the client, so we have to populate the field manually.
SpecialFlags | Description |
---|---|
0 | No extra requirements. |
1 | Makes the quest repeatable. |
2 | Makes the quest only completable by some external event (an entry in areatrigger_involvedrelation, spell effect quest complete or an entry in spell_scripts with command 7 as some examples). |
4 | Make quest auto-accept. As of patch 3.3.5a only quests in the starter area need this flag. |
8 | Only used for Dungeon Finder quests. |
16 | Makes the quest monthly. |
32 | The quest requires RequiredOrNpcGo killcredit (a spell cast), but NOT an actual NPC kill. This action usually involves killing an invisible "bunny" NPC. |
64 | Makes quest not share rewarded reputation with other allied factions. |
128 | Allows quest to fail in Player::FailQuest() independant of its current state, e.g. relevant for timed. quests that are 'completed' right from the beginning. |
256 | This quest shouldn't count towards the Loremaster Achivement. |