quest_template

目录

任务参数

任务限定

任务文本及描述

任务需求


quest_template(主要字段介绍)

任务参数

  • QuestType
    • 0: 接受任务时直接跳过任务目标和任务细节,自动完成任务
    • 1: 任务未启用
    • 2: 任务启用
    • 3: 世界任务
  • QuestInfo
    • 取值参考 QuestInfo.dbc | QuestInfo.db2
ID Name Comments
1 Group 组队任务
21 Life 生活?
41 PvP PVP任务
62 Raid 团队任务
81 Dungeon 地下城任务
82 World Event 世界事件
83 Legendary 传奇任务
84 Escort 护送任务
85 Heroic 英雄任务
88 Raid (10) 团队任务(10人)
89 Raid (25) 团队任务(25人)
  • QuestSortID
    • QuestSortID > 0: 任务所在区域,取值参考 AreaTable.dbc | AreaTable.db2
    • QuestSortID < 0: 任务分类,取值参考 QuestSort.dbc | QuestSort.db2
ID Name Comments ID Name Comments
22 Seasonal 季节 261 Hunter 猎人
24 Herbalism 草药 262 Priest 牧师
25 Battlegrounds 战场 263 Druid 德鲁伊
41 Day of the Dead 264 Tailoring 裁缝
61 Warlock 术士 304 Cooking 烹饪
81 Warrior 战士 324 First Aid 急救
82 Shaman 萨满 364 Darkmoon Faire 暗月马戏团
101 Fishing 钓鱼 366 Lunar Festival 春节
121 Blacksmithing 锻造 369 Midsummer 仲夏节
141 Paladin 骑士 370 Brewfest 美酒节
161 Mage 法师 371 Inscription 铭文
162 Rogue 盗贼 372 Death Knight 死亡骑士
181 Alchemy 炼金 373 Jewelcrafting 珠宝加工
182 Leatherworking 制皮 374 Noblegarden
201 Engineering 工程 375 Pilgrim's Bounty
241 Tournament 锦标赛 376 Love is in the Air
  • Flags
    • 取值参考源码“QuestDef.h”,此值为位掩码,要应用多个,只需将他们相加
Value Flag Name Comments Description
1 0x000001 QUEST_FLAGS_STAY_ALIVE

任务期间

保证存活

Not used currently; If the player dies, the quest is failed.
2 0x000002 QUEST_FLAGS_PARTY_ACCEPT 在队玩家均能接收到接受任务提示 Not used currently. If player in party, all players that can accept this quest will receive confirmation box to accept quest CMSG_QUEST_CONFIRM_ACCEPT/SMSG_QUEST_CONFIRM_ACCEPT
4 0x000004 QUEST_FLAGS_EXPLORATION 区域触发器激活 Not used currently; Involves the activation of an areatrigger.
8 0x000008 QUEST_FLAGS_SHARABLE 任务可以分享给其他玩家 Can be shared: Player::CanShareQuest()
16 0x000010 QUEST_FLAGS_HAS_CONDITION 任务有条件限制 Not used currently
32 0x000020 QUEST_FLAGS_HIDE_REWARD_POI Not used currently: Unsure of content
64 0x000040 QUEST_FLAGS_RAID 团队任务 Can be completed while in raid
128 0x000080 QUEST_FLAGS_TBC Not used currently: Available if TBC expansion enabled only
256 0x000100 QUEST_FLAGS_NO_MONEY_FROM_XP 玩家满级后任务经验不转化为金币 Not used currently: Experience is not converted to gold at max level
512 0x000200 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 0x000400 QUEST_FLAGS_TRACKING 任务完成时自动奖励,不在客户端任务面板显示 These quests are automatically rewarded on quest complete and they will never appear in quest log client side.
2048 0x000800 QUEST_FLAGS_DEPRECATE_REPUTATION Not used currently
4096 0x001000 QUEST_FLAGS_DAILY 日常任务 Daily repeatable quests
8192 0x002000 QUEST_FLAGS_FLAGS_PVP PVP任务 Having this quest in log forces PvP flag
16384 0x004000 QUEST_FLAGS_UNAVAILABLE 一般不可用的任务 Used on quests that are not generically available
32768 0x008000 QUEST_FLAGS_WEEKLY 周常任务 Weekly repeatable quests
65536 0x010000 QUEST_FLAGS_AUTOCOMPLETE 自动完成 auto complete
131072 0x020000 QUEST_FLAGS_DISPLAY_ITEM_IN_TRACKER 在任务追踪列表显示可用物品 Displays usable item in quest tracker
262144 0x040000 QUEST_FLAGS_OBJ_TEXT 用任务目标文字代替任务完成文字 use Objective text as Complete text
524288 0x080000 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.
  • StartItem
    • 接受任务时给的 Item,取值为 Item 的 entry。当任务被放弃时,Item 将被删除
  • ItemDrop[1-4]
    • 任务间接需要的 Item 的 entry。例如,任务通过 Item 1来获得 Item 2,此处则填 Item 1的 entry。当放弃任务时,Item 1 也会被删除。
  • ItemDropQuantity[1-4]
    • Item 掉落和被拾取的最大数量
  • RewardNextQuest
    • 下一个任务的ID。设置后,结束当前任务后,新任务会立即从任务给予者那里出现

任务限定

  • MinLevel

    • 接取任务的最小级别

  • RequiredFactionId[1-2]

    • 接取任务所需的阵容声望,取值参考 Faction.dbc | Faction.db2

  • RequiredFactionValue[1-2]

    • 接取任务所需的阵容声望值,取值参考下表

Value Description Comments
-6001 Hated 仇恨
3000 Friendly 友善
9000 Honored 尊敬
21000 Revered 崇敬
42000 Exalted 崇拜
  • RequiredPlayerKills

    • 完成任务需要击杀的玩家数

  • TimeAllowed
    • 任务限时,秒为单位
  • AllowableRaces
    • 允许接受任务的种族,取值参考 ChrRaces.dbc | ChrRaces.db2
    • 0 为无限制
Value Flag Name Value Flag Name
1 0x0001 Human 2 0x0002 Orc
4 0x0004 Dwarf 16 0x0010 Undead
8 0x0008 Night Elf 32 0x0020 Tauren
64 0x0040 Gnome 128 0x0080 Troll
1024 0x0400 Draenei 512 0x0200 Blood Elf
1101 0x044D Alliance 690 0x02B2 Horde

任务文本及描述

  • LogTitle
    • 任务标题
  • LogDescription

    • 任务目标文字

  • QuestDescription 
    • 任务描述,可以使用如下占位符:
      • $B line break
      • $N 玩家名字
      • $R 玩家种族
      • $C 玩家职业
      • $Gmale:female; 玩家性别
  • QuestCompletionLog
    • 所有任务目标完成后显示文本

任务需求

  • RequiredNpcOrGo[1-4]
    • RequiredNpcOrGo* > 0: 玩家需要击杀(施放)才能完成任务的 creature 的 entry
    • RequiredNpcOrGo* < 0: 玩家需要施放才能完成任务的 gameobject 的 entry
    • 如果 SpecialFlags 包含 QUEST_SPECIAL_FLAGS_CAST(0x20),则任务目标是对目标 creature 或 gameobject 施放,否则则为击杀
    • 如果设置了 QUEST_SPECIAL_FLAGS_CAST,并且该法术具有“发送事件”或“完成任务”效果,则该字段可能为空
  • RequiredNpcOrGoCount[1-4]
    • 击杀数量(施放次数)
  • RequiredItemId[1-6] 
    • 完成任务所需的 Item 的 entry
  • RequiredItemCount[1-6]
    • 完成任务所需的 Item 的数量

相关链接:

quest_template_addon
设置任务链
任务修复思路及实现

你可能感兴趣的:(TrinityCore,任务,数据表,开源)