Skip to content

[Feature Request] Command or IPC for Leveling Mode #1203

@MacaronDream

Description

@MacaronDream

What problem are you trying to fix?

Not having a Command for running Leveling Mode, as all other Modes have some kind of Command afaik.

Would help when hitting walls while Questing on Non Bonus Worlds. Or atleast make it a lot faster. :)

What is the solution to the problem?

Something like "/ad run support leveling X" or "/ad run Trust leveling X". :)

IPCs could look like this:

   [EzIPC]
    public void SetLevelingMode(int mode)
    {
         // 0=None, 1=Support, 2=Trust_Group, 3=Trust_Solo
         Plugin.LevelingModeEnum = (LevelingMode)mode;
    }

    [EzIPC]
    public bool StartLeveling()
    {
         if (Plugin.LevelingModeEnum == LevelingMode.None)
         {
            return false;
         }
         
         var content = LevelingHelper.SelectHighestLevelingRelevantDuty(Plugin.LevelingModeEnum);
         if (content != null)
         {
             Plugin.Run(content.TerritoryType, loops: 1);
             return true;
         }
         
         return false;
    }

Alternative solutions

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestunconfirmedThis issue is unconfirmed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions