DB/FactionTemplate

From wowdev
Revision as of 00:33, 13 February 2016 by Marlamin (talk | contribs) (Marlamin moved page FactionTemplate.dbc to DB/FactionTemplate)
Jump to navigation Jump to search

Header Info

Records...................533
Fields.....................14
Record Size................56
String Block Size...........1

Structure

Column 	Field 		Type 		Notes 
1 	ID 		Integer 	
2 	iRefID_Faction 	Integer 	
3 	Unknown 	BitMask* 	
4 	FightSupport 	BitMask 		LUA::GetFactionForRace shifts 1 by col 2 in FactionGroup and & it with this column.
5 	Friendly 	BitMask* 	
6 	Hostile 	BitMask* 	 
7 	iRefID_Faction 	Integer 	Q: related factions of some kind? 
8 	iRefID_Faction 	Integer 	
9 	Unknown 	Integer 	
10 	Unknown 	Integer 	
11 	iRefID_Faction 	Integer 	
12 	iRefID_Faction 	Integer 	
13 	iRefID_Faction 	Integer 	
14 	iRefID_Faction 	Integer 	

Retrieved from "http://www.sourcepeek.com/wiki/FactionTemplate.dbc"

http://dev.trinitycore.org/trinitycore2/src/561ac59c59ac/src/game/DBCStructure.h

   uint32      ID;                                         // 0        m_ID
   uint32      faction;                                    // 1        m_faction
   uint32      factionFlags;                               // 2        m_flags
   uint32      ourMask;                                    // 3        m_factionGroup
   uint32      friendlyMask;                               // 4        m_friendGroup
   uint32      hostileMask;                                // 5        m_enemyGroup
   uint32      enemyFaction[4];                            // 6        m_enemies[4]
   uint32      friendFaction[4];                           // 10       m_friend[4]

6.0.1.18179

struct FactionTemplateRec {
  uint32_t m_ID;
  uint32_t m_faction;
  uint32_t m_flags;
  uint32_t m_factionGroup;
  uint32_t m_friendGroup;
  uint32_t m_enemyGroup;
  uint32_t m_enemies[4];
  uint32_t m_friend[4];
};