Jump to content

Recommended Posts

Hello guys!
Is it possible to config battlegrounder / relogger for:
closing wow client after Battleground finish and then re-launch wow, log back in again and q for the next one?

i'm stuck at the closing wow client after finishing battleground. and i dont see any triggers i could stick to for this.

ready to pay if someone has the solution lol

Link to comment
https://wrobot.eu/forums/topic/16225-auto-reconnect-after-finishing-bg-335a/
Share on other sites

Can you do this through a relogger?

u can use plugin like this:

using System;
using System.Threading;
using robotManager.Helpful;
using wManager.Wow.Helpers;

public class Main : wManager.Plugin.IPlugin
{
    private bool _isLaunched;

    public void Initialize()
    {
        _isLaunched = true;
        Logging.Write("Waiting for Battleground");
        while (!Battleground.IsInBattleground())
        {
            Thread.Sleep(1000);
        }
        Logging.Write("Join Battleground, wait for the end");
        while (Battleground.IsInBattleground())
        {
            Thread.Sleep(1000);
        }
        Logging.Write("end of battleground - kill wow");
        for (int i = 10; i >= 1; i--)
        {
            Logging.Write(i.ToString());
            Thread.Sleep(1000);
        }
        Logging.Write("kill wow");
        wManager.Wow.Memory.WowMemory.Memory.GetProcess().Kill();
    }

    public void Dispose()
    {
        _isLaunched = false;
        // Code to run when the bot is stopped
    }

    public void Settings()
    {
        // Code to run when someone clicks the plugin settings button
    }
}

after killing wow relogger will automaticly relauch your wow and bot
image.png.cabaea2a1274499fc0838be23c1ba683.png

5 hours ago, Pudge said:

Can you do this through a relogger?

u can use plugin like this:

using System;
using System.Threading;
using robotManager.Helpful;
using wManager.Wow.Helpers;

public class Main : wManager.Plugin.IPlugin
{
    private bool _isLaunched;

    public void Initialize()
    {
        _isLaunched = true;
        Logging.Write("Waiting for Battleground");
        while (!Battleground.IsInBattleground())
        {
            Thread.Sleep(1000);
        }
        Logging.Write("Join Battleground, wait for the end");
        while (Battleground.IsInBattleground())
        {
            Thread.Sleep(1000);
        }
        Logging.Write("end of battleground - kill wow");
        for (int i = 10; i >= 1; i--)
        {
            Logging.Write(i.ToString());
            Thread.Sleep(1000);
        }
        Logging.Write("kill wow");
        wManager.Wow.Memory.WowMemory.Memory.GetProcess().Kill();
    }

    public void Dispose()
    {
        _isLaunched = false;
        // Code to run when the bot is stopped
    }

    public void Settings()
    {
        // Code to run when someone clicks the plugin settings button
    }
}

after killing wow relogger will automaticly relauch your wow and bot
image.png.cabaea2a1274499fc0838be23c1ba683.png

Exactly with the relogger!
1. So this plugin is to be used in WRobot right?
2. How does WRobot detects end of the battleground?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...