Jump to content

Help with quester profile


79135

Recommended Posts

5 hours ago, Droidz said:

Hello, I don't understand what do you want, can you give more detail please.

 

4 hours ago, camelot10 said:

He want to jump to certain step of quester profile from pulse

Yes)

Link to comment
Share on other sites

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'))

Link to comment
Share on other sites

  • 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

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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;
                }
            }
        }

 

Link to comment
Share on other sites

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)

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