Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Game mode #73

Open
kbakdev opened this issue Apr 2, 2021 · 7 comments
Open

Game mode #73

kbakdev opened this issue Apr 2, 2021 · 7 comments

Comments

@kbakdev
Copy link
Contributor

kbakdev commented Apr 2, 2021

I wonder how the program selects the game mode with this line of code. Could you please give me some guidance? I am going to make some modifications to the program.

StartCoop.cs (21 line)
private static QueueEnum QueueType = QueueEnum.BotIntro;

Specifically, I am interested in where "BotIntro" is defined.

@RuinedViego
Copy link

how do we change the game mode i tried several stuff but still didn't manage to get the right one

@kbakdev
Copy link
Contributor Author

kbakdev commented Apr 3, 2021

From my conclusions, the game modes are defined in LeagueBot.Game.Enums.QueueEnum, but I can't get there.

@RuinedViego
Copy link

I searched in the league folders as well as the code but didn’t find anything yet even the API doesn’t give the info

@kbakdev
Copy link
Contributor Author

kbakdev commented Apr 3, 2021

I was thinking of printing this out with the command Console.WriteLine(...); and inserting it into StartCoop.cs into the ProcessMatch() function with bot.wait(). But I have no idea how to list the available queues in this way.

@RuinedViego
Copy link

There is something i found out if the purpose is the lvling up then the longer the game gets the more xp you get so running an intermediate bot game is the perfect thing to do here you go.
private static QueueEnum QueueType = QueueEnum.BotIntermediate;

and yes it works i did try it out tho i tried the other game modes but still didn’t manage to find the right queue.

@kbakdev
Copy link
Contributor Author

kbakdev commented Apr 3, 2021

A little documentation here would be useful for people who would like to improve this program. :)

@kbakdev
Copy link
Contributor Author

kbakdev commented Apr 3, 2021

Check out this, it should be helpful:

using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LeagueBot.Game.Enums
{
    public enum QueueEnum
    {
        BotIntro = 830,
        BotIntermediate = 850,
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants