Jump to content

Check if NPC has quest available


bittzz

Recommended Posts

Hi

Im working on a profile for the TB daily quests.

Does anyone know if there is any syntax for checking if a npc has a quest available?

Like honorbuddy has with "if (HasQuestAvailable(NPC-id));"

Best regards

Link to comment
Share on other sites

I guess something like

            wManager.Wow.ObjectManager.WoWUnit npc = new wManager.Wow.ObjectManager.WoWUnit(48255);
            if (npc.NpcMarkerId.Equals(7))
            {

            }

would work in c# code but i dont know how to implement it into a questing profile

Link to comment
Share on other sites

This works kinda the same

<QuestsSorted Action="RunMacroLua" NameClass="/target Quest NPC" />

<QuestsSorted Action="While" NameClass="wManager.Wow.ObjectManager.ObjectManager.Target.NpcMarkerId.Equals(7) || wManager.Wow.ObjectManager.ObjectManager.Target.NpcMarkerId.Equals(6)&#xD;&#xA;" />

But would be nice with a cleaner solution

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