Been lurking for a while, would like to say thank you for the framework and the discussion about it. As I'm new to C# this has been a good learning experience. The MapHack that was just released is pretty sweet and will give me a good playground to tool around in to implement my ideas. My crummy version didn't refresh as well as yours does.
Anyways, I like the idea of drawing Affixes onto elites to let me know what they have. Is there a better way to check for Affixes than to manually create the enum for values that are retrieved using the "MonsterAffixId" variables? My current implementation works but feels clunky.
Partial code to illustrate my current thoughts:
PHP Code:
//Find elites and track affixes to create enum
Console.WriteLine("Affixes: (" + myAffixCount + ")[" +
myMonster.x1AC_Neg1_MonsterAffixId + "," +
myMonster.x1B0_Neg1_MonsterAffixId + "," +
myMonster.x1B4_Neg1_MonsterAffixId + "," +
myMonster.x1B8_Neg1_MonsterAffixId + "," +
myMonster.x1BC_Neg1_MonsterAffixId + "," +
myMonster.x1C0_Neg1_MonsterAffixId + "," +
myMonster.x1C4_Neg1_MonsterAffixId + "," +
myMonster.x1C8_Neg1_MonsterAffixId + "," +
myMonster.x1CC_Neg1_MonsterAffixId +
"]");
// Probably not a full list
public enum AffixesCheck
{
None = 0,
ArcaneEnchanted = -1669589516,
Avenger = 1165197192,
Electrified = -1752429632,
ExtraHealth = -1512481702,
Frozen = -163836908,
Fast = 3775118,
FireChains = -439707236,
FrozenPulse = 1886876669,
HealthLink = 1799201764,
Horde = 127452338,
Illusionist = 394214687,
Jailer = -27686857,
Knockback = -2088540441,
Minion = 99383434, // Don't really need to draw on screen
Molten = 106438735,
Mortar = 106654229,
Nightmarish = -1245918914,
Orbiter = 1905614711,
Plagued = -1333953694,
PoisonEnchanted = 1929212066,
ReflectsDamage = -1374592233,
Teleport = -507706394,
Thunderstorm = -50556465,
Vampiric = 395423867,
Vortex = 458872904,
Waller = 481181063
}
Sorry if this has already been discussed and I missed it, but I haven't come across it yet.