-
Posts
12519 -
Joined
-
Last visited
Content Type
Forums
Articles
Bug Tracker
Downloads
Store
Everything posted by Droidz
-
Others sample: static Main() { wManager.Events.FightEvents.OnFightStart += (unit, cancelable) => { robotManager.Helpful.Var.SetVar("CanBack", true); }; wManager.Events.FightEvents.OnFightLoop += (unit, cancelable) => { if (robotManager.Helpful.Var.Exist("CanBack") && robotManager.Helpful.Var.GetVar<bool>("CanBack") && unit.IsValid && !ObjectManager.Me.IsCast && unit.GetDistance < 15 && !TraceLine.TraceLineGo(unit.Position)) { var startPos = new Vector3(ObjectManager.Me.Position); var timer = new robotManager.Helpful.Timer(5 * 1000); try { wManager.Wow.Helpers.Move.Backward(Move.MoveAction.DownKey); while (!timer.IsReady && Conditions.InGameAndConnectedAndAliveAndProductStartedNotInPause && !TraceLine.TraceLineGo(unit.Position) && unit.GetDistance < 30) { Thread.Sleep(10); } } catch { } finally { wManager.Wow.Helpers.Move.Backward(Move.MoveAction.UpKey); } if (TraceLine.TraceLineGo(unit.Position)) // if your target is now not in line of sight after back, disable this option for current combat robotManager.Helpful.Var.SetVar("CanBack", false); if (ObjectManager.Me.Position.DistanceTo(startPos) < 10 && unit.GetDistance < 30 && timer.IsReady) // if seem stuck (wall?) robotManager.Helpful.Var.SetVar("CanBack", false); } }; } (not tested)
-
Not sure but try that: WoWGameObject Fire() { var skyfire = Skyfire(); if (skyfire == null) return null; var fires = ObjectManager.GetWoWGameObjectByEntry(243244); var i = 0; foreach (var f in fires) { var l = f.Position; var g = GetWorldPosition(l); Logging.Write(" FIRE: " + f.Name + " local=" + l + " global=" + g + " dist=" + ObjectManager.Me.Position.DistanceTo(g) + " distZ=" + ObjectManager.Me.Position.DistanceZ(g)); i += 1; } Thread.Sleep(60 * 1000); return null; var fire = fires.OrderBy(f => (GetWorldPosition(f.Position)).DistanceTo(ObjectManager.Me.Position)).FirstOrDefault(); if (fire != null && fire.IsValid) // && fire.GetDistance < 10) { return fire; } return null; } WoWGameObject Skyfire() { var skyfire = Questing.FindObject(241630); if (skyfire != null && skyfire.IsValid) { return skyfire; } return null; } Vector3 GetWorldPosition(Vector3 position) { if (position == Vector3.Zero || !ObjectManager.Me.IsValid || !ObjectManager.Me.InTransport) return position; return position + (ObjectManager.Me.PositionWithoutType - ObjectManager.Me.PositionRelativeWithoutType); } After you need to interact manually like that: if (fire != null && fire.IsValid) { if (GoToTask.ToPosition(GetWorldPosition(fire.Position))) { Interact.InteractGameObject(fire.GetBaseAddress); Usefuls.WaitIsCastingAndLooting(); } }
-
Changed Status to Confirmed Changed Version to All
-
Hello, Can you share your log file please ( https://wrobot.eu/forums/topic/1779-how-to-post-your-log-file-with-your-topic/ ).
-
Hello, Can you share your log file please ( https://wrobot.eu/forums/topic/1779-how-to-post-your-log-file-with-your-topic/ ).
-
Hello, Can you share your log file please ( https://wrobot.eu/forums/topic/1779-how-to-post-your-log-file-with-your-topic/ ).
-
Returns to first "FollowPath" every time i start a quester profile.
Droidz replied to Alarion's topic in Quester assistance
return new Vector3(-1791.935f, 3050.169f, 8.208141f).DistanceTo(ObjectManager.Me.Position) < 500; And yes 500 it is yards, you can change this value -
Allow us to override and SET new target in fightclasses
Droidz commented on Jasabi's bug report in Bug Tracker
Hello, not tested: wManager.Events.FightEvents.OnFightLoop += (unit, cancelable) => { var newTarget = new WoWUnit(0); // your code to found new mobs if (newTarget.IsValid && !newTarget.IsMyTarget) { Fight.StartFight(newTarget.Guid); cancelable.Cancel = true; } }; or wManager.Events.FightEvents.OnFightLoop += (unit, cancelable) => { var newTarget = new WoWUnit(0); // your code to found new mobs if (newTarget.IsValid) { if (!newTarget.IsMyTarget) Interact.InteractGameObject(newTarget.GetBaseAddress); // your code here .... SpellManager.CastSpellByIdLUA(123); } }; -
Hello, In fightclass general settings, in option "Additional C# code" add code like: static Main() { wManager.Events.FightEvents.OnFightLoop += (unit, cancelable) => { if (unit.IsValid && !ObjectManager.Me.IsCast && (unit.IsStunned || unit.Rooted)) { wManager.Wow.Helpers.Move.Backward(Move.MoveAction.PressKey, 1500); } }; } (code not tested)
-
Hello, Can you share your log file please ( https://wrobot.eu/forums/topic/1779-how-to-post-your-log-file-with-your-topic/ ).
-
Do you have try to clear blacklist (when mobs are lootables)? Try also to increment option "max unit near..."
-
Resting/ Regeneration / Food / Drink
Droidz replied to maukor's topic in WRobot for Wow Vanilla - Help and support
I comeback here when option is added -
[TBC][BUG] Bot doesn't drink after Ressurection
Droidz commented on Avvi's bug report in Bug Tracker
I cannot reproduct, this problem is probably caused by your fightclass, and in drink % try to put value like 60 -
Hello, I comeback here when I have check
-
Try to put value like 300-500
-
-
Hello, i'll not add this option, but you can run this code for that: robotManager.Helpful.Others.ShutDownPc(); (run this code in quester or custom profile)
-
Bonjour, pas d'option pour regen. Vous pouvez utiliser le plugin https://wrobot.eu/files/file/650-party-chat-command/ pour regen mais ca fonctionne uniquement si vous contrôlez le chef du groupe
-
Gatherer constantly stuck in "flying up and down loop"
Droidz replied to cukiemunster's topic in Gatherer assistance
I tried several times I am not able to reproduce the problem, and you are the first to report it. -
Hello, Thank you. I added rules: https://wrobot.eu/files/submit/?do=submit&category=1 And yes we need to clean download session, do not hesitate to report bad files (use link "Report this file"), I'll move them in https://wrobot.eu/files/category/39-old-obsolete/
-
Hello, try to increment your min/max latency in advanced general settings
-
Returns to first "FollowPath" every time i start a quester profile.
Droidz replied to Alarion's topic in Quester assistance
Hello, By default you cannot remember that it has finished. For you the best way is to check character position in "Can condition" with code like "return new Vector3(1, 2, 3).DistanceTo(ObjectManager.Me.Position) < 500;" But if you have good knowledge, you can do that with "robotManager.Helpful.Var" if you want remember for the current WRobot session, or create profile settings file if you want than WRobot remember for all the time.