sycs 1 Posted November 17, 2017 Share Posted November 17, 2017 Hello Not recognize <QuestsSorted Action="If" NameClass="(Quest.HasQuest(40014) && Quest.GetQuestCompleted(40014))" /> How can I execute it? Link to comment https://wrobot.eu/forums/topic/7697-not-recognize-questgetquestcompleted/ Share on other sites More sharing options...
Droidz 2742 Posted November 17, 2017 Share Posted November 17, 2017 Hello, can you give more detail about your problem Link to comment https://wrobot.eu/forums/topic/7697-not-recognize-questgetquestcompleted/#findComment-35197 Share on other sites More sharing options...
sycs 1 Posted November 17, 2017 Author Share Posted November 17, 2017 I use <QuestsSorted Action="If" NameClass="Quest.HasQuest(40014) " /> He can do it but <QuestsSorted Action="If" NameClass="(Quest.HasQuest(40014) && Quest.GetQuestCompleted(40014))" /> Not recognize I need to judge that there is a task and a task to be accomplished.. Sorry, Google translate. I don't know. Can you understand that? Link to comment https://wrobot.eu/forums/topic/7697-not-recognize-questgetquestcompleted/#findComment-35198 Share on other sites More sharing options...
camelot10 155 Posted November 18, 2017 Share Posted November 18, 2017 (edited) Quest.HasQuest(40014) this mean you has quest in quests Quest.GetQuestCompleted(40014) this mean you completed this quest and its not in quest log this condition will never return true since you cannot have quest and done with quest in same time Edited November 18, 2017 by camelot10 Link to comment https://wrobot.eu/forums/topic/7697-not-recognize-questgetquestcompleted/#findComment-35249 Share on other sites More sharing options...
sycs 1 Posted November 18, 2017 Author Share Posted November 18, 2017 Thank you, camelot10 I already know The use of can be solved Quest.HasQuest (40014) & & Quest.IsObjectiveComplete (1, 40014) Link to comment https://wrobot.eu/forums/topic/7697-not-recognize-questgetquestcompleted/#findComment-35251 Share on other sites More sharing options...
Smarter 1 Posted July 8, 2018 Share Posted July 8, 2018 @Droidz is Quest.GetQuestCompleted based off of something internal to the game, or is it tracking completed quests itself. Link to comment https://wrobot.eu/forums/topic/7697-not-recognize-questgetquestcompleted/#findComment-45314 Share on other sites More sharing options...
Droidz 2742 Posted July 8, 2018 Share Posted July 8, 2018 3 hours ago, Smarter said: @Droidz is Quest.GetQuestCompleted based off of something internal to the game, or is it tracking completed quests itself. Yes it is based on https://wow.gamepedia.com/API_GetQuestsCompleted Link to comment https://wrobot.eu/forums/topic/7697-not-recognize-questgetquestcompleted/#findComment-45315 Share on other sites More sharing options...
Smarter 1 Posted July 10, 2018 Share Posted July 10, 2018 If the internal Questing BotBase of WRobot isn't used, then there's no way for the bot to track completed quests. I wrote my own Quest BotBase and realized that :(. Vanilla doesn't have IsQuestFlaggedCompleted :(. I assume your botbase is recording completed quests? How are you detecting the completion, Quest Events? Link to comment https://wrobot.eu/forums/topic/7697-not-recognize-questgetquestcompleted/#findComment-45400 Share on other sites More sharing options...
Matenia 630 Posted July 10, 2018 Share Posted July 10, 2018 He creates diffs of the quest log after different quest events and then knows if a quest was added, removed, etc. Usually that will also tell you whether a quest was abandoned. We do the same in Questie (you can find the Lua code on GitHub). I'm not sure what the underlying Quest.IsObjectiveComplete (1, 40014) does, but I assume it's essentially the same thing: - Get name by quest ID from memory - iterate quest log for matching name (Lua) - iterate objectives on the quest and check for their status (Lua) Link to comment https://wrobot.eu/forums/topic/7697-not-recognize-questgetquestcompleted/#findComment-45401 Share on other sites More sharing options...
Smarter 1 Posted July 10, 2018 Share Posted July 10, 2018 That's what I do now to figure out if the quest is ready for turn in. However, The issue I was having was there was no way to select which quest to turn in if you have multiple completed quests with a NPC, you could only send Quest.CompleteQuest(), it offered a Gossip Option but no way to tell what that option said or was. I was going to simply track the event, but they don't seem to return any Args on Vanilla to let me know which one I completed ? Link to comment https://wrobot.eu/forums/topic/7697-not-recognize-questgetquestcompleted/#findComment-45402 Share on other sites More sharing options...
Matenia 630 Posted July 10, 2018 Share Posted July 10, 2018 QUEST_COMPLETE fires not when you complete the quest, rather when you're about to complete it anyway. The following QUEST_LOG_UPDATE event is when the quest will actually be gone from your log. So all you have to do is temporarily store all quests at QUEST_COMPLETE, then diff them with all quests in your log at QUEST_LOG_UPDATE and you're good. For figuring out which quests to turn in at an NPC, you'll have to check QuestFrameCompleteQuestButton:IsEnabled() Smarter 1 Link to comment https://wrobot.eu/forums/topic/7697-not-recognize-questgetquestcompleted/#findComment-45403 Share on other sites More sharing options...
Smarter 1 Posted July 10, 2018 Share Posted July 10, 2018 Thanks for that. What about on a character that was played by hand now you're trying to figure out where to start from without user input? Theres no way to know it you completed a quest without the bot having been there upon completion? Link to comment https://wrobot.eu/forums/topic/7697-not-recognize-questgetquestcompleted/#findComment-45418 Share on other sites More sharing options...
sb360 17 Posted July 11, 2018 Share Posted July 11, 2018 Pretty sure the bot checks if the character has completed it with IsQuestFlaggedCompleted(questid) Smarter 1 Link to comment https://wrobot.eu/forums/topic/7697-not-recognize-questgetquestcompleted/#findComment-45422 Share on other sites More sharing options...
Smarter 1 Posted July 11, 2018 Share Posted July 11, 2018 That was added in TBC and doesn't exist in Vanilla. Link to comment https://wrobot.eu/forums/topic/7697-not-recognize-questgetquestcompleted/#findComment-45423 Share on other sites More sharing options...
Matenia 630 Posted July 11, 2018 Share Posted July 11, 2018 6 hours ago, Smarter said: Thanks for that. What about on a character that was played by hand now you're trying to figure out where to start from without user input? Theres no way to know it you completed a quest without the bot having been there upon completion? There isn't. If the character was played by hand with questie enabled, you could access its global Lua tables, but that's it. Link to comment https://wrobot.eu/forums/topic/7697-not-recognize-questgetquestcompleted/#findComment-45424 Share on other sites More sharing options...
Smarter 1 Posted July 12, 2018 Share Posted July 12, 2018 That's pretty much where i'm at. This really sucks ?. Kinda lost my drive to continue on the project because of it. Link to comment https://wrobot.eu/forums/topic/7697-not-recognize-questgetquestcompleted/#findComment-45460 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