Jump to content

Droidz

Administrators
  • Posts

    12449
  • Joined

  • Last visited

Everything posted by Droidz

  1. Droidz

    game version incorrect

    Hello, Do you use one of these versions (with unmodified game client) : https://wrobot.eu/supported-wow-versions/
  2. Hello, yes in quester fightclass is loaded before engine and plugins. You can't change that. If you want cancel totown task when it's running you can robotManager.Events.FiniteStateMachineEvents.OnRunningLoopState += (state, cancelable) => { if (state is ToTown) cancelable.Cancel = true; };
  3. GoToTask methods are high-levels. They use the various methods of movement to make it easier to use.
  4. Hello, These methods are to use to go to destination with flying mount when you haven't path to follow (bot will try to avoid obstacles).
  5. I think the problem is here, you use unadapted profile. You can try to activate "radar 3d" (tab "map") to try to see where the bot try to go.
  6. Hello, it's strange. Are you sure that it's not a plugin or profile problem ? What product do you use ?
  7. Try this WRobot plugin : Main.cs using System.Collections.Generic; using robotManager.Helpful; using wManager.Wow.Helpers; public class Main : wManager.Plugin.IPlugin { public void Initialize() { EventsLuaWithArgs.OnEventsLuaStringWithArgs += OnEventsLuaWithArgsOnOnEventsLuaStringWithArgs; } private void OnEventsLuaWithArgsOnOnEventsLuaStringWithArgs(string id, List<string> args) { try { if (Conditions.InGameAndConnectedAndAliveAndProductStartedNotInPause && id == "UI_ERROR_MESSAGE" && args.Count > 0 && args[0] == "You are facing the wrong way!") { Logging.WriteDebug("Bugged facing, try to resolve it"); Move.Forward(); Move.Backward(); } } catch { } } public void Dispose() { EventsLuaWithArgs.OnEventsLuaStringWithArgs -= OnEventsLuaWithArgsOnOnEventsLuaStringWithArgs; } public void Settings() { } } (if you don't use English game client, you need to change text line 19).
  8. You can try to host http server in relogger (with relogger plugin) (you can get/return values (or xml) from it. It's sample of http server, but for wrobot plugin : using System.Net; using System.Text; using System.Threading.Tasks; using robotManager.Helpful; using wManager.Wow.Helpers; using wManager.Wow.ObjectManager; public class Main : wManager.Plugin.IPlugin { /* Samples: http://localhost:8000/name http://localhost:8000/jump http://localhost:8000/pos http://localhost:8000/runlua?code=print(%22test%20from%20web%22) */ private readonly bool _debugLog = true; private HttpListener _listener; private readonly string _url = "http://localhost:8000/"; private int _requestCount; private bool _runServer; public void Initialize() { // Create a Http server and start listening for incoming connections _listener = new HttpListener(); _listener.Prefixes.Add(_url); _listener.Start(); if (_debugLog) Logging.WriteDebug("Listening for connections on " + _url); // Handle requests var listenTask = HandleIncomingConnections(); listenTask.GetAwaiter().GetResult(); } public void Dispose() { if (_listener != null) { _runServer = false; _listener.Close(); _listener = null; } } public void Settings() { } private async Task HandleIncomingConnections() { _runServer = true; // While a user hasn't visited the `shutdown` url, keep on handling requests while (_runServer) { // Will wait here until we hear from a connection var ctx = await _listener.GetContextAsync(); // Peel out the requests and response objects var req = ctx.Request; var resp = ctx.Response; // Print out some info about the request if (_debugLog) { Logging.WriteDebug("Request #: " + ++_requestCount); Logging.WriteDebug(req.Url.ToString()); Logging.WriteDebug(req.HttpMethod); Logging.WriteDebug(req.UserHostName); Logging.WriteDebug(req.UserAgent); Logging.WriteDebug(req.Url.AbsolutePath); } var content = string.Empty; // Parse if (req.Url.AbsolutePath == "/name") { content = ObjectManager.Me.Name; } else if (req.Url.AbsolutePath == "/jump") { Move.JumpOrAscend(); content = "done"; } else if (req.Url.AbsolutePath == "/pos") { content = ObjectManager.Me.Position.ToStringXml(); } else if (req.Url.AbsolutePath.StartsWith("/runlua")) { //var r = System.Web.HttpUtility.ParseQueryString(req.Url.Query).Get("code"); var r = req.QueryString["code"]; if (!string.IsNullOrWhiteSpace(r)) { Lua.LuaDoString(r); content = "ok"; } else content = "failed"; } // Write the response info byte[] data = Encoding.UTF8.GetBytes(content); resp.ContentType = "text/html"; resp.ContentEncoding = Encoding.UTF8; resp.ContentLength64 = data.LongLength; // Write out to the response stream (asynchronously), then close it await resp.OutputStream.WriteAsync(data, 0, data.Length); resp.Close(); } } }
  9. Hello, You seem to have followed all the recommendations. I'm sorry, but I don't understand why you're getting this issue, and I don't recall anyone reporting this issue before. You didn't specify it, but if you haven't, try restarting your computer, reinstalling .Net https://dotnet.microsoft.com/en-us/download/dotnet-framework
  10. Hello, Do you get this problem with several fightclasses ? Wow shortcuts to move forward/backward are by default ? Do you have try to activate option "Use Lua to move" in avanced general settings?
  11. Hello, The best is to check if the NPCs that are in the profile you are using are good (if not, remove the bad ones and add some good ones). After that, activate in advanced general settings the option "Use only NPC of your current profile". Optionally, you can remove all npc in you NPC DB (tab "Tools").
  12. Hello, easy way is to use C# with code like System.Environment.Exit(-10); This code will close the bot, and the reloger will do action in relation to the returned code.
  13. Droidz

    Login error

    Hello, try to restart your computer if it's not done (this frequently resolve this type of problem).
  14. When I run wManager.Wow.Bot.Tasks.GoToTask.ToPosition(new Vector3(-5470.455, -2890.753, 350.0887, "None")); in dev tools I get only one pathfinder call. If bot don't found path, in some case there can call pathfinder server several times.
  15. Hello, It's going to be complicated to solve this problem without having all the code. Do you run your code several times (several threads)? You stop it well (when the bot is stopped).
  16. Hi, in relogger I use Mutex class : https://stackoverflow.com/questions/30205648/how-to-have-processes-not-threads-in-c-sharp-synchronize-file-system-access
  17. Hello, try to increment your min/max latency in advanced general settings
  18. Thanks. In your log file, bot uses drink "22:06:30 - [Regen] Use drink Melon Juice". It's case in game?
  19. Disable all Wow addons, all WRobot plugins and share your log file please ( https://wrobot.eu/forums/topic/1779-how-to-post-your-log-file-with-your-topic/ ).
×
×
  • Create New...