获得成就所需条件

achievement_criteria_data(335)

  • criteria_id :ID,取值参考 Achievement_Criteria.dbc
  • type :这个字段决定 value1 和 value2 数据的作用,详细数据见下表
  • ScriptName:脚本名称,SmartAI 或者 SmartTrigger

criteria_data(master)

  • criteria_id :ID,取值参考 Achievement.db2
  • type :这个字段决定 value1 和 value2 数据的作用,详细数据见下表
  • ScriptName:脚本名称,SmartAI 或者 SmartTrigger
Type Value Type Name Value1 Value 2 Comment
0 TYPE_NONE 0 0 /
1 TYPE_T_CREATURE creature_template.entry 0 生物
2 TYPE_T_PLAYER_CLASS_RACE ChrClass ID ChrRace ID 职业、种族
3 TYPE_T_PLAYER_LESS_HEALTH The percentage of health that the target must reach 0 生命百分比
4 TYPE_T_PLAYER_DEAD own_team 0 处于死亡状态(不能释放尸体), own_team == false if enemy team expected
5 TYPE_S_AURA The spell ID of the aura that must be on the player (see Spell ID) Effect Index of the aura 玩家必须有特定光环技能
6 TYPE_S_AREA AreaTable ID 0 处于特定地区
7 TYPE_T_AURA The spell ID of the aura that must be on the target Effect Index of the aura 目标必须有特定光环技能
8 TYPE_VALUE Value to compare needed to attain achievement ComparisationType:
    COMP_TYPE_EQ = 0
    COMP_TYPE_HIGH = 1
    COMP_TYPE_LOW = 2
    COMP_TYPE_HIGH_EQ = 3
    COMP_TYPE_LOW_EQ = 4
必须满足特定值的要求
9 TYPE_T_LEVEL The minimum level of the target. 0 目标的最小等级
10 TYPE_T_GENDER 0=male; 1=female 0 性别要求
11 TYPE_SCRIPT 0 0 ScriptName required
12 TYPE_MAP_DIFFICULTY Dungeon:
    0=Normal
    1=Heroic
Raid:
    0=10 Man Normal
    1=25 Man Normal
    2=10 Man Heroic
    3=25 Man Heroic
0 地下城难度要求
13 TYPE_MAP_PLAYER_COUNT count 0 "with less than %u people in the zone"
14 TYPE_T_TEAM The target must be on this team: Alliance = 469, Horde = 67 0 目标必须在队伍中
15 TYPE_S_DRUNK How drunk the player must be:
    DRUNKEN_SOBER = 0
    DRUNKEN_TIPSY = 1
    DRUNKEN_DRUNK = 2
    DRUNKEN_SMASHED = 3
0

玩家必须满足的醉酒状态

(enum DrunkenState) of player

16 TYPE_HOLIDAY Holiday ID and game_event. Must be an active holiday 0 event in holiday time
17 TYPE_BG_LOSS_TEAM_SCORE min. score max. score player's team win bg and opposition team have team score in range
18 TYPE_INSTANCE_SCRIPT 0 0 make instance script call for check current criteria requirements fit
19 TYPE_S_EQUIPPED_ITEM Item level Item quality for equipped item in slot to check item level and quality
20 TYPE_MAP_ID Player must be on Map ID 0
21 TYPE_S_PLAYER_CLASS_RACE ChrClass ID ChrRace ID
22 TYPE_NTH_BIRTHDAY N 0 login on day of N-th Birthday
23 TYPE_S_KNOWN_TITLE CharTitle ID 0 known (pvp) title
24 TYPE_GAME_EVENT - - 7.x only
25 TYPE_S_ITEM_QUALITY Item quality 0


 

你可能感兴趣的:(TrinityCore,数据表,功能实现,前端,开源)