79135 4 Posted September 27, 2017 Share Posted September 27, 2017 How in the easy quests editor in OverridePulseCSharpCode write function like "StepName" ? Link to comment https://wrobot.eu/forums/topic/7220-help-with-quester-profile/ Share on other sites More sharing options...
Droidz 2738 Posted September 29, 2017 Share Posted September 29, 2017 Hello, I don't understand what do you want, can you give more detail please. Link to comment https://wrobot.eu/forums/topic/7220-help-with-quester-profile/#findComment-32807 Share on other sites More sharing options...
camelot10 155 Posted September 29, 2017 Share Posted September 29, 2017 He want to jump to certain step of quester profile from pulse Link to comment https://wrobot.eu/forums/topic/7220-help-with-quester-profile/#findComment-32812 Share on other sites More sharing options...
79135 4 Posted September 29, 2017 Author Share Posted September 29, 2017 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 https://wrobot.eu/forums/topic/7220-help-with-quester-profile/#findComment-32818 Share on other sites More sharing options...
Droidz 2738 Posted October 1, 2017 Share Posted October 1, 2017 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 https://wrobot.eu/forums/topic/7220-help-with-quester-profile/#findComment-32880 Share on other sites More sharing options...
79135 4 Posted March 29, 2018 Author Share Posted March 29, 2018 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) Link to comment https://wrobot.eu/forums/topic/7220-help-with-quester-profile/#findComment-41878 Share on other sites More sharing options...
iMod 99 Posted March 29, 2018 Share Posted March 29, 2018 (edited) 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, 2018 by iMod Link to comment https://wrobot.eu/forums/topic/7220-help-with-quester-profile/#findComment-41879 Share on other sites More sharing options...
79135 4 Posted March 29, 2018 Author Share Posted March 29, 2018 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..) Link to comment https://wrobot.eu/forums/topic/7220-help-with-quester-profile/#findComment-41880 Share on other sites More sharing options...
Droidz 2738 Posted March 29, 2018 Share Posted March 29, 2018 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; } } } Pudge and Matenia 2 Link to comment https://wrobot.eu/forums/topic/7220-help-with-quester-profile/#findComment-41881 Share on other sites More sharing options...
79135 4 Posted March 29, 2018 Author Share Posted March 29, 2018 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 https://wrobot.eu/forums/topic/7220-help-with-quester-profile/#findComment-41883 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now