Jump to content

Adding Alterac Valley to ignored Battleground (leavebg.cs)


Recommended Posts

As title says, I don't know much about C language (or what is supposed to be), what string should I modify to include Alterac Valley to blacklisted bg? I get massreported everytime because the bot keep ressing in front of the zerg zone, giving free points to the opposite faction (with multiboxer, premades..), so yea I don't want this battleground anymore, just like SoTa and IoC.

Here is where to modifiy, I think:

 

 if (cId == (int) ContinentId.NorthrendBG || cId == (int) ContinentId.IsleofConquest) // NorthrendBG = StrandoftheAncients 
                    {
                        Lua.LuaDoString("LeaveBattlefield()");
                        Thread.Sleep(150);
                    }

 

Link to comment
Share on other sites

2 hours ago, scripterx said:

Ok now I really need your help, is it possible to add a timer? I mean:

"if time (clock) is past 10 am and before 1 am > then> leave alterac valley"

Not tested:

            if (DateTime.Now.Hour > 10 || DateTime.Now.Hour < 13)
            {
                // Leave
            }

 

Link to comment
Share on other sites

  • 1 month later...

I just had a better idea: is it possible to create (or implement in leave sota-ioc.cs) a function that automatically leaves alterac valley when our resources are 200 less than other team? (means they already killed the mini boss+they are farming us, multiboxer, premades..and so on)

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