Jump to content

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
https://wrobot.eu/forums/topic/5232-delete-quests-from-log/
Share on other sites

  • 3 weeks later...

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)

Link to comment
https://wrobot.eu/forums/topic/5232-delete-quests-from-log/#findComment-24784
Share on other sites

  • 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
https://wrobot.eu/forums/topic/5232-delete-quests-from-log/#findComment-51707
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...