DB/ChatChannels: Difference between revisions
Jump to navigation
Jump to search
m (→Structure: Properly mark as code.) |
|||
Line 12: | Line 12: | ||
4-20 Name String + [[Loc]] | 4-20 Name String + [[Loc]] | ||
21-37 shortcut String + [[Loc]] | 21-37 shortcut String + [[Loc]] | ||
struct ChatChannelsEntry // sizeof(0x14) | --[[User:Schlumpf|schlumpf_]] 00:50, 24 August 2007 (CEST) | ||
{ | |||
struct ChatChannelsEntry // sizeof(0x14) | |||
{ | |||
m_ID; // +0x0, size 0x4, type 0 | m_ID; // +0x0, size 0x4, type 0 | ||
m_flags; // +0x4, size 0x4, type 0 | m_flags; // +0x4, size 0x4, type 0 | ||
Line 19: | Line 21: | ||
m_name_lang; // +0xC, size 0x4, type 2 | m_name_lang; // +0xC, size 0x4, type 2 | ||
m_shortcut_lang; // +0x10, size 0x4, type 2 | m_shortcut_lang; // +0x10, size 0x4, type 2 | ||
}; | }; | ||
===enum ChannelDBCFlags=== | ===enum ChannelDBCFlags=== |
Revision as of 18:14, 27 September 2012
Header Info
Records.....................6 Fields.....................37 Record Size...............148 String Block Size.........138
Structure
Column Field Type Notes 1 ID Integer 2 flags Integer Something to do with linking between zones? (Patch 1.9, 1.11) 3 factionGroup Integer 4-20 Name String + Loc 21-37 shortcut String + Loc
--schlumpf_ 00:50, 24 August 2007 (CEST)
struct ChatChannelsEntry // sizeof(0x14) { m_ID; // +0x0, size 0x4, type 0 m_flags; // +0x4, size 0x4, type 0 m_factionGroup; // +0x8, size 0x4, type 0 m_name_lang; // +0xC, size 0x4, type 2 m_shortcut_lang; // +0x10, size 0x4, type 2 };
enum ChannelDBCFlags
CHANNEL_DBC_FLAG_NONE = 0x00000, CHANNEL_DBC_FLAG_INITIAL = 0x00001, // General, Trade, LocalDefense, LFG CHANNEL_DBC_FLAG_ZONE_DEP = 0x00002, // General, Trade, LocalDefense, GuildRecruitment CHANNEL_DBC_FLAG_GLOBAL = 0x00004, // WorldDefense CHANNEL_DBC_FLAG_TRADE = 0x00008, // Trade, LFG CHANNEL_DBC_FLAG_CITY_ONLY = 0x00010, // Trade, GuildRecruitment, LFG CHANNEL_DBC_FLAG_CITY_ONLY2 = 0x00020, // Trade, GuildRecruitment, LFG CHANNEL_DBC_FLAG_DEFENSE = 0x10000, // LocalDefense, WorldDefense CHANNEL_DBC_FLAG_GUILD_REQ = 0x20000, // GuildRecruitment CHANNEL_DBC_FLAG_LFG = 0x40000, // LFG CHANNEL_DBC_FLAG_UNK1 = 0x80000, // General
Extracted from Trinity Core Source. /-Ascathos 14:07, 27 September 2012 (UTC)