Hi,
no tested but you can try code like this:
using System.Collections.Generic;
using robotManager.Helpful;
using wManager.Wow.Bot.States;
using wManager.Wow.Class;
using wManager.Wow.ObjectManager;
public class QuestGrindingNearestMobs : QuestClass
{
public Vector3 HotSpots = new Vector3(1, 2, 3);
public float RadiusGrinderZone = 50;
public string NameQuest = "QuestGrindingNearestMobs";
private wManager.Wow.Bot.States.GrindingNearestMobs _grinder;
private wManager.Wow.Bot.States.MovementLoop _movement;
public QuestGrindingNearestMobs()
{
_grinder = new wManager.Wow.Bot.States.GrindingNearestMobs { Priority = 2, CenterGinderZone = HotSpots, RadiusGrinderZone = RadiusGrinderZone };
_movement = new wManager.Wow.Bot.States.MovementLoop { PathLoop = new List<Vector3>() { HotSpots } };
Name = NameQuest;
}
public override bool Pulse()
{
Logging.Status = "Quester > Grinder nearest mobs for \"" + Name + "\"";
if (_grinder.NeedToRun)
_grinder.Run();
else if (_movement.NeedToRun)
{
_movement.Run();
}
return true;
}
public override bool IsComplete()
{
return !_grinder.NeedToRun && ObjectManager.Me.Position.DistanceTo(HotSpots) <= RadiusGrinderZone;
}
public override bool HasQuest()
{
return !IsComplete();
}
}