Skip to content
View in the app

A better way to browse. Learn more.

WRobot

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Stop group of bots by Relogger

Featured Replies

Hi, I have a need to stop all bots on separate servers, how can I do this using the reloger plugin?

I wrote a small plugin

using robotManager.Helpful;
using System;
using System.Threading;
using System.Windows.Forms;

namespace Killer
{
    public class MyPlugin : Relogger.ReloggerPlugin
    {
        public override string Name { get { return "Killer"; } }

        bool IsRunning { get; set; }

        public override void OnStart()
        {
        }
        public override void OnStop()
        {
            IsRunning = false;
        }

        public override void OnButtonPress()
        {
            System.Threading.Tasks.Task.Factory.StartNew(() =>
            {
            Logging.WriteDebug("Kill all tasks started");
            for (int i = 15; i > 0; i--)
            {
                Logging.WriteDebug(i + " seconds until start end");
                Thread.Sleep(1000);
            }
            try
            {

                for (int i = 0; i < Relogger.Classes.ReloggerGeneralSettings.CurrentSetting.Profiles.Count; i++)
                {
                    var p = Relogger.Classes.ReloggerGeneralSettings.CurrentSetting.Profiles[i];

                    if (p.Status == Relogger.Classes.Status.Running)
                    {
                        if (p.ExistWowProcess())
                        {
                            p.KillWowProcess();
                            robotManager.Helpful.Logging.Write(Name + ": Kill wow for  " + p.Name);
                        }
                        if (p.ExistWRobotProcess())
                        {
                            p.ExistWRobotProcess();
                            robotManager.Helpful.Logging.Write(Name + ": Kill Bot for  " + p.Name);
                        }
                        p.Stop();
                        Thread.Sleep(Others.Random(5000, 10000));
                    }
                }
            }
            catch (Exception e)
            {
                robotManager.Helpful.Logging.WriteError(Name + " > " + e);
            }
            });
            //System.Threading.Thread.Sleep(500);

            base.OnButtonPress();
        }
    }
}

that turns off all running bots.
Is it possible to implement this through the ReloggerPlugin or some other way?

@Droidz would not want to add the ability to use multiple RelogerGeneralSettings.xml instead of copying the bot folder.But I would like to be able to stop bots on specific servers without stopping everyone.

Hi, try

                for (int i = 0; i < Relogger.Classes.ReloggerGeneralSettings.CurrentSetting.Profiles.Count; i++)
                {
                    var p = Relogger.Classes.ReloggerGeneralSettings.CurrentSetting.Profiles[i];
                    if (p.CurrentWowAccount.Server == "Server Name")
                    {
                        if (p.Status == Relogger.Classes.Status.Running)
                        {
                            if (p.ExistWowProcess())
                            {
                                p.KillWowProcess();
                                robotManager.Helpful.Logging.Write(Name + ": Kill wow for  " + p.Name);
                            }
                            if (p.ExistWRobotProcess())
                            {
                                p.ExistWRobotProcess();
                                robotManager.Helpful.Logging.Write(Name + ": Kill Bot for  " + p.Name);
                            }
                            p.Stop();
                            Thread.Sleep(Others.Random(5000, 10000));
                        }
                    }
                }

I added 

if (p.CurrentWowAccount.Server == "Server Name")

Make one plugin by serveur

 

  • Author
On 5/26/2021 at 1:28 PM, Droidz said:

if (p.CurrentWowAccount.Server == "Server Name")

 

I changed to p.CurrentWowAccount.Server == "myserver" and got an error:

image.png.7560faf32583fa4f88d84185241dbfb2.png

 

  • Author
for (int i = 0; i < Relogger.Classes.ReloggerGeneralSettings.CurrentSetting.Profiles.Count; i++)
                    {
                        var p = Relogger.Classes.ReloggerGeneralSettings.CurrentSetting.Profiles[i];


                        if (p.Status == Relogger.Classes.Status.Running)
                        {
                            if (p.CurrentWowAccount.Server == "server name")
                            {
                                if (p.ExistWowProcess())
                                {
                                    p.KillWowProcess();
                                    robotManager.Helpful.Logging.Write(Name + ": Kill wow for  " + p.Name);
                                }
                                if (p.ExistWRobotProcess())
                                {
                                    p.ExistWRobotProcess();
                                    robotManager.Helpful.Logging.Write(Name + ": Kill Bot for  " + p.Name);
                                }
                                p.Stop();
                                Thread.Sleep(Others.Random(5000, 10000));
                            }
                        }

                    }

It works, thanks.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.