How do you check to see if the party leader has started combat, and if he does to target his target and attack?
I can not for the life of me figure it out. Here is what I have so far. It locks up HB so it wont process any other plugins, and I cant find what I need to make it detect what im after and start combat. What am I doing wrong?
I can not for the life of me figure it out. Here is what I have so far. It locks up HB so it wont process any other plugins, and I cant find what I need to make it detect what im after and start combat. What am I doing wrong?
Code:
using System;
using System.Collections.Generic;
using System.Threading;
using System.Diagnostics;
using System.Globalization;
using System.Text;
using Styx;
using Styx.Plugins.PluginClass;
using Styx.Logic.BehaviorTree;
using Styx.Helpers;
using Styx.WoWInternals;
using Styx.WoWInternals.WoWObjects;
using Styx.Patchables;
using Styx.Logic;
using Styx.Plugins;
namespace Combatattack
{
class RunMacro : HBPlugin
{
static public string name = "CombatAttack";
public override string Name { get { return name + " " + Version.ToString(); } }
public override string Author { get { return "Tjhasty"; } }
private readonly Version _version = new Version(0, 1);
public override Version Version { get { return _version; } }
public override string ButtonText { get { return "CombatAttack"; } }
public override void Pulse()
{
if (RaFHelper.Leader != null)
{
if (RaFHelper.Leader.Combat)
{
}
}
}
}
}