September 27, 20178 yr How in the easy quests editor in OverridePulseCSharpCode write function like "StepName" ?
September 29, 20178 yr Author 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)
October 1, 20178 yr 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'))
March 29, 20188 yr Author 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)
March 29, 20188 yr 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 March 29, 20188 yr by iMod
March 29, 20188 yr Author 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..)
March 29, 20188 yr 5 minutes ago, 79135 said: I mean I want use the code from quester profile ( I don't use custom profile..) 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; } } }
March 29, 20188 yr Author 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