What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

c# help pls, WoWQuestCurrentStep and Quest.QuestObjective

thephoenix25

New Member
Joined
Jan 15, 2010
Messages
289
Reaction score
4
Hi,

Can someone please help me with this. I've been trying this for days with no success.

Using Questbot, what I want is to find the current quest and quest step/objective, but I just don't seem to be able to work it out.

Styx.Logic.Questing.QuestLog ql = new Styx.Logic.Questing.QuestLog();
returns populated with the quests in my log.

Styx.Logic.Questing.WoWQuestCurrentStep wq = new Styx.Logic.Questing.WoWQuestCurrentStep();
returns empty.

Styx.Logic.Questing.Quest.QuestObjective qo = new Styx.Logic.Questing.Quest.QuestObjective();
Also returns empty.

Just a nudge in the right direction would be greatfully appreciated
 
Code:
foreach (PlayerQuest quest in ql)
{
   WoWQuestCompletionInfo info;
   if (!quest.GetCompletionInfo(out info))
      continue;
   // info now has a pointer to WoWQuestState, WoWQuestCurrentStep and a collection of WoWQuestCurrentStep
   List<Quest.QuestObjective> objectives = quest.GetObjectives();
   // objectives now contains a list of all POSSIBLE objectives. Note that many will have IsEmpty set to true and should be ignored.
}

Also note that the objective index 0xFFFFFFFF (-1 signed) is for 'turn in' and will not have an entry in the objectives list, but will probably have a step.
 
Back
Top