How does `requiredclasses` work?

On the wiki it says:

This field is a bitmask, you can combine class values

But if you look up the Hunter class quests in the db they have a value of 4. In ChrClasses.dbc, the values go from 1 to 11 (with no 10) so how can you simply “combine class values”?

According to the DBC, 4= Rogue however it could also be a combination of 1 (Warrior) and 3 (Hunter) so it seems a bit confusing to say “combine class values” when the result is ambiguous.

Technically speaking the Hunter class quests should be a 3 (based on ChrClasses.dbc and also the characters table) but if you go by the wiki that actually means Warrior and Paldin (1+2).

-- Nigt Elf Hunter quests
SELECT `id`,`requiredclasses` FROM `quest_template` WHERE `id` IN (6064,6074,6075,6076,6084,6085,6086);

id	requiredclasses
6064	4
6074	4
6075	4
6076	4
6084	4
6085	4
6086	4

http://collab.kpsn.org/display/tc/ChrClasses

[COLOR=rgb(51,51,51)]Value designates the bitmask used in various places of the core and database (quest_template.RequiresClasses etc). The formula for it is:

Value = 1 << (ID - 1);

Thanks. When I clicked on the “ChrClasses.dbc” link in the quest_template table it just brought me to the same page I was on. It’s linked as “quest_template#” which does nothing.

We need help fixing broken links in the wiki: http://collab.kpsn.org/pages/listundefinedpages.action?key=tc

Everyone can edit the wiki after registering an account.

Yeah, that’s one thing that I always intend to do but never actually get to it. Usually I only visit the wiki when I’m checking something I’m working on so I’m too focused on getting back to coding /emoticons/default_smile.png