Can anyone give me a working version of this so I can inspect it and learn? I've tried searching for plugins of similar targetted abilities but have had no luck. This is what I have so far:
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.Combat.CombatRoutine;
using Styx.Helpers;
using Styx.WoWInternals;
using Styx.Combat.CombatRoutine;
using Styx.WoWInternals.WoWObjects;
using Styx.Patchables;
using Styx.Logic;
using Styx.Plugins;
using Styx.Combat.CombatRoutine;
using Styx.Helpers;
using Styx.Logic.BehaviorTree;
using Styx.Logic.Combat;
using Styx.Logic.POI;
using Styx.Logic.Pathing;
using Styx.Logic.Profiles;
using Styx.Logic;
using Styx.Plugins.PluginClass;
using Styx.WoWInternals.WoWObjects;
using Styx.WoWInternals;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Net;
using System.Reflection;
using System.Windows.Forms;
using System.Runtime.InteropServices;
using System.Xml.Linq;
using System;
using Styx;
using Styx.Logic;
using Styx.Helpers;
using Styx.Logic.Combat;
using Styx.Logic.Pathing;
using Styx.WoWInternals;
using Styx.Combat.CombatRoutine;
using Styx.WoWInternals.WoWObjects;
using Styx.Plugins.PluginClass;
namespace DnD
{
public class DnD : HBPlugin
{
// Stop Config Here
public override string Name { get { return "DnD"; } }
public override string Author { get { return "Stilllogicz"; } }
public override Version Version { get { return new Version(1, 0, 3); } }
public override bool WantButton { get { return false; } }
public override void Pulse()
{
{
SpellManager.Cast("Death and Decay");
LegacySpellManager.ClickRemoteLocation(Me.CurrentTarget.Location);
}
}
}
}
In HB it says: DnD.cs could not be compiled! Compiler errors:
File: DnD.cs Line: 67 Error: The name 'Me' does not exist in the current context
Apparently it has something to do with the
LegacySpellManager.ClickRemoteLocation(Me.CurrentTarget.Location);