Jump to content

Droidz

Administrators
  • Posts

    12519
  • Joined

  • Last visited

Everything posted by Droidz

  1. 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)
  2. 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(); } }
  3. Droidz

    SlimDx Draw

    Changed Status to Confirmed Changed Version to All
  4. Hello, Can you share your log file please ( https://wrobot.eu/forums/topic/1779-how-to-post-your-log-file-with-your-topic/ ).
  5. Hello, Can you share your log file please ( https://wrobot.eu/forums/topic/1779-how-to-post-your-log-file-with-your-topic/ ).
  6. Hello, Can you share your log file please ( https://wrobot.eu/forums/topic/1779-how-to-post-your-log-file-with-your-topic/ ).
  7. 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
  8. 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); } };
  9. 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)
  10. Droidz

    Flight Travel Form

    Hello, Can you share your log file please ( https://wrobot.eu/forums/topic/1779-how-to-post-your-log-file-with-your-topic/ ).
  11. Do you have try to clear blacklist (when mobs are lootables)? Try also to increment option "max unit near..."
  12. I cannot reproduct, this problem is probably caused by your fightclass, and in drink % try to put value like 60
  13. Hello, I comeback here when I have check
  14. Hello, no, check your wrobot settings, and try to disable you wow addons
  15. Try to put value like 300-500
  16. Hello, normally it is automatic. But you can blacklists nodes in advanced general settings tab "Lootings..."
  17. 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)
  18. 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
  19. I tried several times I am not able to reproduce the problem, and you are the first to report it.
  20. 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/
  21. Hello, try to increment your min/max latency in advanced general settings
  22. 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.
  23. Hello, try to blacklist this repair and add a new
×
×
  • Create New...