Jump to content

Droidz

Administrators
  • Posts

    12519
  • Joined

  • Last visited

Everything posted by Droidz

  1. Wishing you a happy, healthy and prosperous year ahead. View full article
  2. Droidz

    Happy New Year 2022

    Wishing you a happy, healthy and prosperous year ahead.
  3. Hi, I wrote few time ago sample HTTP server plugin: Test server http.cs 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(); } } } You can use one port by bot. But in any case what you want to do require programming knowledge. You can also create one server with API type REST to store data (with C# or more easy tools like python or nodejs), and use this API with bot plugin. You have a lot of possibility, but I can't add it to the bot API.
  4. If your private server can read process arguments it can read WRobot files name and content. I don't know any private server that does this.
  5. Hello, You need to put true at the "save" param: http://wrobot.eu/byme/doc/html/M-wManager.Wow.Helpers.NpcDB.AddNpc.htm NpcDB.AddNpc(TheNPC, true, false); For fightmaster: http://wrobot.eu/byme/doc/html/M-wManager.Wow.Helpers.Taxi.TaxiList.AddOrEditForCurrentPlayer_1.htm TaxiList.AddOrEditForCurrentPlayer(TheTaxiNode, true);
  6. Hello, Do you have unlock or increment your max FPS in Wow settings? Sometime antivirus, wow addons, or some wrobot plugins/fightclasses can cause problems (try to disable all and reactive them one per one).
  7. look https://www.mmo-champion.com/threads/775852-Cat-Mangle-Macro RunMacroText('/cast Mangle(Cat Form)') Or, you can try to put spell in actionbar and use code like RunMacroText('/click ActionBarButton1')
  8. Hello, what macro do you want use?
  9. using robotManager.Helpful; using wManager.Wow.Helpers; using System.Diagnostics; public class Main : wManager.Plugin.IPlugin { public void Initialize() { var timer = Stopwatch.StartNew(); robotManager.Events.LoggingEvents.OnAddLog += delegate (Logging.Log log) { if (timer.ElapsedMilliseconds > 3000 && log.Text.Contains("Tundra Mammoth)")) { Logging.WriteDebug("Press MultiBarBottomRightButton1"); Lua.LuaDoString("RunMacroText(\"/click MultiBarBottomRightButton1\")"); timer.Restart(); } }; } public void Dispose() { } public void Settings() { } }
  10. yes, use relogger shortcut with the argument: -MinimiseOnStart
  11. Droidz

    Cant login to legion

    Hello, if you can try again your problem should be resolved
  12. using robotManager.Helpful; using wManager.Wow.Helpers; using System.Diagnostics; public class Main : wManager.Plugin.IPlugin { public void Initialize() { var timer = Stopwatch.StartNew(); robotManager.Events.LoggingEvents.OnAddLog += delegate (Logging.Log log) { if (timer.ElapsedMilliseconds > 3000 && log.Text.Contains("(Traveler's Tundra Mammoth)")) { Logging.WriteDebug("Press MultiBarBottomRightButton1"); Lua.LuaDoString("RunMacroText(\"/click MultiBarBottomRightButton1\")"); timer.Restart(); } }; } public void Dispose() { } public void Settings() { } } You can try this code please
  13. Try to use this bot plugin : Main.cs using robotManager.Helpful; using wManager.Wow.Helpers; public class Main : wManager.Plugin.IPlugin { public void Initialize() { robotManager.Events.LoggingEvents.OnAddLog += delegate(Logging.Log log) { if (log.Text.Contains("Cast Тундровый мамонт путешественника (Traveler's Tundra Mammoth)")) { Lua.LuaDoString("RunMacroText(\"/cast Тундровый мамонт путешественника\")"); } }; } public void Dispose() { } public void Settings() { } }
  14. Hello, I think your problem is here : Try to use "Flying" type vector
  15. Quelque chose comme ça : test.xml
  16. Hello, I am sorry I haven't found easy way to do that. You can try to hook the lua method that write system message
  17. Check in folder "Logs" if WRobot have geneted log file of no
  18. Hello, if you want to solve this problem quickly it is better to send me a private message (I need to change your subscription type manually).
  19. Hello, check also if you have installed required software (mainly SlimDX, open file 'Readme.txt' in WRobot folder)
  20. Hello, click on button "_" (top/right) to put relogger window in taskbar.
  21. Hello, you can buy subscription at this url https://wrobot.eu/store/category/2-wrobot/
  22. Hello, 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/ ).
  23. Hello, 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/ ).
  24. Pouvez vous partager le fichier xml de la fightclass uniquement avec ce code
  25. Utilise du code C# var sortPrincipal = new Spell("SpellNameInEnglish"); new Spell("SpellNameInEnglish").Launch(true, false); Thread.Sleep(1000 + Usefuls.Latency); while (Conditions.InGameAndConnected && ObjectManager.Me.IsCast) { if (sortPrincipal.IsSpellUsable) { Lua.LuaDoString("SpellStopCasting();"); sortPrincipal.Launch(true, true, true); } } (pas testé) Tu dois configurer manuellement les options du sort (distance, ...)
×
×
  • Create New...