cant get it to work... but i wanted the bot to cast earthquake (barbarian) when surrounded by 5> enemies. Could anyone help?
I don't have a Barbarian so I can't test this, but it should work.
Open Plugins\Trinity\Combat\Abilities\BarbarianCombat.cs and find:
Code:
public static bool CanCastEarthquake
{
get
{
return
!UseOOCBuff &&
!IsCurrentlyAvoiding &&
!Player.IsIncapacitated &&
CanCast(SNOPower.Barbarian_Earthquake) &&
!GetHasBuff(SNOPower.Barbarian_Earthquake) &&
TargetUtil.IsEliteTargetInRange(6f) &&
Player.PrimaryResource > 50;
}
}
And replace it with this:
Code:
public static bool CanCastEarthquake
{
get
{
return
(!UseOOCBuff &&
!IsCurrentlyAvoiding &&
!Player.IsIncapacitated &&
CanCast(SNOPower.Barbarian_Earthquake) &&
!GetHasBuff(SNOPower.Barbarian_Earthquake) &&
Player.PrimaryResource > 50) &&
(TargetUtil.IsEliteTargetInRange(6f) || TargetUtil.AnyMobsInRange(10, 5));
}
}