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

Developer Questions

valt

New Member
Joined
May 6, 2011
Messages
15
Reaction score
0
Good afternoon all,

I have two questions.

First, Say for instance you have an npc with random quests (tol barad) is there a function or "condition" that you could trigger like HasQuest(12345), but instead for an NPC like NPCHasQuest(12345).

Second, is there a websites that lists xyz cords for mobs. Wowhead has x,y cords based of the map location i believe. Im assuming xyz cords are more of the back end thing. If there were such a site that lists mob locations you could create profiles without being in the game, which would be most desirable at work ahaha.

Thank you for your help in advance.
 
PHP:
             <If Condition="((!HasQuest() &amp;&amp; (!IsQuestCompleted()" >
             <!-- This is the MobId, not QuestId -->
             <While Condition="HasQuestAvailable(25356)" >
                <CustomBehavior File="InteractWith"  MobId="25356" NumOfTimes="1" CollectionDistance="200" WaitTime="1000" X="3464.947" Y="5897.95" Z="145.0998" />
                <CustomBehavior File="RunMacro" Macro="/click GossipTitleButton1" NumOfTimes="1" WaitTime="1000" />
                <CustomBehavior File="RunMacro" Macro="/click QuestFrameAcceptButton" NumOfTimes="1" WaitTime="1000" />
                <CustomBehavior File="WaitTimer" WaitTime="60000"/>
             </While>
            </If>

This is basically if the mob has a quest available then it will get it. Dunno if this is what you're looking for though.

2# Would really, really want this too.
 
PHP:
             <If Condition="((!HasQuest() &amp;&amp; (!IsQuestCompleted()" >
             <!-- This is the MobId, not QuestId -->
             <While Condition="HasQuestAvailable(25356)" >
                <CustomBehavior File="InteractWith"  MobId="25356" NumOfTimes="1" CollectionDistance="200" WaitTime="1000" X="3464.947" Y="5897.95" Z="145.0998" />
                <CustomBehavior File="RunMacro" Macro="/click GossipTitleButton1" NumOfTimes="1" WaitTime="1000" />
                <CustomBehavior File="RunMacro" Macro="/click QuestFrameAcceptButton" NumOfTimes="1" WaitTime="1000" />
                <CustomBehavior File="WaitTimer" WaitTime="60000"/>
             </While>
            </If>

This is basically if the mob has a quest available then it will get it. Dunno if this is what you're looking for though.

2# Would really, really want this too.

My tb profiles (peninsula and baradin hold dailies) have this code - the full profiles are avail via my svn
 
First, Say for instance you have an npc with random quests (tol barad) is there a function or "condition" that you could trigger like HasQuest(12345), but instead for an NPC like NPCHasQuest(12345).

This is BugTracker #938, and has yet to be addressed. If you've specific examples for your need, please post them into the tracker so it will gain more credence that it needs to be dealt with.


Second, is there a websites that lists xyz cords for mobs. Wowhead has x,y cords based of the map location i believe. Im assuming xyz cords are more of the back end thing. If there were such a site that lists mob locations you could create profiles without being in the game, which would be most desirable at work.

There is no database that contains that needed Z coordinate. You're stuck with the tools provided by Honorbuddy.


cheers,
chinajade
 
This is BugTracker #938, and has yet to be addressed. If you've specific examples for your need, please post them into the tracker so it will gain more credence that it needs to be dealt with.




There is no database that contains that needed Z coordinate. You're stuck with the tools provided by Honorbuddy.


cheers,
chinajade
Thats exactly what i'm looking for.. I hope they implement it sooner or later.

But anyway for now you accomplish this by custom behaviors. . if i understand it correctly it says does dude x have quests available?! Yes? Click first quest title button, click accept and then loops through each quest dude. Then you do the quest checking later on. Thank you all for your help.

Also, Kickazz006 I find your over abundance of alliance profiles disturbing, but thanks for the reference.
 
Last edited:
There is no database that contains that needed Z coordinate. You're stuck with the tools provided by Honorbuddy

usually HB knows for itself where the npcs are, you just need their number.
(exception are mobs with multiple locations and a few that are not in the db yet)
 
For the NpcHasQuest a new BQ is probably needed and code like this will have to be used.
Code:
        public bool NPCHasQuest()
        {
          foreach (WoWUnit NPC in ObjectManager.GetObjectsOfType<WoWUnit>(false))
            {
                if (NPC.QuestGiverStatus == QuestGiverStatus.Available && NPC.Name == "NpcName")
                {
                    Navigator.MoveTo(NPC.Location);
                    NPC.Interact();
                    //Fame is open.
                    List<Styx.Logic.Inventory.Frames.Gossip.GossipQuestEntry> QuestFromNpc = Styx.Logic.Inventory.Frames.Gossip.GossipFrame.Instance.AvailableQuests.FindAll(s => s.Id == 123455 && s.IsValid && s.RequiredLevel >= Me.Level);
                    if (QuestFromNpc.Count > 0)
                    {
                        Logging.Write("we found the quest!");
                        return true;
                    }
                }
            }
          return false;
        }
so its not out of the realm of possibility.
 
Good afternoon all,

I have two questions.

First, Say for instance you have an npc with random quests (tol barad) is there a function or "condition" that you could trigger like HasQuest(12345), but instead for an NPC like NPCHasQuest(12345).

Second, is there a websites that lists xyz cords for mobs. Wowhead has x,y cords based of the map location i believe. Im assuming xyz cords are more of the back end thing. If there were such a site that lists mob locations you could create profiles without being in the game, which would be most desirable at work ahaha.

Thank you for your help in advance.

Can you give me an exact quest you're talking about? the code in my profile should be fine for all quests in tb / bh.

explain what you want to do in detail
 
Can you give me an exact quest you're talking about? the code in my profile should be fine for all quests in tb / bh.

explain what you want to do in detail

Your profiles actually helped me out... A LOT and i thank you for them. I think your TB Peninsula Dailies profile is broken though and any profile that uses that macro, because correct me if im wrong, but i think GossipTitleButton was replaced with QuestTitleButton... I dont have an alliance character to test your profile out though. I found this nice little macro /framestack that gives names of UI Elements. /click QuestTitleButton1 works correctly, but each quest is a different number so you'd have to have an auto incrementing variable or something. Also, I would check MOBID's in TB looks like some were changed in a patch because wowhead was completely wrong. On horde side anway :]
 
Last edited:
it may not work in game from you typing it out, but the bot overrides the ui
 
Back
Top