maukor 34 Posted October 11, 2020 Share Posted October 11, 2020 Hello, is there any easy way to tell bot run to a specific place, for example followpath1 , Grind mobs that are in range you set (wManager.wManagerSetting.CurrentSetting.SearchRadius = 50;) And use IsComplete condition something like there are no mobs left in that spot. so i can use another followpath and run to another spot to grind mobs. Link to comment https://wrobot.eu/forums/topic/12573-kill-mobs-that-in-range-until-there-are-no-units-left/ Share on other sites More sharing options...
Droidz 2738 Posted October 11, 2020 Share Posted October 11, 2020 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(); } } Link to comment https://wrobot.eu/forums/topic/12573-kill-mobs-that-in-range-until-there-are-no-units-left/#findComment-60214 Share on other sites More sharing options...
maukor 34 Posted October 11, 2020 Author Share Posted October 11, 2020 [E] 17:00:54.044 - Compilator Error : c:\WRobotTBC\Data\temp\du5kpjxc.0.cs(30,34) : error CS1513: ожидалась } c:\WRobotTBC\Data\temp\du5kpjxc.0.cs(73,1) : error CS1022: Ожидалось определение типа или пространства имен, либо признак конца файла Where to check whats wrong, cause i dont have any files in my temp folder named du5kpjxc etc : ) I'm kinda far from programming, Link to comment https://wrobot.eu/forums/topic/12573-kill-mobs-that-in-range-until-there-are-no-units-left/#findComment-60215 Share on other sites More sharing options...
Droidz 2738 Posted October 12, 2020 Share Posted October 12, 2020 it is "using" problem, I fixed code, it is sample (starting orc zone): test.xml Link to comment https://wrobot.eu/forums/topic/12573-kill-mobs-that-in-range-until-there-are-no-units-left/#findComment-60222 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now