Arcangelo 105 Posted February 26, 2017 Share Posted February 26, 2017 Trying to delete some quest from logs with the code: local questId = xxxxx; for i=1,GetNumQuestLogEntries() do local _, _, _, _, _, _, _, id = GetQuestLogTitle(i); if id == questId then SelectQuestLogEntry(i); SetAbandonQuest(); AbandonQuest(); end end But it dosen't seems to work in the vanilla version :/ any ideas ? Link to comment Share on other sites More sharing options...
Droidz 2734 Posted March 14, 2017 Share Posted March 14, 2017 Hello, try c# code like var logId = Quest.GetLogIdByQuestId(1234); if (logId > 0) { Lua.LuaDoString("SelectQuestLogEntry(" + logId + "); SetAbandonQuest(); AbandonQuest(); "); } (replace 1234 by your quest id) Arcangelo 1 Link to comment Share on other sites More sharing options...
howsthisname 0 Posted February 20, 2019 Share Posted February 20, 2019 On 3/14/2017 at 2:56 PM, Droidz said: Hello, try c# code like var logId = Quest.GetLogIdByQuestId(1234); if (logId > 0) { Lua.LuaDoString("SelectQuestLogEntry(" + logId + "); SetAbandonQuest(); AbandonQuest(); "); } (replace 1234 by your quest id) Currently getting an ' error CS0117: 'wManager.Wow.Helpers.Quest' does not contain a definition for 'GetLogIdByQuestId' ' Link to comment Share on other sites More sharing options...
Matenia 625 Posted February 20, 2019 Share Posted February 20, 2019 You're posting in the vanilla section, other binaries for TBC+ don't have that method. howsthisname 1 Link to comment Share on other sites More sharing options...
howsthisname 0 Posted February 20, 2019 Share Posted February 20, 2019 That explains alot, Thanks Matenia! 1 hour ago, Matenia said: You're posting in the vanilla section, other binaries for TBC+ don't have that method. Link to comment 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