namespace Styx.Bot.CustomClasses
{
using Styx.Logic;
using System;
using Styx.Helpers;
using Styx.Logic.Pathing;
using System.Threading;
using System.Diagnostics;
using Styx.WoWInternals;
using Styx.WoWInternals.WoWObjects;
using Magic;
using System.Collections.Generic;
using System.IO;
using System.Runtime.InteropServices;
using System.Xml.Linq;
using System.Net;
using System.Windows.Forms;
using System.Drawing;
using Styx.Plugins.PluginClass;
using Styx;
public class NXT_HS_PLZ : HBPlugin
{
private void slog(string format, params object[] args)
{ Logging.Write("[Next HotSpot Please]:" + format, args); }
private readonly LocalPlayer Me = ObjectManager.Me;
public override void Pulse()
{
List<WoWUnit> PlrList = ObjectManager.GetObjectsOfType<WoWUnit>(false).FindAll(
unit => (unit.Guid != Me.Guid && unit.IsPlayer && unit.Distance < 40 && !Styx.Logic.Blacklist.Contains(unit.Guid)));
if (PlrList.Count > 1 && Me.Location == StyxWoW.AreaManager.CurrentGrindArea.CurrentHotSpot)
{
slog("Player is Near, Moving to New Hotspot");
StyxWoW.AreaManager.CurrentGrindArea.GetNextHotspot();
}
}
public override string Name { get { return "NXT_HS_PLZ"; } }
public override string Author { get { return "CnG"; } }
public override Version Version { get { return new Version(1, 0); } }
public override bool WantButton { get { return true; } }
public override string ButtonText { get { return "NXT_HS_PLZ"; } }
public override void OnButtonPress()
{
//FromXYutil form = new FromXYutil();
//form.ShowDialog();
}
}
}