Jump to content
This site uses cookies! Learn More

This site uses cookies!

By continuing to use this site, you agree to allow us to store cookies on your computer. :)

  • Runcode Profile suggestion


    Smokie
    • Version: All Product: Quester Type: Suggestion Status: Not Added

    Hello @Droidz,

    I wanted to ask if you could add the setting runcode to uncheck boxes in Profile settings after a the profile as been loaded or level if statement to make loading profile's faster.




    User Feedback

    Recommended Comments

    var p = Quester.Bot.QuesterSetting.CurrentSetting.ProfilesUserSettings.FirstOrDefault(ps => ps.ProfilePath == Quester.Bot.QuesterSetting.CurrentSetting.ProfileName);
    if (p != null)
    {
      if (!p.SkipSteps.Contains(1))
        p.SkipSteps.Add(1);
    }

     

    Share this comment


    Link to comment
    Share on other sites

    @Droidz i post the code into dev tools and it doesnt work for some reason

    code i used : 

    var p = Quester.Bot.QuesterSetting.CurrentSetting.ProfilesUserSettings.FirstOrDefault(ps => ps.ProfilePath == Quester.Bot.QuesterSetting.CurrentSetting.ProfileName);
    if (p != null)
    {
      if (!p.SkipSteps.Contains(1))
        p.SkipSteps.Add(1);
        p.SkipSteps.Add(2);
        p.SkipSteps.Add(3);
    };
    Quester.Bot.QuesterSetting.CurrentSetting.Save();

     

    Share this comment


    Link to comment
    Share on other sites
    var p = Quester.Bot.QuesterSetting.CurrentSetting.ProfilesUserSettings.FirstOrDefault(ps => ps.ProfilePath == Quester.Bot.QuesterSetting.CurrentSetting.ProfileName);
    if (p == null)
    {
        p = new Quester.Bot.ProfileUserSettings { ProfilePath = Quester.Bot.QuesterSetting.CurrentSetting.ProfileName };
        Quester.Bot.QuesterSetting.CurrentSetting.ProfilesUserSettings.Add(p);
    }
    
    if (!p.SkipSteps.Contains(1))
        p.SkipSteps.Add(1);
    
    Quester.Bot.QuesterSetting.CurrentSetting.Save();

     

    Share this comment


    Link to comment
    Share on other sites
    1 minute ago, Marsbar said:

    The quester product in the products folder

    so i need to add the quester product into the reference in VS?

    Share this comment


    Link to comment
    Share on other sites
    Just now, Marsbar said:

    Yes

    Huh, we learn something new every day ! Thanks. btw how are you doing Mars? hope you're having a wonderful day.

    Share this comment


    Link to comment
    Share on other sites


    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Add a comment...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...