Jump to content

BG join


Recommended Posts

Does it write "confirm" and other states to log and WoW console?

If you think it clicks too fast simply add string

System.Threading.Thread.Sleep(100); // or another value if 100 is not enough

in the BattlefieldStatusHandler method, before string 

Lua.LuaDoString("PVPReadyDialogEnterBattleButton:Click()");

 

Link to comment
Share on other sites

Alex007, what you mean the "same situation"?

1) With wrotation you cant join random BG even manually? or bot cant accept BG when it ready?

2) with battlegrounder bot rejoins queue?

3) Does plugin print something to log/console?

Maybe your log could clarify the situation

Link to comment
Share on other sites

 

ivanra:

1) with Wrotation bot (with AutoBG plugin) can accept BG when it ready.

2) withbattlegrounder  bot join only for first battleground.

3) in chat plugin print: 

[AutoBG] Status 1:none CTF3

[ AutoBG ] Status 2 :  Южнобережье против мельницы Таррен

in log:

22:52:12 - [BG] Battleground Finish
[D] 22:52:20 - [Info] Continent change, CataclysmCTF to Troll Raid
[D] 22:52:21 - [Blacklist] Added, 15 uniques Npcs, 13 Blackspots and 1 Npcs types (Training dummy ignored = True).

next time:

[ AutoBG ] Status 1 : confirm CTF3

[ AutoBG ] Status 1 : none CTF3

and nothing and 15 minutes waiting)

Link to comment
Share on other sites

17 minutes ago, Artud said:

It still doesn't work for me, even with the plugin. 

So, AcceptBattlefieldPort is disabled on your server. You have to patch wManager.dll:

  • open wManager.Wow.Helpers.Battleground.AcceptBattlefieldPortAll() method
  • find and comment string with Battleground.AcceptBattlefieldPort
  • compile

After this bot will 100% accept BG with my plugin

Link to comment
Share on other sites

Ok. Because all want know, i'll write it here. 

  1. check AcceptBattlefieldPort is disabled on your server. Open developement tools and run C# code 
    Battleground.JointBattleGroundQueue(32); // this is random BG
    Thread.Sleep(1000);
    Battleground.AcceptBattlefieldPortAll();

    This starts BG queue, and should accept BG when it ready. If it works, you need no any modifications. If not accepts, LUA function AcceptBattlefieldPort is disabled on your server or works unstable. So, go to step 2

  2. download and install dnSpy

  3. in dnSpy open wManager.dll and find method AcceptBattlefieldPortAll  s1.PNG.1ef25ea2a1e2f3b3714438162426828f.PNG    

  4. right click and run menu item "Edit Method (C#)". You will see obfuscated code, but no problem. Find string with Battleground.AcceptBattlefieldPort and comment it  s2.PNG.00d15863ab0915ab8180d2e6d19f8f2c.PNG   

  5. compile and save.

Voila, now your battlegrounder will accept BG with Battlegrounder helper plugin, because it uses alternative method.

Dont update your robot, or do this steps after every update

Link to comment
Share on other sites

4 hours ago, headcrab said:

Ok. Because all want know, i'll write it here. 

  1. check AcceptBattlefieldPort is disabled on your server. Open developement tools and run C# code 
    
    Battleground.JointBattleGroundQueue(32); // this is random BG
    Thread.Sleep(1000);
    Battleground.AcceptBattlefieldPortAll();

    This starts BG queue, and should accept BG when it ready. If it works, you need no any modifications. If not accepts, LUA function AcceptBattlefieldPort is disabled on your server or works unstable. So, go to step 2

  2. download and install dnSpy

  3. in dnSpy open wManager.dll and find method AcceptBattlefieldPortAll  s1.PNG.1ef25ea2a1e2f3b3714438162426828f.PNG    

  4. right click and run menu item "Edit Method (C#)". You will see obfuscated code, but no problem. Find string with Battleground.AcceptBattlefieldPort and comment it  s2.PNG.00d15863ab0915ab8180d2e6d19f8f2c.PNG   

  5. compile and save.

Voila, now your battlegrounder will accept BG with Battlegrounder helper plugin, because it uses alternative method.

Dont update your robot, or do this steps after every update

The problem is resolved!! Gr8 job, thank you!;)

Link to comment
Share on other sites

  • 1 month later...
On 18/01/2018 at 7:12 AM, headcrab said:

Ok. Because all want know, i'll write it here. 

  1. check AcceptBattlefieldPort is disabled on your server. Open developement tools and run C# code 
    
    Battleground.JointBattleGroundQueue(32); // this is random BG
    Thread.Sleep(1000);
    Battleground.AcceptBattlefieldPortAll();

    This starts BG queue, and should accept BG when it ready. If it works, you need no any modifications. If not accepts, LUA function AcceptBattlefieldPort is disabled on your server or works unstable. So, go to step 2

  2. download and install dnSpy

  3. in dnSpy open wManager.dll and find method AcceptBattlefieldPortAll  s1.PNG.1ef25ea2a1e2f3b3714438162426828f.PNG    

  4. right click and run menu item "Edit Method (C#)". You will see obfuscated code, but no problem. Find string with Battleground.AcceptBattlefieldPort and comment it  s2.PNG.00d15863ab0915ab8180d2e6d19f8f2c.PNG   

  5. compile and save.

Voila, now your battlegrounder will accept BG with Battlegrounder helper plugin, because it uses alternative method.

Dont update your robot, or do this steps after every update

Sorry to be a pain, and forgive me total amateurishness at this, but how do I do this?

Link to comment
Share on other sites

  • 3 weeks later...
43 minutes ago, manny80 said:

i dont became it to run. He dont join the q. And then he have desartour. Help me pls 

You have to comment string Battleground.AcceptBattlefieldPort with slashes ( //). Only possible for 7.1.5 bot, because new versions protected and not copmilable (but can be patched)

Link to comment
Share on other sites

4 hours ago, manny80 said:

with 2.1.0 plugin not work. he dont aceppt q and bring me when i enable thee plugin an error popup

I think you got NullReferenceException because your plugin settings corrupted. Try new version 2.3.0

Link to comment
Share on other sites

  • 1 month later...

If someone can try this plugin and tell me if he works: Disable AcceptBattlefieldPort.cs

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

public class Main : wManager.Plugin.IPlugin
{
    public void Initialize()
    {
        while (Products.IsStarted)
        {
            if (Conditions.InGameAndConnectedAndAliveAndProductStartedNotInPause)
                Lua.LuaDoString("AcceptBattlefieldPort=function(i,a) PVPReadyDialogEnterBattleButton:Click() end");
            Thread.Sleep(1000 * 30);
        }
    }

    public void Dispose()
    {
    }

    public void Settings()
    {
    }
}

 

Link to comment
Share on other sites

  • 1 month later...
  • 3 weeks later...

After Update from priv server, to wow version 7.3.5 (26365) i have the same problems.... he dont join the q for battlefield ( BG) 

the other thing are, it is not possible to edit the file with Dnspy.

what can i do , anyone can help me ? wrobot i just use for bg at priv server but it dont work 

... 

Link to comment
Share on other sites

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...