Jump to content

Delete quests from log


Recommended Posts

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

  • 3 weeks later...
  • 1 year later...
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

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