Jump to content

Recommended Posts

  On 9/29/2017 at 7:54 AM, Droidz said:

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

Expand  

 

  On 9/29/2017 at 8:55 AM, camelot10 said:

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

Expand  

Yes)

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 10/1/2017 at 9:11 AM, 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'))

Expand  

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
  On 3/29/2018 at 12:05 PM, 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.

Expand  

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

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

  On 3/29/2018 at 12:08 PM, 79135 said:

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

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

Expand  

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

 

  On 3/29/2018 at 12:14 PM, 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;
                }
            }
        }

 

Expand  

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