Code:
char name[50];
uint8 race = m_session->GetPlayer()->getRace();
- if( race == RACE_HUMAN || race == RACE_DWARF || race == RACE_NIGHTELF || race == RACE_GNOME || race == RACE_DRAENEI )
+ if( race == RACE_HUMAN || race == RACE_DWARF || race == RACE_NIGHTELF || race == RACE_GNOME || race == RACE_DRAENEI || race == RACE_WORGEN)
{
Entry = 1826;
strcpy( name, "|cffff6060A_HealBot" );
@@ -2474,6 +2474,10 @@
// Clean code says you need to work from highest combined bit to lowest. Second, you need to check if both flags exists.
if(sess->HasFlag(ACCOUNT_FLAG_XPACK_02) && sess->HasFlag(ACCOUNT_FLAG_XPACK_01))
client = "TBC and WotLK";
+ else if(sess->HasFlag(ACCOUNT_FLAG_XPACK_03) && sess->HasFlag(ACCOUNT_FLAG_XPACK_02) && sess->HasFlag(ACCOUNT_FLAG_XPACK_01))
+ client = "TBC, WotLK and Cataclysm";
+ else if(sess->HasFlag(ACCOUNT_FLAG_XPACK_03))
+ client = "Cataclysm";
else if(sess->HasFlag(ACCOUNT_FLAG_XPACK_02))
client = "Wrath of the Lich King";
else if(sess->HasFlag(ACCOUNT_FLAG_XPACK_01))
Code:
case 8:
race = "troll";
break;
+ case 9:
+ race = "goblin";
case 10:
race = "bloodelf";
break;
case 11:
race = "draenei";
break;
+ case 22:
+ race = "worgen";
default:
return false;
break;
@@ -215,13 +219,17 @@
raceid = 7;
else if(race == "troll")
raceid = 8;
+ else if(race == "goblin")
+ raceid = 9;
else if(race == "bloodelf")
raceid = 10;
else if(race == "draenei")
raceid = 11;
+ else if(race == "worgen")
+ raceid = 22;
else
{
- RedSystemMessage(m_session, "Invalid start location! Valid locations are: human, dwarf, gnome, nightelf, draenei, orc, troll, tauren, undead, bloodelf");
+ RedSystemMessage(m_session, "Invalid start location! Valid locations are: human, dwarf, gnome, nightelf, draenei, worgen, orc, troll, tauren, undead, bloodelf, goblin");
return true;
}
}
Code:
RACE_TAUREN = 6,
RACE_GNOME = 7,
RACE_TROLL = 8,
+ RACE_GOBLIN = 9,
RACE_BLOODELF = 10,
RACE_DRAENEI = 11,
+ RACE_WORGEN = 22,
};
enum ShapeshiftForm
Code:
WMI_INSTANCE_ARENA = 0x4,
WMI_INSTANCE_XPACK_01 = 0x8, //The Burning Crusade expansion
WMI_INSTANCE_XPACK_02 = 0x10, //Wrath of the Lich King expansion
+ WMI_INSTANCE_XPACK_03 = 0x12, //Cataclysm expansion
WMI_INSTANCE_HAS_NORMAL_10MEN = 0x20,
WMI_INSTANCE_HAS_NORMAL_25MEN = 0x40,
WMI_INSTANCE_HAS_HEROIC_10MEN = 0x80,
@@ -122,6 +123,7 @@
//ACCOUNT_FLAG_XTEND_INFO = 0x4,
ACCOUNT_FLAG_XPACK_01 = 0x8,
ACCOUNT_FLAG_XPACK_02 = 0x10,
+ ACCOUNT_FLAG_XPACK_03 = 0x10,
};
Credits to P1raten for the work and me for giving some stuff proper values