2 * Copyright (C) 2005-2009 MaNGOS <http://getmangos.com/>
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 #ifndef MANGOS_DBCSTRUCTURE_H
20 #define MANGOS_DBCSTRUCTURE_H
23 #include "Platform/Define.h"
29 // Structures using to access raw DBC data and required packing to portability
31 // GCC have alternative #pragma pack(N) syntax and old gcc version not support pack(push,N), also any gcc version not support it at some platform
32 #if defined( __GNUC__ )
38 struct AchievementEntry
41 uint32 factionFlag
; // 1 -1=all, 0=horde, 1=alliance
42 uint32 mapID
; // 2 -1=none
43 //uint32 parentAchievement; // 3 its Achievement parent (can`t start while parent uncomplete, use its Criteria if don`t have own, use its progress on begin)
44 //char *name[16]; // 4-19
45 //uint32 name_flags; // 20
46 //char *description[16]; // 21-36
47 //uint32 desc_flags; // 37
48 uint32 categoryId
; // 38
49 uint32 points
; // 39 reward points
50 //uint32 OrderInCategory; // 40
52 //uint32 icon; // 42 icon (from SpellIcon.dbc)
53 //char *titleReward[16]; // 43-58
54 //uint32 titleReward_flags; // 59
55 uint32 count
; // 60 - need this count of completed criterias (own or referenced achievement criterias)
56 uint32 refAchievement
; // 61 - referenced achievement (counting of all completed criterias)
59 struct AchievementCategoryEntry
62 uint32 parentCategory
; // 1 -1 for main category
63 //char *name[16]; // 2-17
64 //uint32 name_flags; // 18
65 //uint32 sortOrder; // 19
68 struct AchievementCriteriaEntry
71 uint32 referredAchievement
; // 1
72 uint32 requiredType
; // 2
75 // ACHIEVEMENT_CRITERIA_TYPE_KILL_CREATURE = 0
76 // TODO: also used for player deaths..
79 uint32 creatureID
; // 3
80 uint32 creatureCount
; // 4
83 // ACHIEVEMENT_CRITERIA_TYPE_WIN_BG = 1
84 // TODO: there are further criterias instead just winning
91 // ACHIEVEMENT_CRITERIA_TYPE_REACH_LEVEL = 5
98 // ACHIEVEMENT_CRITERIA_TYPE_REACH_SKILL_LEVEL = 7
102 uint32 skillLevel
; // 4
105 // ACHIEVEMENT_CRITERIA_TYPE_COMPLETE_ACHIEVEMENT = 8
108 uint32 linkedAchievement
; // 3
109 } complete_achievement
;
111 // ACHIEVEMENT_CRITERIA_TYPE_COMPLETE_QUEST_COUNT = 9
115 uint32 totalQuestCount
; // 4
116 } complete_quest_count
;
118 // ACHIEVEMENT_CRITERIA_TYPE_COMPLETE_DAILY_QUEST_DAILY = 10
122 uint32 numberOfDays
; // 4
123 } complete_daily_quest_daily
;
125 // ACHIEVEMENT_CRITERIA_TYPE_COMPLETE_QUESTS_IN_ZONE = 11
129 uint32 questCount
; // 4
130 } complete_quests_in_zone
;
132 // ACHIEVEMENT_CRITERIA_TYPE_COMPLETE_DAILY_QUEST = 14
136 uint32 questCount
; // 4
137 } complete_daily_quest
;
139 // ACHIEVEMENT_CRITERIA_TYPE_COMPLETE_BATTLEGROUND = 15
143 } complete_battleground
;
145 // ACHIEVEMENT_CRITERIA_TYPE_DEATH_AT_MAP = 16
151 // ACHIEVEMENT_CRITERIA_TYPE_DEATH_IN_DUNGEON = 18
154 uint32 manLimit
; // 3
157 // ACHIEVEMENT_CRITERIA_TYPE_COMPLETE_RAID = 19
160 uint32 groupSize
; // 3 can be 5, 10 or 25
163 // ACHIEVEMENT_CRITERIA_TYPE_KILLED_BY_CREATURE = 20
166 uint32 creatureEntry
; // 3
167 } killed_by_creature
;
169 // ACHIEVEMENT_CRITERIA_TYPE_FALL_WITHOUT_DYING = 24
173 uint32 fallHeight
; // 4
174 } fall_without_dying
;
176 // ACHIEVEMENT_CRITERIA_TYPE_DEATHS_FROM = 26
179 uint32 type
; // 3, see enum EnviromentalDamage
182 // ACHIEVEMENT_CRITERIA_TYPE_COMPLETE_QUEST = 27
186 uint32 questCount
; // 4
189 // ACHIEVEMENT_CRITERIA_TYPE_BE_SPELL_TARGET = 28
190 // ACHIEVEMENT_CRITERIA_TYPE_BE_SPELL_TARGET2 = 69
194 uint32 spellCount
; // 4
197 // ACHIEVEMENT_CRITERIA_TYPE_CAST_SPELL = 29
198 // ACHIEVEMENT_CRITERIA_TYPE_CAST_SPELL2 = 110
202 uint32 castCount
; // 4
205 // ACHIEVEMENT_CRITERIA_TYPE_HONORABLE_KILL_AT_AREA = 31
208 uint32 areaID
; // 3 Reference to AreaTable.dbc
209 uint32 killCount
; // 4
210 } honorable_kill_at_area
;
212 // ACHIEVEMENT_CRITERIA_TYPE_WIN_ARENA = 32
215 uint32 mapID
; // 3 Reference to Map.dbc
218 // ACHIEVEMENT_CRITERIA_TYPE_PLAY_ARENA = 33
221 uint32 mapID
; // 3 Reference to Map.dbc
224 // ACHIEVEMENT_CRITERIA_TYPE_LEARN_SPELL = 34
227 uint32 spellID
; // 3 Reference to Map.dbc
230 // ACHIEVEMENT_CRITERIA_TYPE_OWN_ITEM = 36
234 uint32 itemCount
; // 4
237 // ACHIEVEMENT_CRITERIA_TYPE_WIN_RATED_ARENA = 37
242 uint32 flag
; // 5 4=in a row
245 // ACHIEVEMENT_CRITERIA_TYPE_HIGHEST_TEAM_RATING = 38
248 uint32 teamtype
; // 3 {2,3,5}
249 } highest_team_rating
;
251 // ACHIEVEMENT_CRITERIA_TYPE_REACH_TEAM_RATING = 39
254 uint32 teamtype
; // 3 {2,3,5}
255 uint32 teamrating
; // 4
258 // ACHIEVEMENT_CRITERIA_TYPE_LEARN_SKILL_LEVEL = 40
262 uint32 skillLevel
; // 4 apprentice=1, journeyman=2, expert=3, artisan=4, master=5, grand master=6
265 // ACHIEVEMENT_CRITERIA_TYPE_USE_ITEM = 41
269 uint32 itemCount
; // 4
272 // ACHIEVEMENT_CRITERIA_TYPE_LOOT_ITEM = 42
276 uint32 itemCount
; // 4
279 // ACHIEVEMENT_CRITERIA_TYPE_EXPLORE_AREA = 43
282 // TODO: This rank is _NOT_ the index from AreaTable.dbc
283 uint32 areaReference
; // 3
286 // ACHIEVEMENT_CRITERIA_TYPE_OWN_RANK = 44
289 // TODO: This rank is _NOT_ the index from CharTitles.dbc
293 // ACHIEVEMENT_CRITERIA_TYPE_BUY_BANK_SLOT = 45
297 uint32 numberOfSlots
; // 4
300 // ACHIEVEMENT_CRITERIA_TYPE_GAIN_REPUTATION = 46
303 uint32 factionID
; // 3
304 uint32 reputationAmount
; // 4 Total reputation amount, so 42000 = exalted
307 // ACHIEVEMENT_CRITERIA_TYPE_GAIN_EXALTED_REPUTATION= 47
311 uint32 numberOfExaltedFactions
; // 4
312 } gain_exalted_reputation
;
314 // ACHIEVEMENT_CRITERIA_TYPE_VISIT_BARBER_SHOP = 48
318 uint32 numberOfVisits
; // 4
321 // ACHIEVEMENT_CRITERIA_TYPE_EQUIP_EPIC_ITEM = 49
322 // TODO: where is the required itemlevel stored?
325 uint32 itemSlot
; // 3
328 // ACHIEVEMENT_CRITERIA_TYPE_ROLL_NEED_ON_LOOT = 50
331 uint32 rollValue
; // 3
334 // ACHIEVEMENT_CRITERIA_TYPE_ROLL_GREED_ON_LOOT = 51
337 uint32 rollValue
; // 3
339 } roll_greed_on_loot
;
341 // ACHIEVEMENT_CRITERIA_TYPE_HK_CLASS = 52
348 // ACHIEVEMENT_CRITERIA_TYPE_HK_RACE = 53
355 // ACHIEVEMENT_CRITERIA_TYPE_DO_EMOTE = 54
356 // TODO: where is the information about the target stored?
359 uint32 emoteID
; // 3 enum TextEmotes
360 uint32 count
; // 4 count of emotes, always required special target or requirements
362 // ACHIEVEMENT_CRITERIA_TYPE_DAMAGE_DONE = 13
363 // ACHIEVEMENT_CRITERIA_TYPE_HEALING_DONE = 55
364 // ACHIEVEMENT_CRITERIA_TYPE_GET_KILLING_BLOWS = 56
369 uint32 flag
; // 5 =3 for battleground healing
373 // ACHIEVEMENT_CRITERIA_TYPE_EQUIP_ITEM = 57
380 // ACHIEVEMENT_CRITERIA_TYPE_MONEY_FROM_QUEST_REWARD= 62
384 uint32 goldInCopper
; // 4
385 } quest_reward_money
;
388 // ACHIEVEMENT_CRITERIA_TYPE_LOOT_MONEY = 67
392 uint32 goldInCopper
; // 4
395 // ACHIEVEMENT_CRITERIA_TYPE_USE_GAMEOBJECT = 68
399 uint32 useCount
; // 4
402 // ACHIEVEMENT_CRITERIA_TYPE_SPECIAL_PVP_KILL = 70
403 // TODO: are those special criteria stored in the dbc or do we have to add another sql table?
407 uint32 killCount
; // 4
410 // ACHIEVEMENT_CRITERIA_TYPE_FISH_IN_GAMEOBJECT = 72
414 uint32 lootCount
; // 4
415 } fish_in_gameobject
;
417 // ACHIEVEMENT_CRITERIA_TYPE_LEARN_SKILLLINE_SPELLS = 75
420 uint32 skillLine
; // 3
421 uint32 spellCount
; // 4
422 } learn_skillline_spell
;
424 // ACHIEVEMENT_CRITERIA_TYPE_WIN_DUEL = 76
428 uint32 duelCount
; // 4
431 // ACHIEVEMENT_CRITERIA_TYPE_HIGHEST_POWER = 96
434 uint32 powerType
; // 3 mana=0, 1=rage, 3=energy, 6=runic power
437 // ACHIEVEMENT_CRITERIA_TYPE_HIGHEST_STAT = 97
440 uint32 statType
; // 3 4=spirit, 3=int, 2=stamina, 1=agi, 0=strength
443 // ACHIEVEMENT_CRITERIA_TYPE_HIGHEST_SPELLPOWER = 98
446 uint32 spellSchool
; // 3
447 } highest_spellpower
;
449 // ACHIEVEMENT_CRITERIA_TYPE_HIGHEST_RATING = 100
452 uint32 ratingType
; // 3
455 // ACHIEVEMENT_CRITERIA_TYPE_LOOT_TYPE = 109
458 uint32 lootType
; // 3 3=fishing, 2=pickpocket, 4=disentchant
459 uint32 lootTypeCount
; // 4
462 // ACHIEVEMENT_CRITERIA_TYPE_LEARN_SKILL_LINE = 112
465 uint32 skillLine
; // 3
466 uint32 spellCount
; // 4
469 // ACHIEVEMENT_CRITERIA_TYPE_EARN_HONORABLE_KILL = 113
473 uint32 killCount
; // 4
478 uint32 field3
; // 3 main requirement
479 uint32 count
; // 4 main requirement count
480 uint32 additionalRequirement1_type
; // 5 additional requirement 1 type
481 uint32 additionalRequirement1_value
; // 6 additional requirement 1 value
482 uint32 additionalRequirement2_type
; // 7 additional requirement 2 type
483 uint32 additionalRequirement2_value
; // 8 additional requirement 1 value
486 //char* name[16]; // 9-24
487 //uint32 name_flags; // 25
488 uint32 completionFlag
; // 26
489 uint32 groupFlag
; // 27
490 //uint32 unk1; // 28 Alway appears with timed events
491 // for timed spells it is spell id for
492 // timed kills it is creature id
493 uint32 timeLimit
; // 29 time limit in seconds
494 //uint32 showOrder; // 30 show order
497 struct AreaTableEntry
501 uint32 zone
; // 2 if 0 then it's zone, else it's zone id of this area
502 uint32 exploreFlag
; // 3, main index
503 uint32 flags
; // 4, unknown value but 312 for all cities
505 int32 area_level
; // 10
506 char* area_name
[16]; // 11-26
507 // 27, string flags, unused
511 struct AreaGroupEntry
513 uint32 AreaGroupId
; // 0
514 uint32 AreaId
[6]; // 1-6
515 uint32 nextGroup
; // 7 index of next group
518 struct AreaTriggerEntry
521 uint32 mapid
; // 1 m_ContinentID
525 float radius
; // 5 m_radius
526 float box_x
; // 6 m_box_length
527 float box_y
; // 7 m_box_width
528 float box_z
; // 8 m_box_heigh
529 float box_orientation
; // 9 m_box_yaw
532 struct AuctionHouseEntry
534 uint32 houseId
; // 0 index
535 uint32 faction
; // 1 id of faction.dbc for player factions associated with city
536 uint32 depositPercent
; // 2 1/3 from real
537 uint32 cutPercent
; // 3
538 //char* name[16]; // 4-19
539 // 20 string flag, unused
542 struct BankBagSlotPricesEntry
548 struct BarberShopStyleEntry
551 uint32 type
; // 1 value 0 -> hair, value 2 -> facialhair
552 //char* name[16]; // 2-17 name of hair style
553 //uint32 name_flags; // 18
554 //uint32 unk_name[16]; // 19-34, all empty
555 //uint32 unk_flags; // 35
556 //float CostMultiplier; // 36 values 1 and 0.75
557 uint32 race
; // 37 race
558 uint32 gender
; // 38 0 -> male, 1 -> female
559 uint32 hair_id
; // 39 real ID to hair/facial hair
562 struct BattlemasterListEntry
565 int32 mapid
[8]; // 1-8 mapid
566 uint32 type
; // 9 (3 - BG, 4 - arena)
569 uint32 maxplayersperteam
; // 12
573 char* name
[16]; // 16-31
574 // 32 string flag, unused
576 //uint32 unk; // 34 new 3.1
579 #define MAX_OUTFIT_ITEMS 24
581 struct CharStartOutfitEntry
584 uint32 RaceClassGender
; // 1 (UNIT_FIELD_BYTES_0 & 0x00FFFFFF) comparable (0 byte = race, 1 byte = class, 2 byte = gender)
585 int32 ItemId
[MAX_OUTFIT_ITEMS
]; // 2-13
586 //int32 ItemDisplayId[MAX_OUTFIT_ITEMS]; // 14-25 not required at server side
587 //int32 ItemInventorySlot[MAX_OUTFIT_ITEMS]; // 26-37 not required at server side
588 //uint32 Unknown1; // 38, unique values (index-like with gaps ordered in other way as ids)
589 //uint32 Unknown2; // 39
590 //uint32 Unknown3; // 40
593 struct CharTitlesEntry
595 uint32 ID
; // 0, title ids, for example in Quest::GetCharTitleId()
596 //uint32 unk1; // 1 flags?
597 //char* name[16]; // 2-17, unused
598 // 18 string flag, unused
599 //char* name2[16]; // 19-34, unused
600 // 35 string flag, unused
601 uint32 bit_index
; // 36 used in PLAYER_CHOSEN_TITLE and 1<<index in PLAYER__FIELD_KNOWN_TITLES
604 struct ChatChannelsEntry
606 uint32 ChannelID
; // 0
608 char* pattern
[16]; // 3-18
609 // 19 string flags, unused
610 //char* name[16]; // 20-35 unused
611 // 36 string flag, unused
614 struct ChrClassesEntry
618 uint32 powerType
; // 2
620 //char* name[16]; // 5-20 unused
621 // 21 string flag, unused
622 //char* nameFemale[16]; // 21-36 unused, if different from base (male) case
623 // 37 string flag, unused
624 //char* nameNeutralGender[16]; // 38-53 unused, if different from base (male) case
625 // 54 string flag, unused
627 uint32 spellfamily
; // 56
629 uint32 CinematicSequence
; // 58 id from CinematicSequences.dbc
630 uint32 addon
; // 59 (0 - original race, 1 - tbc addon, ...)
637 uint32 FactionID
; // 2 facton template id
642 uint32 TeamID
; // 8 (7-Alliance 1-Horde)
644 uint32 CinematicSequence
; // 13 id from CinematicSequences.dbc
645 char* name
[16]; // 14-29 used for DBC language detection/selection
646 // 30 string flags, unused
647 //char* nameFemale[16]; // 31-46, if different from base (male) case
648 // 47 string flags, unused
649 //char* nameNeutralGender[16]; // 48-63, if different from base (male) case
650 // 64 string flags, unused
652 uint32 addon
; // 68 (0 - original race, 1 - tbc addon, ...)
656 struct CinematicCameraEntry
658 uint32 id; // 0 index
660 uint32 soundid; // 2 in SoundEntries.dbc or 0
664 float unk6; // 6 speed?
668 struct CinematicSequencesEntry
670 uint32 Id
; // 0 index
671 //uint32 unk1; // 1 always 0
672 //uint32 cinematicCamera; // 2 id in CinematicCamera.dbc
676 struct CreatureDisplayInfoEntry
678 uint32 Displayid
; // 0 m_ID
681 // 3 m_extendedDisplayInfoID
682 float scale
; // 4 m_creatureModelScale
683 // 5 m_creatureModelAlpha
684 // 6-8 m_textureVariation[3]
685 // 9 m_portraitTextureName
689 // 13 m_particleColorID
690 // 14 m_creatureGeosetData
691 // 15 m_objectEffectPackageID
694 struct CreatureFamilyEntry
697 float minScale
; // 1 m_minScale
698 uint32 minScaleLevel
; // 2 m_minScaleLevel
699 float maxScale
; // 3 m_maxScale
700 uint32 maxScaleLevel
; // 4 m_maxScaleLevel
701 uint32 skillLine
[2]; // 5-6 m_skillLine
702 uint32 petFoodMask
; // 7 m_petFoodMask
703 int32 petTalentType
; // 8 m_petTalentType
704 // 9 m_categoryEnumID
705 char* Name
[16]; // 10-25 m_name_lang
710 #define MAX_CREATURE_SPELL_DATA_SLOT 4
712 struct CreatureSpellDataEntry
715 uint32 spellId
[MAX_CREATURE_SPELL_DATA_SLOT
]; // 1-4 m_spells[4]
716 //uint32 availability[MAX_CREATURE_SPELL_DATA_SLOT]; // 4-7 m_availability[4]
719 struct CreatureTypeEntry
722 //char* Name[16]; // 1-16 name
724 //uint32 no_expirience; // 18 no exp? critters, non-combat pets, gas cloud.
728 struct CurrencyCategoryEntry
731 uint32 Unk1; // 1 0 for known categories and 3 for unknown one (3.0.9)
732 char* Name[16]; // 2-17 name
733 // // 18 string flags
737 struct CurrencyTypesEntry
739 //uint32 ID; // 0 not used
740 uint32 ItemId
; // 1 used as real index
741 //uint32 Category; // 2 may be category
742 uint32 BitIndex
; // 3 bit index in PLAYER_FIELD_KNOWN_CURRENCIES (1 << (index-1))
745 struct DurabilityCostsEntry
748 uint32 multiplier
[29]; // 1-29
751 struct DurabilityQualityEntry
754 float quality_mod
; // 1
760 //char* Name; // 1, internal name
761 //uint32 AnimationId; // 2, ref to animationData
762 uint32 Flags
; // 3, bitmask, may be unit_flags
763 uint32 EmoteType
; // 4, Can be 0, 1 or 2 (determine how emote are shown)
764 uint32 UnitStandState
; // 5, uncomfirmed, may be enum UnitStandStateType
765 //uint32 SoundId; // 6, ref to soundEntries
768 struct EmotesTextEntry
777 int32 reputationListID
; // 1 m_reputationIndex
778 uint32 BaseRepRaceMask
[4]; // 2-5 m_reputationRaceMask
779 uint32 BaseRepClassMask
[4]; // 6-9 m_reputationClassMask
780 int32 BaseRepValue
[4]; // 10-13 m_reputationBase
781 uint32 ReputationFlags
[4]; // 14-17 m_reputationFlags
782 uint32 team
; // 18 m_parentFactionID
783 char* name
[16]; // 19-34 m_name_lang
785 //char* description[16]; // 36-51 m_description_lang
789 struct FactionTemplateEntry
792 uint32 faction
; // 1 m_faction
793 uint32 factionFlags
; // 2 m_flags
794 uint32 ourMask
; // 3 m_factionGroup
795 uint32 friendlyMask
; // 4 m_friendGroup
796 uint32 hostileMask
; // 5 m_enemyGroup
797 uint32 enemyFaction
[4]; // 6 m_enemies[4]
798 uint32 friendFaction
[4]; // 10 m_friend[4]
799 //------------------------------------------------------- end structure
802 bool IsFriendlyTo(FactionTemplateEntry
const& entry
) const
806 for(int i
= 0; i
< 4; ++i
)
807 if (enemyFaction
[i
] == entry
.faction
)
809 for(int i
= 0; i
< 4; ++i
)
810 if (friendFaction
[i
] == entry
.faction
)
813 return (friendlyMask
& entry
.ourMask
) || (ourMask
& entry
.friendlyMask
);
815 bool IsHostileTo(FactionTemplateEntry
const& entry
) const
819 for(int i
= 0; i
< 4; ++i
)
820 if (enemyFaction
[i
] == entry
.faction
)
822 for(int i
= 0; i
< 4; ++i
)
823 if (friendFaction
[i
] == entry
.faction
)
826 return (hostileMask
& entry
.ourMask
) != 0;
828 bool IsHostileToPlayers() const { return (hostileMask
& FACTION_MASK_PLAYER
) !=0; }
829 bool IsNeutralToAll() const
831 for(int i
= 0; i
< 4; ++i
)
832 if (enemyFaction
[i
] != 0)
834 return hostileMask
== 0 && friendlyMask
== 0;
836 bool IsContestedGuardFaction() const { return (factionFlags
& FACTION_TEMPLATE_FLAG_CONTESTED_GUARD
)!=0; }
839 struct GameObjectDisplayInfoEntry
841 uint32 Displayid
; // 0 m_ID
842 // char* filename; // 1
843 // uint32 unknown2[10]; // 2-11 unknown data
844 // float unknown12[6]; // 12-17 unknown data
845 // uint32 unknown18; // 18 unknown data
848 struct GemPropertiesEntry
851 uint32 spellitemenchantement
;
855 struct GlyphPropertiesEntry
860 uint32 Unk1
; // GlyphIconId (SpellIcon.dbc)
863 struct GlyphSlotEntry
870 // All Gt* DBC store data for 100 levels, some by 100 per class/race
871 #define GT_MAX_LEVEL 100
873 struct GtBarberShopCostBaseEntry
878 struct GtCombatRatingsEntry
883 struct GtChanceToMeleeCritBaseEntry
888 struct GtChanceToMeleeCritEntry
893 struct GtChanceToSpellCritBaseEntry
898 struct GtChanceToSpellCritEntry
903 struct GtOCTRegenHPEntry
908 //struct GtOCTRegenMPEntry
913 struct GtRegenHPPerSptEntry
918 struct GtRegenMPPerSptEntry
924 struct HolidayDescriptionsEntry
926 uint32 ID; // 0, this is NOT holiday id
927 //char* name[16] // 1-16 m_name_lang
933 struct HolidayNamesEntry
935 uint32 ID; // 0, this is NOT holiday id
936 //char* name[16] // 1-16 m_name_lang
943 uint32 ID
; // 0, holiday id
946 //uint32 unk3[8] // 3-10, empty fields
947 //uint32 unk11[13] // 11-23, some unknown data (bit strings?)
948 //uint32 unk11[13] // 24-36, some empty fields (continue prev?)
949 //uint32 unk11[12] // 37-48, counters?
950 //uint32 holidayNameId; // 49, id for HolidayNames.dbc
951 //uint32 holidayDescriptionId; // 50, id for HolidayDescriptions.dbc
952 //uint32 unk51; // 51
953 //uint32 unk52; // 52
954 //uint32 unk53; // 53
955 //uint32 unk54; // 54
962 uint32 SubClass
; // 2 some items have strnage subclasses
965 uint32 DisplayId
; // 5
966 uint32 InventoryType
; // 6
970 struct ItemBagFamilyEntry
973 //char* name[16] // 1-16 m_name_lang
977 struct ItemDisplayInfoEntry
981 // 2 m_modelTexture[2]
983 // 4 m_geosetGroup[3]
986 // 7 m_groupSoundIndex
987 // 8 m_helmetGeosetVis[2]
989 // 10 m_itemVisual[8]
990 // 11 m_particleColorID
993 //struct ItemCondExtCostsEntry
996 // uint32 condExtendedCost; // ItemPrototype::CondExtendedCost
997 // uint32 itemextendedcostentry; // ItemPrototype::ExtendedCost
998 // uint32 arenaseason; // arena season number(1-4)
1001 struct ItemExtendedCostEntry
1003 uint32 ID
; // 0 extended-cost entry id
1004 uint32 reqhonorpoints
; // 1 required honor points
1005 uint32 reqarenapoints
; // 2 required arena points
1006 uint32 reqitem
[5]; // 3-7 required item id
1007 uint32 reqitemcount
[5]; // 8-12 required count of 1st item
1008 uint32 reqpersonalarenarating
; // 13 required personal arena rating
1011 struct ItemLimitCategoryEntry
1014 //char* name[16] // 1-16 m_name_lang
1016 uint32 maxCount
; // 18, max allowed equipped as item or in gem slot
1017 //uint32 unk; // 19, 1 for gems only...
1020 struct ItemRandomPropertiesEntry
1022 uint32 ID
; // 0 m_ID
1023 //char* internalName // 1 m_Name
1024 uint32 enchant_id
[5]; // 2-6 m_Enchantment
1025 //char* nameSuffix[16] // 7-22 m_name_lang
1029 struct ItemRandomSuffixEntry
1031 uint32 ID
; // 0 m_ID
1032 //char* name[16] // 1-16 m_name_lang
1034 // 18 m_internalName
1035 uint32 enchant_id
[5]; // 19-21 m_enchantment
1036 uint32 prefix
[5]; // 22-24 m_allocationPct
1041 //uint32 id // 0 m_ID
1042 char* name
[16]; // 1-16 m_name_lang
1043 // 17 string flags, unused
1044 //uint32 itemId[17]; // 18-34 m_itemID
1045 uint32 spells
[8]; // 35-42 m_setSpellID
1046 uint32 items_to_triggerspell
[8]; // 43-50 m_setThreshold
1047 uint32 required_skill_id
; // 51 m_requiredSkill
1048 uint32 required_skill_value
; // 52 m_requiredSkillRank
1051 #define MAX_LOCK_CASE 8
1055 uint32 ID
; // 0 m_ID
1056 uint32 Type
[MAX_LOCK_CASE
]; // 1-8 m_Type
1057 uint32 Index
[MAX_LOCK_CASE
]; // 9-16 m_Index
1058 uint32 Skill
[MAX_LOCK_CASE
]; // 17-24 m_Skill
1059 //uint32 Action[MAX_LOCK_CASE]; // 25-32 m_Action
1062 struct MailTemplateEntry
1065 //char* subject[16]; // 1-16
1066 // 17 name flags, unused
1067 //char* content[16]; // 18-33
1073 //char* internalname; // 1 unused
1074 uint32 map_type
; // 2
1075 // 3 0 or 1 for battlegrounds (not arenas)
1076 char* name
[16]; // 4-19
1077 // 20 name flags, unused
1078 uint32 linked_zone
; // 21 common zone for instance and continent map
1079 //char* hordeIntro[16]; // 23-37 text for PvP Zones
1080 // 38 intro text flags
1081 //char* allianceIntro[16]; // 39-54 text for PvP Zones
1082 // 55 intro text flags
1083 uint32 multimap_id
; // 56
1085 //chat* unknownText1[16]; // 58-73 unknown empty text fields, possible normal Intro text.
1087 //chat* heroicIntroText[16]; // 75-90 heroic mode requirement text
1089 //chat* unknownText2[16]; // 92-107 unknown empty text fields
1091 int32 entrance_map
; // 109 map_id of entrance map
1092 float entrance_x
; // 110 entrance x coordinate (if exist single entry)
1093 float entrance_y
; // 111 entrance y coordinate (if exist single entry)
1094 uint32 resetTimeRaid
; // 112
1095 uint32 resetTimeHeroic
; // 113
1097 // 115 -1, 0 and 720
1098 uint32 addon
; // 116 (0-original maps,1-tbc addon)
1099 // 117 some kind of time?
1102 uint32
Expansion() const { return addon
; }
1104 bool IsDungeon() const { return map_type
== MAP_INSTANCE
|| map_type
== MAP_RAID
; }
1105 bool IsNonRaidDungeon() const { return map_type
== MAP_INSTANCE
; }
1106 bool Instanceable() const { return map_type
== MAP_INSTANCE
|| map_type
== MAP_RAID
|| map_type
== MAP_BATTLEGROUND
|| map_type
== MAP_ARENA
; }
1107 bool IsRaid() const { return map_type
== MAP_RAID
; }
1108 bool IsBattleGround() const { return map_type
== MAP_BATTLEGROUND
; }
1109 bool IsBattleArena() const { return map_type
== MAP_ARENA
; }
1110 bool IsBattleGroundOrArena() const { return map_type
== MAP_BATTLEGROUND
|| map_type
== MAP_ARENA
; }
1111 bool SupportsHeroicMode() const { return resetTimeHeroic
!= 0; }
1112 bool HasResetTime() const { return resetTimeHeroic
|| resetTimeRaid
; }
1114 bool IsMountAllowed() const
1116 return !IsDungeon() ||
1117 MapID
==209 || MapID
==269 || MapID
==309 || // TanarisInstance, CavernsOfTime, Zul'gurub
1118 MapID
==509 || MapID
==534 || MapID
==560 || // AhnQiraj, HyjalPast, HillsbradPast
1119 MapID
==568 || MapID
==580 || MapID
==615 || // ZulAman, Sunwell Plateau, Obsidian Sanctrum
1120 MapID
==616; // Eye Of Eternity
1123 bool IsContinent() const
1125 return MapID
== 0 || MapID
== 1 || MapID
== 530 || MapID
== 571;
1131 uint32 Id
; // 0 index
1132 //char* filename; // 1
1133 //uint32 unk2; // 2 always 100
1136 struct QuestSortEntry
1138 uint32 id
; // 0 m_ID
1139 //char* name[16]; // 1-16 m_SortName_lang
1143 struct RandomPropertiesPointsEntry
1145 //uint32 Id; // 0 hidden key
1146 uint32 itemLevel
; // 1
1147 uint32 EpicPropertiesPoints
[5]; // 2-6
1148 uint32 RarePropertiesPoints
[5]; // 7-11
1149 uint32 UncommonPropertiesPoints
[5]; // 12-16
1152 struct ScalingStatDistributionEntry
1156 uint32 Modifier
[10];
1160 struct ScalingStatValuesEntry
1164 uint32 ssdMultiplier
[5]; // Multiplier for ScalingStatDistribution
1165 uint32 armorMod
[4]; // Armor for level
1166 uint32 dpsMod
[6]; // DPS mod for level
1167 uint32 spellBonus
; // not sure.. TODO: need more info about
1168 uint32 feralBonus
; // Feral AP bonus
1170 uint32
getssdMultiplier(uint32 mask
) const
1174 if(mask
& 0x00000001) return ssdMultiplier
[0];
1175 if(mask
& 0x00000002) return ssdMultiplier
[1];
1176 if(mask
& 0x00000004) return ssdMultiplier
[2];
1177 if(mask
& 0x00000008) return ssdMultiplier
[3];
1178 if(mask
& 0x00000010) return ssdMultiplier
[4];
1182 uint32
getArmorMod(uint32 mask
) const
1186 if(mask
& 0x00000020) return armorMod
[0];
1187 if(mask
& 0x00000040) return armorMod
[1];
1188 if(mask
& 0x00000080) return armorMod
[2];
1189 if(mask
& 0x00000100) return armorMod
[3];
1193 uint32
getDPSMod(uint32 mask
) const
1197 if(mask
& 0x00000200) return dpsMod
[0];
1198 if(mask
& 0x00000400) return dpsMod
[1];
1199 if(mask
& 0x00000800) return dpsMod
[2];
1200 if(mask
& 0x00001000) return dpsMod
[3];
1201 if(mask
& 0x00002000) return dpsMod
[4];
1202 if(mask
& 0x00004000) return dpsMod
[5];
1206 uint32
getSpellBonus(uint32 mask
) const
1208 if (mask
& 0x00008000) return spellBonus
;
1211 uint32
getFeralBonus(uint32 mask
) const
1213 if (mask
& 0x00010000) return feralBonus
;
1218 //struct SkillLineCategoryEntry{
1219 // uint32 id; // 0 m_ID
1220 // char* name[16]; // 1-17 m_name_lang
1221 // // 18 string flag
1222 // uint32 displayOrder; // 19 m_sortIndex
1225 //struct SkillRaceClassInfoEntry{
1226 // uint32 id; // 0 m_ID
1227 // uint32 skillId; // 1 m_skillID
1228 // uint32 raceMask; // 2 m_raceMask
1229 // uint32 classMask; // 3 m_classMask
1230 // uint32 flags; // 4 m_flags
1231 // uint32 reqLevel; // 5 m_minLevel
1232 // uint32 skillTierId; // 6 m_skillTierID
1233 // uint32 skillCostID; // 7 m_skillCostIndex
1236 //struct SkillTiersEntry{
1237 // uint32 id; // 0 m_ID
1238 // uint32 skillValue[16]; // 1-17 m_cost
1239 // uint32 maxSkillValue[16]; // 18-32 m_valueMax
1242 struct SkillLineEntry
1244 uint32 id
; // 0 m_ID
1245 int32 categoryId
; // 1 m_categoryID
1246 //uint32 skillCostID; // 2 m_skillCostsID
1247 char* name
[16]; // 3-18 m_displayName_lang
1249 //char* description[16]; // 20-35 m_description_lang
1251 uint32 spellIcon
; // 37 m_spellIconID
1252 //char* alternateVerb[16]; // 38-53 m_alternateVerb_lang
1254 uint32 canLink
; // 55 m_canLink (prof. with recipes
1257 struct SkillLineAbilityEntry
1259 uint32 id
; // 0 m_ID
1260 uint32 skillId
; // 1 m_skillLine
1261 uint32 spellId
; // 2 m_spell
1262 uint32 racemask
; // 3 m_raceMask
1263 uint32 classmask
; // 4 m_classMask
1264 //uint32 racemaskNot; // 5 m_excludeRace
1265 //uint32 classmaskNot; // 6 m_excludeClass
1266 uint32 req_skill_value
; // 7 m_minSkillLineRank
1267 uint32 forward_spellid
; // 8 m_supercededBySpell
1268 uint32 learnOnGetSkill
; // 9 m_acquireMethod
1269 uint32 max_value
; // 10 m_trivialSkillLineRankHigh
1270 uint32 min_value
; // 11 m_trivialSkillLineRankLow
1271 //uint32 characterPoints[2]; // 12-13 m_characterPoints[2]
1274 struct SoundEntriesEntry
1276 uint32 Id
; // 0 m_ID
1277 //uint32 Type; // 1 m_soundType
1278 //char* InternalName; // 2 m_name
1279 //char* FileName[10]; // 3-12 m_File[10]
1280 //uint32 Unk13[10]; // 13-22 m_Freq[10]
1281 //char* Path; // 23 m_DirectoryBase
1285 // 27 m_distanceCutoff
1292 uint32 Id
; // 0 m_ID
1293 uint32 Category
; // 1 m_category
1294 uint32 Dispel
; // 2 m_dispelType
1295 uint32 Mechanic
; // 3 m_mechanic
1296 uint32 Attributes
; // 4 m_attribute
1297 uint32 AttributesEx
; // 5 m_attributesEx
1298 uint32 AttributesEx2
; // 6 m_attributesExB
1299 uint32 AttributesEx3
; // 7 m_attributesExC
1300 uint32 AttributesEx4
; // 8 m_attributesExD
1301 uint32 AttributesEx5
; // 9 m_attributesExE
1302 //uint32 AttributesEx6; // 10 m_attributesExF not used
1303 uint32 Stances
; // 11 m_shapeshiftMask
1304 uint32 StancesNot
; // 12 m_shapeshiftExclude
1305 uint32 Targets
; // 13 m_targets
1306 uint32 TargetCreatureType
; // 14 m_targetCreatureType
1307 uint32 RequiresSpellFocus
; // 15 m_requiresSpellFocus
1308 uint32 FacingCasterFlags
; // 16 m_facingCasterFlags
1309 uint32 CasterAuraState
; // 17 m_casterAuraState
1310 uint32 TargetAuraState
; // 18 m_targetAuraState
1311 uint32 CasterAuraStateNot
; // 19 m_excludeCasterAuraState
1312 uint32 TargetAuraStateNot
; // 20 m_excludeTargetAuraState
1313 uint32 casterAuraSpell
; // 21 m_casterAuraSpell
1314 uint32 targetAuraSpell
; // 22 m_targetAuraSpell
1315 uint32 excludeCasterAuraSpell
; // 23 m_excludeCasterAuraSpell
1316 uint32 excludeTargetAuraSpell
; // 24 m_excludeTargetAuraSpell
1317 uint32 CastingTimeIndex
; // 25 m_castingTimeIndex
1318 uint32 RecoveryTime
; // 26 m_recoveryTime
1319 uint32 CategoryRecoveryTime
; // 27 m_categoryRecoveryTime
1320 uint32 InterruptFlags
; // 28 m_interruptFlags
1321 uint32 AuraInterruptFlags
; // 29 m_auraInterruptFlags
1322 uint32 ChannelInterruptFlags
; // 30 m_channelInterruptFlags
1323 uint32 procFlags
; // 31 m_procTypeMask
1324 uint32 procChance
; // 32 m_procChance
1325 uint32 procCharges
; // 33 m_procCharges
1326 uint32 maxLevel
; // 34 m_maxLevel
1327 uint32 baseLevel
; // 35 m_baseLevel
1328 uint32 spellLevel
; // 36 m_spellLevel
1329 uint32 DurationIndex
; // 37 m_durationIndex
1330 uint32 powerType
; // 38 m_powerType
1331 uint32 manaCost
; // 39 m_manaCost
1332 uint32 manaCostPerlevel
; // 40 m_manaCostPerLevel
1333 uint32 manaPerSecond
; // 41 m_manaPerSecond
1334 uint32 manaPerSecondPerLevel
; // 42 m_manaPerSecondPerLeve
1335 uint32 rangeIndex
; // 43 m_rangeIndex
1336 float speed
; // 44 m_speed
1337 //uint32 modalNextSpell; // 45 m_modalNextSpell not used
1338 uint32 StackAmount
; // 46 m_cumulativeAura
1339 uint32 Totem
[2]; // 47-48 m_totem
1340 int32 Reagent
[8]; // 49-56 m_reagent
1341 uint32 ReagentCount
[8]; // 57-64 m_reagentCount
1342 int32 EquippedItemClass
; // 65 m_equippedItemClass (value)
1343 int32 EquippedItemSubClassMask
; // 66 m_equippedItemSubclass (mask)
1344 int32 EquippedItemInventoryTypeMask
; // 67 m_equippedItemInvTypes (mask)
1345 uint32 Effect
[3]; // 68-70 m_effect
1346 int32 EffectDieSides
[3]; // 71-73 m_effectDieSides
1347 uint32 EffectBaseDice
[3]; // 74-76 m_effectBaseDice
1348 float EffectDicePerLevel
[3]; // 77-79 m_effectDicePerLevel
1349 float EffectRealPointsPerLevel
[3]; // 80-82 m_effectRealPointsPerLevel
1350 int32 EffectBasePoints
[3]; // 83-85 m_effectBasePoints (don't must be used in spell/auras explicitly, must be used cached Spell::m_currentBasePoints)
1351 uint32 EffectMechanic
[3]; // 86-88 m_effectMechanic
1352 uint32 EffectImplicitTargetA
[3]; // 89-91 m_implicitTargetA
1353 uint32 EffectImplicitTargetB
[3]; // 92-94 m_implicitTargetB
1354 uint32 EffectRadiusIndex
[3]; // 95-97 m_effectRadiusIndex - spellradius.dbc
1355 uint32 EffectApplyAuraName
[3]; // 98-100 m_effectAura
1356 uint32 EffectAmplitude
[3]; // 101-103 m_effectAuraPeriod
1357 float EffectMultipleValue
[3]; // 104-106 m_effectAmplitude
1358 uint32 EffectChainTarget
[3]; // 107-109 m_effectChainTargets
1359 uint32 EffectItemType
[3]; // 110-112 m_effectItemType
1360 int32 EffectMiscValue
[3]; // 113-115 m_effectMiscValue
1361 int32 EffectMiscValueB
[3]; // 116-118 m_effectMiscValueB
1362 uint32 EffectTriggerSpell
[3]; // 119-121 m_effectTriggerSpell
1363 float EffectPointsPerComboPoint
[3]; // 122-124 m_effectPointsPerCombo
1364 uint32 EffectSpellClassMaskA
[3]; // 125-127 m_effectSpellClassMaskA
1365 uint32 EffectSpellClassMaskB
[3]; // 128-130 m_effectSpellClassMaskB
1366 uint32 EffectSpellClassMaskC
[3]; // 131-133 m_effectSpellClassMaskC
1367 uint32 SpellVisual
[2]; // 134-135 m_spellVisualID
1368 uint32 SpellIconID
; // 136 m_spellIconID
1369 uint32 activeIconID
; // 137 m_activeIconID
1370 //uint32 spellPriority; // 138 m_spellPriority not used
1371 char* SpellName
[16]; // 139-154 m_name_lang
1372 //uint32 SpellNameFlag; // 155 not used
1373 char* Rank
[16]; // 156-171 m_nameSubtext_lang
1374 //uint32 RankFlags; // 172 not used
1375 //char* Description[16]; // 173-188 m_description_lang not used
1376 //uint32 DescriptionFlags; // 189 not used
1377 //char* ToolTip[16]; // 190-205 m_auraDescription_lang not used
1378 //uint32 ToolTipFlags; // 206 not used
1379 uint32 ManaCostPercentage
; // 207 m_manaCostPct
1380 uint32 StartRecoveryCategory
; // 208 m_startRecoveryCategory
1381 uint32 StartRecoveryTime
; // 209 m_startRecoveryTime
1382 uint32 MaxTargetLevel
; // 210 m_maxTargetLevel
1383 uint32 SpellFamilyName
; // 211 m_spellClassSet
1384 uint64 SpellFamilyFlags
; // 212-213 m_spellClassMask NOTE: size is 12 bytes!!!
1385 uint32 SpellFamilyFlags2
; // 214 addition to m_spellClassMask
1386 uint32 MaxAffectedTargets
; // 215 m_maxTargets
1387 uint32 DmgClass
; // 216 m_defenseType
1388 uint32 PreventionType
; // 217 m_preventionType
1389 //uint32 StanceBarOrder; // 218 m_stanceBarOrder not used
1390 float DmgMultiplier
[3]; // 219-221 m_effectChainAmplitude
1391 //uint32 MinFactionId; // 222 m_minFactionID not used
1392 //uint32 MinReputation; // 223 m_minReputation not used
1393 //uint32 RequiredAuraVision; // 224 m_requiredAuraVision not used
1394 uint32 TotemCategory
[2]; // 225-226 m_requiredTotemCategoryID
1395 int32 AreaGroupId
; // 227 m_requiredAreaGroupId
1396 uint32 SchoolMask
; // 228 m_schoolMask
1397 uint32 runeCostID
; // 229 m_runeCostID
1398 //uint32 spellMissileID; // 230 m_spellMissileID not used
1399 //uint32 PowerDisplayId; // 231 PowerDisplay.dbc, new in 3.1
1402 int32
CalculateSimpleValue(uint8 eff
) const { return EffectBasePoints
[eff
]+int32(EffectBaseDice
[eff
]); }
1405 // prevent creating custom entries (copy data from original in fact)
1406 SpellEntry(SpellEntry
const&); // DON'T must have implementation
1409 typedef std::set
<uint32
> SpellCategorySet
;
1410 typedef std::map
<uint32
,SpellCategorySet
> SpellCategoryStore
;
1411 typedef std::set
<uint32
> PetFamilySpellsSet
;
1412 typedef std::map
<uint32
,PetFamilySpellsSet
> PetFamilySpellsStore
;
1414 struct SpellCastTimesEntry
1417 int32 CastTime
; // 1
1418 //float CastTimePerLevel; // 2 unsure / per skill?
1419 //int32 MinCastTime; // 3 unsure
1422 struct SpellFocusObjectEntry
1425 //char* Name[16]; // 1-15 unused
1426 // 16 string flags, unused
1429 // stored in SQL table
1430 struct SpellThreatEntry
1436 struct SpellRadiusEntry
1443 struct SpellRangeEntry
1447 float minRangeFriendly
;
1449 float maxRangeFriendly
;
1452 struct SpellRuneCostEntry
1455 uint32 RuneCost
[3]; // 1-3 (0=blood, 1=frost, 2=unholy)
1456 uint32 runePowerGain
; // 4
1458 bool NoRuneCost() const { return RuneCost
[0] == 0 && RuneCost
[1] == 0 && RuneCost
[2] == 0; }
1459 bool NoRunicPowerGain() const { return runePowerGain
== 0; }
1462 struct SpellShapeshiftEntry
1465 //uint32 buttonPosition; // 1 unused
1466 //char* Name[16]; // 2-17 unused
1467 //uint32 NameFlags; // 18 unused
1468 uint32 flags1
; // 19
1469 int32 creatureType
; // 20 <=0 humanoid, other normal creature types
1470 //uint32 unk1; // 21 unused
1471 uint32 attackSpeed
; // 22
1472 //uint32 modelID; // 23 unused, alliance modelid (where horde case?)
1473 //uint32 unk2; // 24 unused
1474 //uint32 unk3; // 25 unused
1475 //uint32 unk4; // 26 unused
1476 //uint32 unk5; // 27 unused
1477 //uint32 unk6; // 28 unused
1478 //uint32 unk7; // 29 unused
1479 //uint32 unk8; // 30 unused
1480 //uint32 unk9; // 31 unused
1481 //uint32 unk10; // 32 unused
1482 //uint32 unk11; // 33 unused
1483 //uint32 unk12; // 34 unused
1486 struct SpellDurationEntry
1492 struct SpellItemEnchantmentEntry
1494 uint32 ID
; // 0 m_ID
1495 //uint32 charges; // 1 m_charges
1496 uint32 type
[3]; // 2-4 m_effect[3]
1497 uint32 amount
[3]; // 5-7 m_effectPointsMin[3]
1498 //uint32 amount2[3] // 8-10 m_effectPointsMax[3]
1499 uint32 spellid
[3]; // 11-13 m_effectArg[3]
1500 char* description
[16]; // 14-29 m_name_lang[16]
1501 //uint32 descriptionFlags; // 30 name flags
1502 uint32 aura_id
; // 31 m_itemVisual
1503 uint32 slot
; // 32 m_flags
1504 uint32 GemID
; // 33 m_src_itemID
1505 uint32 EnchantmentCondition
; // 34 m_condition_id
1506 //uint32 requiredSkill; // 35 m_requiredSkillID
1507 //uint32 requiredSkillValue; // 36 m_requiredSkillRank
1511 struct SpellItemEnchantmentConditionEntry
1513 uint32 ID
; // 0 m_ID
1514 uint8 Color
[5]; // 1-5 m_lt_operandType[5]
1515 //uint32 LT_Operand[5]; // 6-10 m_lt_operand[5]
1516 uint8 Comparator
[5]; // 11-15 m_operator[5]
1517 uint8 CompareColor
[5]; // 15-20 m_rt_operandType[5]
1518 uint32 Value
[5]; // 21-25 m_rt_operand[5]
1519 //uint8 Logic[5] // 25-30 m_logic[5]
1522 struct StableSlotPricesEntry
1529 struct SummonPropertiesEntry
1532 uint32 Group; // 1, enum SummonPropGroup, 0 - can't be controlled?, 1 - something guardian?, 2 - pet?, 3 - something controllable?, 4 - taxi/mount?
1533 uint32 FactionId; // 2, 14 rows > 0
1534 uint32 Type; // 3, enum SummonPropType
1535 uint32 Slot; // 4, 0-6
1536 uint32 Flags; // 5, enum SummonPropFlags
1540 #define MAX_TALENT_RANK 5
1541 #define MAX_PET_TALENT_RANK 3 // use in calculations, expected <= MAX_TALENT_RANK
1545 uint32 TalentID
; // 0
1546 uint32 TalentTab
; // 1 index in TalentTab.dbc (TalentTabEntry)
1549 uint32 RankID
[MAX_TALENT_RANK
]; // 4-8
1550 // 9-12 not used, always 0, maybe not used high ranks
1551 uint32 DependsOn
; // 13 index in Talent.dbc (TalentEntry)
1553 uint32 DependsOnRank
; // 16
1555 //uint32 needAddInSpellBook; // 19 also need disable higest ranks on reset talent tree
1556 //uint32 unk2; // 20, all 0
1557 //uint64 allowForPet; // 21 its a 64 bit mask for pet 1<<m_categoryEnumID in CreatureFamily.dbc
1560 struct TalentTabEntry
1562 uint32 TalentTabID
; // 0
1563 //char* name[16]; // 1-16, unused
1564 //uint32 nameFlags; // 17, unused
1565 //unit32 spellicon; // 18
1567 uint32 ClassMask
; // 20
1568 uint32 petTalentMask
; // 21
1569 uint32 tabpage
; // 22
1570 //char* internalname; // 23
1573 struct TaxiNodesEntry
1575 uint32 ID
; // 0 m_ID
1576 uint32 map_id
; // 1 m_ContinentID
1580 char* name
[16]; // 5-21 m_Name_lang
1582 uint32 MountCreatureID
[2]; // 23-24 m_MountCreatureID[2]
1585 struct TaxiPathEntry
1587 uint32 ID
; // 0 m_ID
1588 uint32 from
; // 1 m_FromTaxiNode
1589 uint32 to
; // 2 m_ToTaxiNode
1590 uint32 price
; // 3 m_Cost
1593 struct TaxiPathNodeEntry
1596 uint32 path
; // 1 m_PathID
1597 uint32 index
; // 2 m_NodeIndex
1598 uint32 mapid
; // 3 m_ContinentID
1599 float x
; // 4 m_LocX
1600 float y
; // 5 m_LocY
1601 float z
; // 6 m_LocZ
1602 uint32 actionFlag
; // 7 m_flags
1603 uint32 delay
; // 8 m_delay
1604 // 9 m_arrivalEventID
1605 // 10 m_departureEventID
1608 struct TotemCategoryEntry
1611 //char* name[16]; // 1-16
1612 // 17 string flags, unused
1613 uint32 categoryType
; // 18 (one for specialization)
1614 uint32 categoryMask
; // 19 (compatibility mask for same type: different for totems, compatible from high to low for rods)
1620 uint32 m_flags
; // 1
1621 float m_turnSpeed
; // 2
1622 float m_pitchSpeed
; // 3
1623 float m_pitchMin
; // 4
1624 float m_pitchMax
; // 5
1625 uint32 m_seatID
[8]; // 6-13
1626 float m_mouseLookOffsetPitch
; // 14
1627 float m_cameraFadeDistScalarMin
; // 15
1628 float m_cameraFadeDistScalarMax
; // 16
1629 float m_cameraPitchOffset
; // 17
1630 //int m_powerType[3]; // removed in 3.1
1631 //int m_powerToken[3]; // removed in 3.1
1632 float m_facingLimitRight
; // 18
1633 float m_facingLimitLeft
; // 19
1634 float m_msslTrgtTurnLingering
; // 20
1635 float m_msslTrgtPitchLingering
; // 21
1636 float m_msslTrgtMouseLingering
; // 22
1637 float m_msslTrgtEndOpacity
; // 23
1638 float m_msslTrgtArcSpeed
; // 24
1639 float m_msslTrgtArcRepeat
; // 25
1640 float m_msslTrgtArcWidth
; // 26
1641 float m_msslTrgtImpactRadius
[2]; // 27-28
1642 char* m_msslTrgtArcTexture
; // 29
1643 char* m_msslTrgtImpactTexture
; // 30
1644 char* m_msslTrgtImpactModel
[2]; // 31-32
1645 float m_cameraYawOffset
; // 33
1646 uint32 m_uiLocomotionType
; // 34
1647 float m_msslTrgtImpactTexRadius
; // 35
1648 uint32 m_uiSeatIndicatorType
; // 36
1654 struct VehicleSeatEntry
1657 uint32 m_flags
; // 1
1658 int32 m_attachmentID
; // 2
1659 float m_attachmentOffsetX
; // 3
1660 float m_attachmentOffsetY
; // 4
1661 float m_attachmentOffsetZ
; // 5
1662 float m_enterPreDelay
; // 6
1663 float m_enterSpeed
; // 7
1664 float m_enterGravity
; // 8
1665 float m_enterMinDuration
; // 9
1666 float m_enterMaxDuration
; // 10
1667 float m_enterMinArcHeight
; // 11
1668 float m_enterMaxArcHeight
; // 12
1669 int32 m_enterAnimStart
; // 13
1670 int32 m_enterAnimLoop
; // 14
1671 int32 m_rideAnimStart
; // 15
1672 int32 m_rideAnimLoop
; // 16
1673 int32 m_rideUpperAnimStart
; // 17
1674 int32 m_rideUpperAnimLoop
; // 18
1675 float m_exitPreDelay
; // 19
1676 float m_exitSpeed
; // 20
1677 float m_exitGravity
; // 21
1678 float m_exitMinDuration
; // 22
1679 float m_exitMaxDuration
; // 23
1680 float m_exitMinArcHeight
; // 24
1681 float m_exitMaxArcHeight
; // 25
1682 int32 m_exitAnimStart
; // 26
1683 int32 m_exitAnimLoop
; // 27
1684 int32 m_exitAnimEnd
; // 28
1685 float m_passengerYaw
; // 29
1686 float m_passengerPitch
; // 30
1687 float m_passengerRoll
; // 31
1688 int32 m_passengerAttachmentID
; // 32
1689 int32 m_vehicleEnterAnim
; // 33
1690 int32 m_vehicleExitAnim
; // 34
1691 int32 m_vehicleRideAnimLoop
; // 35
1692 int32 m_vehicleEnterAnimBone
; // 36
1693 int32 m_vehicleExitAnimBone
; // 37
1694 int32 m_vehicleRideAnimLoopBone
; // 38
1695 float m_vehicleEnterAnimDelay
; // 39
1696 float m_vehicleExitAnimDelay
; // 40
1697 uint32 m_vehicleAbilityDisplay
; // 41
1698 uint32 m_enterUISoundID
; // 42
1699 uint32 m_exitUISoundID
; // 43
1700 int32 m_uiSkin
; // 44
1701 uint32 m_flagsB
; // 45
1702 // 46-57 added in 3.1, floats mostly
1705 struct WorldMapAreaEntry
1709 uint32 area_id
; // 2 index (continent 0 areas ignored)
1710 //char* internal_name // 3
1715 int32 virtual_map_id
; // 8 -1 (map_id have correct map) other: virtual map where zone show (map_id - where zone in fact internally)
1716 // int32 dungeonMap_id; // 9 pointer to DungeonMap.dbc (owerride x1,x2,y1,y2 coordinates)
1719 #define MAX_WORLD_MAP_OVERLAY_AREA_IDX 4
1721 struct WorldMapOverlayEntry
1724 //uint32 worldMapAreaId; // 1 idx in WorldMapArea.dbc
1725 uint32 areatableID
[MAX_WORLD_MAP_OVERLAY_AREA_IDX
]; // 2-5
1726 // 6-7 always 0, possible part of areatableID[]
1727 //char* internal_name // 8
1731 struct WorldSafeLocsEntry
1738 //char* name[16] // 5-20 name, unused
1739 // 21 name flags, unused
1742 // GCC have alternative #pragma pack() syntax and old gcc version not support pack(pop), also any gcc version not support it at some platform
1743 #if defined( __GNUC__ )
1749 // Structures not used for casting to loaded DBC data and not required then packing
1750 struct TalentSpellPos
1752 TalentSpellPos() : talent_id(0), rank(0) {}
1753 TalentSpellPos(uint16 _talent_id
, uint8 _rank
) : talent_id(_talent_id
), rank(_rank
) {}
1759 typedef std::map
<uint32
,TalentSpellPos
> TalentSpellPosMap
;
1761 struct TaxiPathBySourceAndDestination
1763 TaxiPathBySourceAndDestination() : ID(0),price(0) {}
1764 TaxiPathBySourceAndDestination(uint32 _id
,uint32 _price
) : ID(_id
),price(_price
) {}
1769 typedef std::map
<uint32
,TaxiPathBySourceAndDestination
> TaxiPathSetForSource
;
1770 typedef std::map
<uint32
,TaxiPathSetForSource
> TaxiPathSetBySource
;
1774 TaxiPathNode() : mapid(0), x(0),y(0),z(0),actionFlag(0),delay(0) {}
1775 TaxiPathNode(uint32 _mapid
, float _x
, float _y
, float _z
, uint32 _actionFlag
, uint32 _delay
) : mapid(_mapid
), x(_x
),y(_y
),z(_z
),actionFlag(_actionFlag
),delay(_delay
) {}
1784 typedef std::vector
<TaxiPathNode
> TaxiPathNodeList
;
1785 typedef std::vector
<TaxiPathNodeList
> TaxiPathNodesByPath
;
1787 #define TaxiMaskSize 12
1788 typedef uint32 TaxiMask
[TaxiMaskSize
];