Fixed appearance validation

Implemented proper facial hair validation
Implemented transmog Set
fix interaction of spells like Shadowmeld with Threat reducing effects
This commit is contained in:
hondacrx
2017-08-24 18:01:44 -04:00
parent 7934d51702
commit 0707f9b377
71 changed files with 2968 additions and 632 deletions
+77 -77
View File
@@ -23,83 +23,6 @@ using Game.Scripting;
namespace Game.PvP
{
struct HPConst
{
public static uint[] LangCapture_A = { DefenseMessages.BrokenHillTakenAlliance, DefenseMessages.OverlookTakenAlliance, DefenseMessages.StadiumTakenAlliance };
public static uint[] LangCapture_H = { DefenseMessages.BrokenHillTakenHorde, DefenseMessages.OverlookTakenHorde, DefenseMessages.StadiumTakenHorde };
public static uint[] Map_N = { 0x9b5, 0x9b2, 0x9a8 };
public static uint[] Map_A = { 0x9b3, 0x9b0, 0x9a7 };
public static uint[] Map_H = { 0x9b4, 0x9b1, 0x9a6 };
public static uint[] TowerArtKit_A = { 65, 62, 67 };
public static uint[] TowerArtKit_H = { 64, 61, 68 };
public static uint[] TowerArtKit_N = { 66, 63, 69 };
// HP, citadel, ramparts, blood furnace, shattered halls, mag's lair
public static uint[] BuffZones = { 3483, 3563, 3562, 3713, 3714, 3836 };
public static uint[] CreditMarker = { 19032, 19028, 19029 };
public static uint[] CapturePointEventEnter = { 11404, 11396, 11388 };
public static uint[] CapturePointEventLeave = { 11403, 11395, 11387 };
public static go_type[] CapturePoints =
{
new go_type(182175, 530, -471.462f, 3451.09f, 34.6432f, 0.174533f, 0.0f, 0.0f, 0.087156f, 0.996195f), // 0 - Broken Hill
new go_type(182174, 530, -184.889f, 3476.93f, 38.205f, -0.017453f, 0.0f, 0.0f, 0.008727f, -0.999962f), // 1 - Overlook
new go_type(182173, 530, -290.016f, 3702.42f, 56.6729f, 0.034907f, 0.0f, 0.0f, 0.017452f, 0.999848f) // 2 - Stadium
};
public static go_type[] TowerFlags =
{
new go_type(183514, 530, -467.078f, 3528.17f, 64.7121f, 3.14159f, 0.0f, 0.0f, 1.0f, 0.0f), // 0 broken hill
new go_type(182525, 530, -187.887f, 3459.38f, 60.0403f, -3.12414f, 0.0f, 0.0f, 0.999962f, -0.008727f), // 1 overlook
new go_type(183515, 530, -289.610f, 3696.83f, 75.9447f, 3.12414f, 0.0f, 0.0f, 0.999962f, 0.008727f) // 2 stadium
};
}
struct DefenseMessages
{
public const uint OverlookTakenAlliance = 14841; // '|cffffff00The Overlook has been taken by the Alliance!|r'
public const uint OverlookTakenHorde = 14842; // '|cffffff00The Overlook has been taken by the Horde!|r'
public const uint StadiumTakenAlliance = 14843; // '|cffffff00The Stadium has been taken by the Alliance!|r'
public const uint StadiumTakenHorde = 14844; // '|cffffff00The Stadium has been taken by the Horde!|r'
public const uint BrokenHillTakenAlliance = 14845; // '|cffffff00Broken Hill has been taken by the Alliance!|r'
public const uint BrokenHillTakenHorde = 14846; // '|cffffff00Broken Hill has been taken by the Horde!|r'
}
struct OutdoorPvPHPSpells
{
public const uint AlliancePlayerKillReward = 32155;
public const uint HordePlayerKillReward = 32158;
public const uint AllianceBuff = 32071;
public const uint HordeBuff = 32049;
}
enum OutdoorPvPHPTowerType
{
BrokenHill = 0,
Overlook = 1,
Stadium = 2,
Num = 3
}
struct OutdoorPvPHPWorldStates
{
public const uint Display_A = 0x9ba;
public const uint Display_H = 0x9b9;
public const uint Count_H = 0x9ae;
public const uint Count_A = 0x9ac;
}
class HellfirePeninsulaPvP : OutdoorPvP
{
public HellfirePeninsulaPvP()
@@ -397,4 +320,81 @@ namespace Game.PvP
return new HellfirePeninsulaPvP();
}
}
struct HPConst
{
public static uint[] LangCapture_A = { DefenseMessages.BrokenHillTakenAlliance, DefenseMessages.OverlookTakenAlliance, DefenseMessages.StadiumTakenAlliance };
public static uint[] LangCapture_H = { DefenseMessages.BrokenHillTakenHorde, DefenseMessages.OverlookTakenHorde, DefenseMessages.StadiumTakenHorde };
public static uint[] Map_N = { 0x9b5, 0x9b2, 0x9a8 };
public static uint[] Map_A = { 0x9b3, 0x9b0, 0x9a7 };
public static uint[] Map_H = { 0x9b4, 0x9b1, 0x9a6 };
public static uint[] TowerArtKit_A = { 65, 62, 67 };
public static uint[] TowerArtKit_H = { 64, 61, 68 };
public static uint[] TowerArtKit_N = { 66, 63, 69 };
// HP, citadel, ramparts, blood furnace, shattered halls, mag's lair
public static uint[] BuffZones = { 3483, 3563, 3562, 3713, 3714, 3836 };
public static uint[] CreditMarker = { 19032, 19028, 19029 };
public static uint[] CapturePointEventEnter = { 11404, 11396, 11388 };
public static uint[] CapturePointEventLeave = { 11403, 11395, 11387 };
public static go_type[] CapturePoints =
{
new go_type(182175, 530, -471.462f, 3451.09f, 34.6432f, 0.174533f, 0.0f, 0.0f, 0.087156f, 0.996195f), // 0 - Broken Hill
new go_type(182174, 530, -184.889f, 3476.93f, 38.205f, -0.017453f, 0.0f, 0.0f, 0.008727f, -0.999962f), // 1 - Overlook
new go_type(182173, 530, -290.016f, 3702.42f, 56.6729f, 0.034907f, 0.0f, 0.0f, 0.017452f, 0.999848f) // 2 - Stadium
};
public static go_type[] TowerFlags =
{
new go_type(183514, 530, -467.078f, 3528.17f, 64.7121f, 3.14159f, 0.0f, 0.0f, 1.0f, 0.0f), // 0 broken hill
new go_type(182525, 530, -187.887f, 3459.38f, 60.0403f, -3.12414f, 0.0f, 0.0f, 0.999962f, -0.008727f), // 1 overlook
new go_type(183515, 530, -289.610f, 3696.83f, 75.9447f, 3.12414f, 0.0f, 0.0f, 0.999962f, 0.008727f) // 2 stadium
};
}
struct DefenseMessages
{
public const uint OverlookTakenAlliance = 14841; // '|cffffff00The Overlook has been taken by the Alliance!|r'
public const uint OverlookTakenHorde = 14842; // '|cffffff00The Overlook has been taken by the Horde!|r'
public const uint StadiumTakenAlliance = 14843; // '|cffffff00The Stadium has been taken by the Alliance!|r'
public const uint StadiumTakenHorde = 14844; // '|cffffff00The Stadium has been taken by the Horde!|r'
public const uint BrokenHillTakenAlliance = 14845; // '|cffffff00Broken Hill has been taken by the Alliance!|r'
public const uint BrokenHillTakenHorde = 14846; // '|cffffff00Broken Hill has been taken by the Horde!|r'
}
struct OutdoorPvPHPSpells
{
public const uint AlliancePlayerKillReward = 32155;
public const uint HordePlayerKillReward = 32158;
public const uint AllianceBuff = 32071;
public const uint HordeBuff = 32049;
}
enum OutdoorPvPHPTowerType
{
BrokenHill = 0,
Overlook = 1,
Stadium = 2,
Num = 3
}
struct OutdoorPvPHPWorldStates
{
public const uint Display_A = 0x9ba;
public const uint Display_H = 0x9b9;
public const uint Count_H = 0x9ae;
public const uint Count_A = 0x9ac;
}
}