Jump to content

Recommended Posts

Hello, no tested but like this:

        string stepName = "MyStepName";
        var p = Quest.QuesterCurrentContext.Profile as QuesterProfile;
        if (p != null)
        {
            for (int i = 0; i < p.QuestsSorted.Count; i++)
            {
                if (p.QuestsSorted[i].Action == QuestAction.StepName && p.QuestsSorted[i].NameClass == stepName)
                {
                    Quest.QuesterCurrentContext.CurrentStep = i;
                    break;
                }
            }
        }

(replace line 1 MyStepName by your step name (step type 'StepName'))

  • 5 months later...
On ‎01‎.‎10‎.‎2017 at 12:11 PM, Droidz said:

Hello, no tested but like this:


        string stepName = "MyStepName";
        var p = Quest.QuesterCurrentContext.Profile as QuesterProfile;
        if (p != null)
        {
            for (int i = 0; i < p.QuestsSorted.Count; i++)
            {
                if (p.QuestsSorted[i].Action == QuestAction.StepName && p.QuestsSorted[i].NameClass == stepName)
                {
                    Quest.QuesterCurrentContext.CurrentStep = i;
                    break;
                }
            }
        }

(replace line 1 MyStepName by your step name (step type 'StepName'))

Error (I use the code in the quester profile)

Безымянный.png

I'm not sure how your complete code looks like or if you just using c# but if you have your own project you need to add a reference to Quester.dll and use the following using

using Quester.Profile;

You also need

using wManager.Wow.Class;
using wManager.Wow.Helpers;

if you dont already using them.

Edited by iMod
1 minute ago, iMod said:

I'm not sure how your complete code looks like or if you just using c# but you have your own project you need to add a reference to Quester.dll and use the following using


using Quester.Profile;

You also need


using wManager.Wow.Class;
using wManager.Wow.Helpers;

if you dont already using them.

I mean I want use the code from quester profile ( I don't use custom profile..)

Безымянный.png

5 minutes ago, 79135 said:

I mean I want use the code from quester profile ( I don't use custom profile..)

Безымянный.png

try

        string stepName = "MyStepName";
        var p = wManager.Wow.Helpers.Quest.QuesterCurrentContext.Profile as Quester.Profile.QuesterProfile;
        if (p != null)
        {
            for (int i = 0; i < p.QuestsSorted.Count; i++)
            {
                if (p.QuestsSorted[i].Action == wManager.Wow.Class.QuestAction.StepName && p.QuestsSorted[i].NameClass == stepName)
                {
                    wManager.Wow.Helpers.Quest.QuesterCurrentContext.CurrentStep = i;
                    break;
                }
            }
        }

 

4 minutes ago, Droidz said:

try


        string stepName = "MyStepName";
        var p = wManager.Wow.Helpers.Quest.QuesterCurrentContext.Profile as Quester.Profile.QuesterProfile;
        if (p != null)
        {
            for (int i = 0; i < p.QuestsSorted.Count; i++)
            {
                if (p.QuestsSorted[i].Action == wManager.Wow.Class.QuestAction.StepName && p.QuestsSorted[i].NameClass == stepName)
                {
                    wManager.Wow.Helpers.Quest.QuesterCurrentContext.CurrentStep = i;
                    break;
                }
            }
        }

 

Eee, thanks a lot again)

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