Big question about this. I'm trying to make my hunter a little wiser about how he treats mobs. I see entries under Styx.ThreatLevel, but I'm having trouble pulling the values so I can compare them in if statements. Can anyone shed any light? <input id="gwProxy" type="hidden"><!--Session data--><input onclick="jsCall();" id="jsProxy" type="hidden"><input id="gwProxy" type="hidden"><!--Session data--><input onclick="jsCall();" id="jsProxy" type="hidden">
ThreatLevel is a class that contains the following enumerated: UnitNotThreatTable NotTanking NoobishTank InsecurelyTanking SecurelTanking It may not be that useful for what you're trying to do. There's also the WoWObject.Agro function but that looks like it just returns a static bool. Not sure if there is a numerical threat int you can pull or not.
Awesome, thanks for the response. I'm still trying to figure out how to actually call it in code though. For instance, I can't Logging.Write(Me.CurrentTarget.ThreatLevel) or Logging.Write(Styx.ThreatLevel)... I appreciate your help ski!
It doesn't actually return anything (it would need to return a string or other string-able value to be returned by your code), its kind of just used to compare conditionals. Its like a list. I don't think it can be used for what you're trying to do. I don't have a solution though, I've never tried to check threat before.
There's a .ToString() thing in there, but I haven't been able to get that to work yet. I don't know if I do string threat = Styx.ThreatLevel.ToString() or Styx.ThreatLevel.ToString(threat) - I just can't get the syntax right. VB express shows that they should have numerical values associated: Public Const SecurelTanking As Styx.ThreatLevel = 3 Member of Styx.ThreatLevel Public Const InsecurelyTanking As Styx.ThreatLevel = 2 Member of Styx.ThreatLevel So if ThreatLevel > 1, feign death, misdirection, stop casting specials, whatever. If you're able to put this together let me know, it'd be incredibly useful in all classes, especially in RaF. Thanks! <input id="gwProxy" type="hidden"><!--Session data--><input onclick="jsCall();" id="jsProxy" type="hidden">