From fc8a34f506dfd019febfa746346bf81752accc6d Mon Sep 17 00:00:00 2001 From: Kitzunu <24550914+Kitzunu@users.noreply.github.com> Date: Sun, 9 Jun 2019 18:18:50 +0200 Subject: Update conditions.md (#57) Change from TrinityCore links to AzerothCore wiki links. Removed CONDITION_SOURCE_TYPE_TERRAIN_SWAP as it is for versions 6.x and 7.x only. Removed CONDITION_SOURCE_TYPE_PHASE as it is for versions 6.x and 7.x only. Removed CONDITION_TERRAIN_SWAP as it is for version 6.x. --- docs/conditions.md | 229 +++++++++++++++++++++++------------------------------ 1 file changed, 101 insertions(+), 128 deletions(-) (limited to 'docs/conditions.md') diff --git a/docs/conditions.md b/docs/conditions.md index ee9e861..88b5733 100644 --- a/docs/conditions.md +++ b/docs/conditions.md @@ -65,7 +65,7 @@ This table allows you to define conditions for various systems - Gossip, loot et

0


-

smart_scripts.source_type || 0 for everything else

+

smart_scripts.source_type || 0 for everything else

ElseGroup

@@ -220,7 +220,7 @@ if negative, then it is a reference template. ID SourceGroup SourceEntry -SourceId +SourceId ConditionTarget Notes @@ -238,8 +238,8 @@ if negative, then it is a reference template. CONDITION_SOURCE_TYPE_CREATURE_LOOT_TEMPLATE 1 -creature_loot_template.Entry or reference_loot_template.Entry -item id (_loot_template.Item or reference_loot_template.Item) +creature_loot_template.Entry or reference_loot_template.Entry +item id (_loot_template.Item or reference_loot_template.Item) Always 0 Always 0
@@ -248,8 +248,8 @@ if negative, then it is a reference template. CONDITION_SOURCE_TYPE_DISENCHANT_LOOT_TEMPLATE 2 -disenchant_loot_template.Entry or reference_loot_template.Entry -item id (_loot_template.Item or reference_loot_template.Item) +disenchant_loot_template.Entry or reference_loot_template.Entry +item id (_loot_template.Item or reference_loot_template.Item) Always 0 Always 0
@@ -258,8 +258,8 @@ if negative, then it is a reference template. CONDITION_SOURCE_TYPE_FISHING_LOOT_TEMPLATE 3 -fishing_loot_template.Entry or reference_loot_template.Entry -item id (_loot_template.Item or reference_loot_template.Item) +fishing_loot_template.Entry or reference_loot_template.Entry +item id (_loot_template.Item or reference_loot_template.Item) Always 0 Always 0
@@ -268,8 +268,8 @@ if negative, then it is a reference template. CONDITION_SOURCE_TYPE_GAMEOBJECT_LOOT_TEMPLATE 4 -gameobject_loot_template.Entry or reference_loot_template.Entry -item id (_loot_template.Item or reference_loot_template.Item) +gameobject_loot_template.Entry or reference_loot_template.Entry +item id (_loot_template.Item or reference_loot_template.Item) Always 0 Always 0
@@ -278,8 +278,8 @@ if negative, then it is a reference template. CONDITION_SOURCE_TYPE_ITEM_LOOT_TEMPLATE 5 -item_loot_template.Entry or reference_loot_template.Entry -item id (_loot_template.Item or reference_loot_template.Item) +item_loot_template.Entry or reference_loot_template.Entry +item id (_loot_template.Item or reference_loot_template.Item) Always 0 Always 0
@@ -288,8 +288,8 @@ if negative, then it is a reference template. CONDITION_SOURCE_TYPE_MAIL_LOOT_TEMPLATE 6 -mail_loot_template.Entry or reference_loot_template.Entry -item id (_loot_template.Item or reference_loot_template.Item) +mail_loot_template.Entry or reference_loot_template.Entry +item id (_loot_template.Item or reference_loot_template.Item) Always 0 Always 0
@@ -298,8 +298,8 @@ if negative, then it is a reference template. CONDITION_SOURCE_TYPE_MILLING_LOOT_TEMPLATE 7 -milling_loot_template.Entry or reference_loot_template.Entry -item id (_loot_template.Item or reference_loot_template.Item) +milling_loot_template.Entry or reference_loot_template.Entry +item id (_loot_template.Item or reference_loot_template.Item) Always 0 Always 0
@@ -308,8 +308,8 @@ if negative, then it is a reference template. CONDITION_SOURCE_TYPE_PICKPOCKETING_LOOT_TEMPLATE 8 -pickpocketing_loot_template.Entry or reference_loot_template.Entry -item id (_loot_template.Item or reference_loot_template.Item) +pickpocketing_loot_template.Entry or reference_loot_template.Entry +item id (_loot_template.Item or reference_loot_template.Item) Always 0 Always 0
@@ -318,8 +318,8 @@ if negative, then it is a reference template. CONDITION_SOURCE_TYPE_PROSPECTING_LOOT_TEMPLATE 9 -prospecting_loot_template.Entry or reference_loot_template.Entry -item id (_loot_template.Item or reference_loot_template.Item) +prospecting_loot_template.Entry or reference_loot_template.Entry +item id (_loot_template.Item or reference_loot_template.Item) Always 0 Always 0
@@ -328,8 +328,8 @@ if negative, then it is a reference template. CONDITION_SOURCE_TYPE_REFERENCE_LOOT_TEMPLATE 10 -reference_loot_template.Entry -item id (_loot_template.Item or reference_loot_template.Item) +reference_loot_template.Entry +item id (_loot_template.Item or reference_loot_template.Item) Always 0 Always 0
@@ -338,8 +338,8 @@ if negative, then it is a reference template. CONDITION_SOURCE_TYPE_SKINNING_LOOT_TEMPLATE 11 -skinning_loot_template.Entry or reference_loot_template.Entry -item id (_loot_template.Item or reference_loot_template.Item) +skinning_loot_template.Entry or reference_loot_template.Entry +item id (_loot_template.Item or reference_loot_template.Item) Always 0 Always 0
@@ -348,8 +348,8 @@ if negative, then it is a reference template. CONDITION_SOURCE_TYPE_SPELL_LOOT_TEMPLATE 12 -spell_loot_template.Entry or reference_loot_template.Entry -item id (_loot_template.Item or reference_loot_template.Item) +spell_loot_template.Entry or reference_loot_template.Entry +item id (_loot_template.Item or reference_loot_template.Item) Always 0 Always 0
@@ -362,7 +362,7 @@ CONDITION_SOURCE_TYPE_SPELL_IMPLICIT_TARGET 13 Mask of effects to be affected by condition:
1 = EFFECT_0, 2 = EFFECT_1, 4 = EFFECT_2 -Spell Id from  Spell DBC file +Spell Id from  Spell.dbc Always 0

0 : Potential spell Target
1 : spell Caster

@@ -371,8 +371,8 @@ CONDITION_SOURCE_TYPE_SPELL_IMPLICIT_TARGET CONDITION_SOURCE_TYPE_GOSSIP_MENU 14 -gossip_menu.entry (gossip menu entry) -gossip_menu.text_id (points to npc_text.ID) +gossip_menu.entry (gossip menu entry) +gossip_menu.text_id (points to npc_text.ID) Always 0

0 = Player
1 = WorldObject

@@ -382,8 +382,8 @@ CONDITION_SOURCE_TYPE_SPELL_IMPLICIT_TARGET CONDITION_SOURCE_TYPE_GOSSIP_MENU_OPTION 15 -gossip_menu_option.menu_id (menu entry) -gossip_menu_option.id +gossip_menu_option.menu_id (menu entry) +gossip_menu_option.id Always 0

0 = Player
1 = WorldObject

@@ -394,7 +394,7 @@ CONDITION_SOURCE_TYPE_SPELL_IMPLICIT_TARGET CONDITION_SOURCE_TYPE_CREATURE_TEMPLATE_VEHICLE 16 Always 0 -creature entry (creature_template.entry) +creature entry (creature_template.entry) Always 0

0 = Player riding vehicle
1 = Vehicle creature

@@ -420,7 +420,7 @@ CONDITION_SOURCE_TYPE_SPELL


-Spell ID from Spell.dbc +Spell ID from Spell.dbc Always 0

@@ -437,8 +437,8 @@ Spell ID from  CONDITION_SOURCE_TYPE_SPELL_CLICK_EVENT 18 -creature entry (npc_spellclick_spells.npc_entry) -Spell (npc_spellclick_spells.spell_id) +creature entry (npc_spellclick_spells.npc_entry) +Spell (npc_spellclick_spells.spell_id) Always 0 0 = Clicker
1 =  Spellclick target (clickee) @@ -449,7 +449,7 @@ Spell ID from CONDITION_SOURCE_TYPE_QUEST_AVAILABLE 19 Always 0 -Quest ID +Quest ID Always 0 Always 0 Condition must be met for quest to be available to player. @@ -472,9 +472,9 @@ Spell ID from 
21 -creature entry (
creature_template.entry) +creature entry (creature_template.entry)
-Spell ID from Spell.dbc +Spell ID from Spell.dbc Always 0 0 = Player for whom spell bar is shown1 =  Vehicle creature
@@ -483,9 +483,9 @@ This will show or hide spells in vehicle spell bar. CONDITION_SOURCE_TYPE_SMART_EVENT 22 -ID (smart_scripts.id) + 1 -EntryOrGuid (smart_scripts.entryorguid) -SourceType (smart_scripts.source_type) +ID (smart_scripts.id) + 1 +EntryOrGuid (smart_scripts.entryorguid) +SourceType (smart_scripts.source_type) 0 = Invoker
1 = Object
@@ -494,8 +494,8 @@ This will show or hide spells in vehicle spell bar. CONDITION_SOURCE_TYPE_NPC_VENDOR 23 -vendor entry (npc_vendor.entry) -item entry (npc_vendor.item) +vendor entry (npc_vendor.entry) +item entry (npc_vendor.item) Always 0 Always 0
@@ -513,26 +513,6 @@ This will show or hide spells in vehicle spell bar. -CONDITION_SOURCE_TYPE_TERRAIN_SWAP (6.x / 7.x only) -25 -Always 0 -terrainSwap - object in terrainswap [ 6.x / 7.x only ] -Always 0 -(source code / new description here) -
- - - -CONDITION_SOURCE_TYPE_PHASE (6.x / 7.x only) -26 -Phase ID -Zone or Area ID (or 0 for any area) -Always 0 -(source code / new description here) -
- - - CONDITION_SOURCE_TYPE_MAX 27
@@ -590,21 +570,21 @@ Two conditions with the same SourceType, SourceGroup and SourceEntry but with a CONDITION_AURA 1 -Spell ID from Spell.dbc +Spell ID from Spell.dbc Effect index (0-2) Always 0 CONDITION_ITEM 2 -item entry (item_template.entry) +item entry (item_template.entry) item count 0 = not in bank, 1 = in bank CONDITION_ITEM_EQUIPPED 3 -item entry (item_template.entry) +item entry (item_template.entry) Always 0 Always 0 @@ -633,7 +613,7 @@ CONDITION_REPUTATION_RANK


-Faction template ID from Faction.dbc

+Faction template ID from Faction.dbc

rank:
   1 = Hated
   2 = Hostile
@@ -656,21 +636,21 @@ Faction template ID from 
 CONDITION_SKILL
 7
-Required skill. See SkillLine.dbc .
+Required skill. See SkillLine.dbc .
 Skill rank value (e.g. from 1 to 450 for the 3.3.5 branch)
 Always 0
 
 
 CONDITION_QUESTREWARDED
 8
-Quest ID - see quest_template.id
+Quest ID - see quest_template.id
 Always 0
 Always 0
 
 
 CONDITION_QUESTTAKEN
 9
-Quest ID - see quest_template.id
+Quest ID - see quest_template.id
 Always 0
 Always 0
 
@@ -691,7 +671,7 @@ Faction template ID from 
 CONDITION_ACTIVE_EVENT
 12
-Event entry (game_event.eventEntry)
+Event entry (game_event.eventEntry)
 Always 0
 Always 0
 
@@ -712,7 +692,7 @@ data (see corresponding script source files for more info)
 
 CONDITION_QUEST_NONE
 14
-Quest ID - see quest_template.id
+Quest ID - see quest_template.id
 Always 0
 Always 0
 
@@ -721,7 +701,7 @@ data (see corresponding script source files for more info)
 CONDITION_CLASS
 
15 -Class mask from ChrClasses.dbc
+Class mask from ChrClasses.dbc
Add flags together for all classes where condition is true. Always 0 Always 0 @@ -729,7 +709,7 @@ Add flags together for all classes where condition is true. CONDITION_RACE 16 -Player must be this race. See ChrRaces.dbc .
+Player must be this race. See ChrRaces.dbc .
Add flags together for all races where condition is true. Always 0 Always 0 @@ -737,14 +717,14 @@ Add flags together for all races where condition is true. CONDITION_ACHIEVEMENT 17 -Achievement ID from Achievement.dbc +Achievement ID from Achievement.dbc Always 0 Always 0 CONDITION_TITLE 18 -Title ID from CharTitles.dbc +Title ID from CharTitles.dbc Always 0 Always 0 @@ -752,7 +732,7 @@ Add flags together for all races where condition is true. CONDITION_SPAWNMASK 19 spawnMask from
-Creature.spawnMask / Gameobject.spawnMask +Creature.spawnMask / Gameobject.spawnMask Always 0 Always 0 @@ -766,7 +746,7 @@ Add flags together for all races where condition is true. CONDITION_UNIT_STATE 21 -UnitState (enum from Unit.h) +UnitState (enum from Unit.h) Always 0 Always 0 @@ -788,7 +768,7 @@ Add flags together for all races where condition is true. CONDITION_CREATURE_TYPE 24 -

Creature type from creature_template.type

+

Creature type from creature_template.type

True if creature_template.type == ConditionValue1

Always 0 Always 0 @@ -796,7 +776,7 @@ Add flags together for all races where condition is true. CONDITION_SPELL 25 -Spell ID from Spell.dbc +Spell ID from Spell.dbc Always 0 Always 0 @@ -813,7 +793,7 @@ CONDITION_LEVEL
27
-Player level (1-80 in 3.3.5 || 1-110 in 7.x) +Player level (1-80 in 3.3.5) Optional: 0 = Level must be equal, 1 = Level must be higher, 2 = Level must be lower,
3 = Level must be higher or equal, 4 = Level must be lower or equal. Always 0 @@ -821,21 +801,21 @@ Player level (1-80 in 3.3.5 || 1-110 in 7.x) CONDITION_QUEST_COMPLETE 28 -Quest ID - see quest_template.id +Quest ID - see quest_template.id Always 0 Always 0 CONDITION_NEAR_CREATURE 29 -Creature entry from creature_template.entry +Creature entry from creature_template.entry Distance in yards Alive=0 / Dead=1 CONDITION_NEAR_GAMEOBJECT 30 -Gameobject entry from gameobject_template.entry +Gameobject entry from gameobject_template.entry Distance in yards Always 0 @@ -853,8 +833,8 @@ CONDITION_OBJECT_ENTRY_GUID 7 : TYPEID_CORPSE (player corpse, after spirit release)


0 = Any object of given TypeID
-if TypeID = TYPEID_UNIT => Creature entry from creature_template.entry
-if TypeID = TYPEID_GAMEOBJECT => Gameobject entry from 
gameobject_template.entry

+if TypeID = TYPEID_UNIT => Creature entry from creature_template.entry
+if TypeID = TYPEID_GAMEOBJECT => Gameobject entry from 
gameobject_template.entry


0 = Any object of given type

1 - 500k : creature / gameobject GUID

@@ -1022,7 +1002,7 @@ CONDITION_HP_PCT CONDITION_REALM_ACHIEVEMENT 39 -Achievement ID from Achievement.dbc +Achievement ID from Achievement.dbc Always 0 Always 0 @@ -1035,13 +1015,6 @@ CONDITION_IN_WATER Always 0 Always 0 - -CONDITION_TERRAIN_SWAP -41 -

terrainSwap - true if object is in terrainswap [ 6.x only ]

-Always 0 -Always 0 -


CONDITION_STAND_STATE

@@ -1054,7 +1027,7 @@ CONDITION_STAND_STATE

CONDITION_DAILY_QUEST_DONE 43 -Quest ID - see quest_template.id +Quest ID - see quest_template.id Always 0 Always 0 @@ -1082,7 +1055,7 @@ CONDITION_STAND_STATE

CONDITION_QUESTSTATE 47 -Quest ID - see quest_template.id +Quest ID - see quest_template.id state_mask Always 0 @@ -1130,13 +1103,13 @@ Example: CONDITION\_AURA with NegativeCondition will be true when the player doe ### ErrorType -Id from [/src/server/game/Miscellaneous/SharedDefines.h:839](https://github.com/TrinityCore/TrinityCore/blob/3.3.5/src/server/game/Miscellaneous/SharedDefines.h#L839). Will be displayed only for the below condition [source type](#conditions-SourceTypeOrReferenceId): +Id from [/src/server/game/Miscellaneous/SharedDefines.h#L830](https://github.com/azerothcore/azerothcore-wotlk/blob/97e65bd4479272106bba87364d35233d2e4bd2ef/src/server/game/Miscellaneous/SharedDefines.h#L830). Will be displayed only for the below condition [source type](#conditions-SourceTypeOrReferenceId): CONDITION\_SOURCE\_TYPE\_SPELL = 17 ### ErrorTextId -Id from [/src/server/game/Miscellaneous/SharedDefines.h:1033](https://github.com/TrinityCore/TrinityCore/blob/3.3.5/src/server/game/Miscellaneous/SharedDefines.h#L1033). Will be displayed only for the below condition [source type](#conditions-SourceTypeOrReferenceId): +Id from [/src/server/game/Miscellaneous/SharedDefines.h#L1024](https://github.com/azerothcore/azerothcore-wotlk/blob/97e65bd4479272106bba87364d35233d2e4bd2ef/src/server/game/Miscellaneous/SharedDefines.h#L1024). Will be displayed only for the below condition [source type](#conditions-SourceTypeOrReferenceId): CONDITION\_SOURCE\_TYPE\_SPELL = 17 @@ -1169,7 +1142,7 @@ The content of the [SourceGroup](#conditions-SourceGroup) and [SourceEntry](#con \***CONDITION\_SOURCE\_TYPE\_SPELL\_IMPLICIT\_TARGET = 13** - - SourceGroup: mask of effects to be affected by condition (1 - EFFECT\_0, 2 - EFFECT\_1, 4 - EFFECT\_2 - don't use wowhead to get number of effects, data from wowhead sometimes doesn't match real effect number) - - SourceEntry: spell (Spell Id from  [Spell DBC file](Spell).) + - SourceEntry: spell (Spell Id from  [Spell.dbc](Spell).) - ConditionTarget: - 0 - Potential target of the spell - 1 - Caster of the spell @@ -1183,16 +1156,16 @@ Notes: \***CONDITION\_SOURCE\_TYPE\_GOSSIP\_MENU = 14** -- - SourceGroup: gossip menu entry ([gossip\_menu.entry](gossip_menu_2130187.html#gossip_menu-entry)) - - SourceEntry: gossip menu text id ([gossip\_menu.text\_id](gossip_menu_2130187.html#gossip_menu-text_id)) +- - SourceGroup: gossip menu entry ([gossip\_menu.entry](http://www.azerothcore.org/wiki/gossip_menu#entry)) + - SourceEntry: gossip menu text id ([gossip\_menu.text\_id](http://www.azerothcore.org/wiki/gossip_menu#text_id)) - ConditionTarget: - 0 - Player for which gossip text is shown - 1 - WorldObject providing gossip \***CONDITION\_SOURCE\_TYPE\_GOSSIP\_MENU\_OPTION = 15** -- - SourceGroup: gossip menu entry ([gossip\_menu\_option.menu\_id](gossip_menu_option_2130188.html#gossip_menu_option-menu_id)) - - SourceEntry: gossip menu option id ([gossip\_menu\_option.id](gossip_menu_option_2130188.html#gossip_menu_option-id)) +- - SourceGroup: gossip menu entry ([gossip\_menu\_option.menu\_id](http://www.azerothcore.org/wiki/gossip_menu_option#menu_id)) + - SourceEntry: gossip menu option id ([gossip\_menu\_option.id](http://www.azerothcore.org/wiki/gossip_menu_option#id)) - ConditionTarget: - 0 - Player for which gossip text is shown - 1 - WorldObject providing gossip @@ -1200,7 +1173,7 @@ Notes: \***CONDITION\_SOURCE\_TYPE\_CREATURE\_TEMPLATE\_VEHICLE = 16** - - SourceGroup: always 0 - - SourceEntry: creature entry ([creature\_template.entry](creature_template_2130008.html#creature_template-entry)) + - SourceEntry: creature entry ([creature\_template.entry](http://www.azerothcore.org/wiki/creature_template#creature_template-entry)) - ConditionTarget: - 0 - Player riding a vehicle - 1 - Vehicle creature @@ -1224,8 +1197,8 @@ Notes: \***CONDITION\_SOURCE\_TYPE\_SPELL\_CLICK\_EVENT = 18** -- - SourceGroup: creature entry ([npc\_spellclick\_spells.npc\_entry](npc_spellclick_spells_2130251.html#npc_spellclick_spells-npc_entry)) - - SourceEntry: spell ([npc\_spellclick\_spells.spell\_id](npc_spellclick_spells_2130251.html#npc_spellclick_spells-spell_id)) +- - SourceGroup: creature entry ([npc\_spellclick\_spells.npc\_entry](http://www.azerothcore.org/wiki/npc_spellclick_spells#npc_entry)) + - SourceEntry: spell ([npc\_spellclick\_spells.spell\_id](http://www.azerothcore.org/wiki/npc_spellclick_spells#spell_id)) - ConditionTarget: - 0 - Clicker - 1 - Spellclick target (clickee) @@ -1233,18 +1206,18 @@ Notes: \***CONDITION\_SOURCE\_TYPE\_QUEST\_ACCEPT = 19** - - SourceGroup: ? - - SourceEntry: Quest [id](quest_template_2130261.html#quest_template-id)) + - SourceEntry: Quest [id](http://www.azerothcore.org/wiki/quest_template#id)) - ConditionTarget: always 0 \***CONDITION\_SOURCE\_TYPE\_QUEST\_SHOW\_MARK = 20** - - SourceGroup: ? - - SourceEntry: Quest [id](quest_template_2130261.html#quest_template-id)) + - SourceEntry: Quest [id](http://www.azerothcore.org/wiki/quest_template#id)) - ConditionTarget: always 0 \***CONDITION\_SOURCE\_TYPE\_VEHICLE\_SPELL = 21** -- - SourceGroup: creature entry ([creature\_template.entry](creature_template_2130008.html#creature_template-entry)) +- - SourceGroup: creature entry ([creature\_template.entry](http://www.azerothcore.org/wiki/creature_template#creature_template-entry)) - SourceEntry: spell (Spell Id from [Spell.dbc](Spell)) - ConditionTarget: - 0 - Player for which spell bar is shown @@ -1254,17 +1227,17 @@ Note: it will show or hide spells in vehicle spell bar. \***CONDITION\_SOURCE\_TYPE\_SMART\_EVENT = 22** -- - SourceGroup: Id ([smart\_scripts.id](smart_scripts_2130108.html#smart_scripts-id)) + 1 - - SourceEntry: EntryOrGuid ([smart\_scripts.entryorguid](smart_scripts_2130108.html#smart_scripts-entryorguid)) - - SourceId: SourceType ([smart\_scripts.source\_type](smart_scripts_2130108.html#smart_scripts-source_type)) +- - SourceGroup: Id ([smart\_scripts.id](http://www.azerothcore.org/wiki/smart_scripts#id)) + 1 + - SourceEntry: EntryOrGuid ([smart\_scripts.entryorguid](http://www.azerothcore.org/wiki/smart_scripts#entryorguid)) + - SourceId: SourceType ([smart\_scripts.source\_type](http://www.azerothcore.org/wiki/smart_scripts#source_type)) - ConditionTarget: - 0 - Invoker - 1 - Object \***CONDITION\_SOURCE\_TYPE\_NPC\_VENDOR = 23** -- - SourceGroup: vendor entry ([npc\_vendor.entry](npc_vendor_2130245.html#npc_vendor-entry)) - - SourceEntry: item entry ([npc\_vendor.item](npc_vendor_2130245.html#npc_vendor-item)) +- - SourceGroup: vendor entry ([npc\_vendor.entry](http://www.azerothcore.org/wiki/npc_vendor#entry)) + - SourceEntry: item entry ([npc\_vendor.item](http://www.azerothcore.org/wiki/npc_vendor#item)) - SourceId: always 0 \***CONDITION\_SOURCE\_TYPE\_SPELL\_PROC = 24** @@ -1289,13 +1262,13 @@ Note: it will show or hide spells in vehicle spell bar. \***CONDITION\_ITEM = 2** -- - ConditionValue1: item entry ([item\_template.entry](item_template_2130222.html#item_template-entry)) +- - ConditionValue1: item entry ([item\_template.entry](http://www.azerothcore.org/wiki/item_template#entry)) - ConditionValue2: item count - ConditionValue3: in bank? (true=1) \***CONDITION\_ITEM\_EQUIPPED = 3** -- - ConditionValue1: item entry ([item\_template.entry](item_template_2130222.html#item_template-entry)) +- - ConditionValue1: item entry ([item\_template.entry](http://www.azerothcore.org/wiki/item_template#entry)) - ConditionValue2: always 0 - ConditionValue3: always 0 @@ -1325,13 +1298,13 @@ Note: it will show or hide spells in vehicle spell bar. \***CONDITION\_QUESTREWARDED = 8** -- - ConditionValue1: ([quest\_template.id](quest_template_2130261.html#quest_template-id)) +- - ConditionValue1: ([quest\_template.id](http://www.azerothcore.org/wiki/quest_template#id)) - ConditionValue2: always 0 - ConditionValue3: always 0 \***CONDITION\_QUESTTAKEN = 9** -- - ConditionValue1: ([quest\_template.id](quest_template_2130261.html#quest_template-id)) +- - ConditionValue1: ([quest\_template.id](http://www.azerothcore.org/wiki/quest_template#id)) - ConditionValue2: always 0 - ConditionValue3: always 0 @@ -1350,7 +1323,7 @@ Note: it will show or hide spells in vehicle spell bar. \***CONDITION\_ACTIVE\_EVENT= 12** -- - ConditionValue1: event entry ([game\_event.eventEntry](game_event_2130151.html#game_event-eventEntry)) +- - ConditionValue1: event entry ([game\_event.eventEntry](http://www.azerothcore.org/wiki/game_event#evententry)) - ConditionValue2: always 0 - ConditionValue3: always 0 @@ -1366,7 +1339,7 @@ Note: it will show or hide spells in vehicle spell bar. \***CONDITION\_QUEST\_NONE = 14** -- - ConditionValue1: ([quest\_template.id](quest_template_2130261.html#quest_template-id)) +- - ConditionValue1: ([quest\_template.id](http://www.azerothcore.org/wiki/quest_template#id)) - ConditionValue2: always 0 - ConditionValue3: always 0 @@ -1396,7 +1369,7 @@ Note: it will show or hide spells in vehicle spell bar. \***CONDITION\_SPAWNMASK = 19** -- - ConditionValue1: spawnMask (see [Gameobject.spawnMask](gameobject_2130146.html#gameobject-spawnMask)/[Creature.spawnMask](creature_2130009.html#creature-spawnMask)) +- - ConditionValue1: spawnMask (see [Gameobject.spawnMask](http://www.azerothcore.org/wiki/gameobject#spawnmask)/[Creature.spawnMask](http://www.azerothcore.org/wiki/creature#spawnmask)) - ConditionValue2: always 0 - ConditionValue3: always 0 @@ -1408,7 +1381,7 @@ Note: it will show or hide spells in vehicle spell bar. \***CONDITION\_UNIT\_STATE = 21** -- - ConditionValue1: UnitState ([enum](https://github.com/TrinityCore/TrinityCore/blob/master/src/server/game/Entities/Unit/Unit.h#L466))  +- - ConditionValue1: UnitState ([enum](https://github.com/azerothcore/azerothcore-wotlk/blob/97e65bd4479272106bba87364d35233d2e4bd2ef/src/server/game/Entities/Unit/Unit.h#L451))  - ConditionValue2: always 0 - ConditionValue3: always 0 @@ -1426,7 +1399,7 @@ Note: it will show or hide spells in vehicle spell bar. \***CONDITION\_CREATURE\_TYPE = 24** -- - ConditionValue1: Creature type ([creature\_template.type](https://trinitycore.atlassian.net/wiki/display/tc/creature_template#creature_template-type)). Condition is true if creature\_template.type == ConditionValue1 +- - ConditionValue1: Creature type ([creature\_template.type](http://www.azerothcore.org/wiki/creature_template#creature_template-entry)). Condition is true if creature\_template.type == ConditionValue1 - ConditionValue2: always 0 - ConditionValue3: always 0 @@ -1455,7 +1428,7 @@ Note: it will show or hide spells in vehicle spell bar. \***CONDITION\_QUEST\_COMPLETE = 28** -- - ConditionValue1: Quest [id](quest_template_2130261.html#quest_template-id) +- - ConditionValue1: Quest [id](http://www.azerothcore.org/wiki/quest_template#id) - ConditionValue2: Always 0 - ConditionValue3: always 0 @@ -1463,13 +1436,13 @@ Note: it will show or hide spells in vehicle spell bar. \***CONDITION\_NEAR\_CREATURE = 29** -- - ConditionValue1: Creature [entry](creature_template_2130008.html#creature_template-entry) +- - ConditionValue1: Creature [entry](http://www.azerothcore.org/wiki/creature_template#creature_template-entry) - ConditionValue2: Distance (yd) - ConditionValue3: 0 = Alive , 1 = Dead \***CONDITION\_NEAR\_GAMEOBJECT = 30** -- - ConditionValue1: Gameobject [entry](gameobject_template_2130143.html#gameobject_template-entry) +- - ConditionValue1: Gameobject [entry](http://www.azerothcore.org/wiki/gameobject_template#entry) - ConditionValue2: Distance (yd) - ConditionValue3: always 0 @@ -1482,8 +1455,8 @@ Note: it will show or hide spells in vehicle spell bar. - 7 - TYPEID\_CORPSE (player corpse, after released spirit) - ConditionValue2: Entry - 0 for any object of given type - - [Gameobject entry](gameobject_template_2130143.html#gameobject_template-entry) for TypeID = TYPEID\_GAMEOBJECT - - [Creature entry](creature_template_2130008.html#creature_template-entry) for TypeID = TYPEID\_UNIT + - [Gameobject entry](http://www.azerothcore.org/wiki/gameobject_template#entry) for TypeID = TYPEID\_GAMEOBJECT + - [Creature entry](http://www.azerothcore.org/wiki/creature_template#creature_template-entry) for TypeID = TYPEID\_UNIT - ConditionValue3 0 for any object of given type, any other value to match that guid \***CONDITION\_TYPE\_MASK= 32** -- cgit