WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   PTR API and Graphics Changes (https://www.wowinterface.com/forums/forumdisplay.php?f=175)
-   -   GetNumQuestLogEntries() gone? (https://www.wowinterface.com/forums/showthread.php?t=58132)

Ehnoah 08-02-20 10:23 AM

GetNumQuestLogEntries() gone?
 
Hey,

so I was trying to use a Macro Ingame to quick abadon quests, I used QuestLogEntries() in my Loop, however in Shadowlands it just returns that this Function no longer exists, so I am curious, if anyone know, how it was replaced?

sezz 08-02-20 10:57 AM

did you try C_QuestLog.GetNumQuestLogEntries() ?

Ehnoah 08-02-20 11:18 AM

Oh that works, curious, so this is needed now ?

The Macro I ran before was:


/run for i=1,GetNumQuestLogEntries() do SelectQuestLogEntry(i); SetAbandonQuest(); AbandonQuest(); end


Seems SelectQuestLogEntry is also gone?

p3lim 08-02-20 01:57 PM

Eventually all of the API is moving over to namespaced C_*, they usually do larger portions of this each expansion, this time it was gossip/questlog API.

Have a look at this: https://www.townlong-yak.com/framexm...IDocumentation

Dools1337 10-24-20 06:52 PM

If anyone is looking for the updated macro :

Quote:

/run for i=1,C_QuestLog.GetNumQuestLogEntries() do C_QuestLog.SetSelectedQuest(C_QuestLog.GetInfo(i).questID); C_QuestLog.SetAbandonQuest(); C_QuestLog.AbandonQuest(); end

As referenced here :

https://www.townlong-yak.com/framexm...ion#s:questlog

P.S : Sorry for necro


All times are GMT -6. The time now is 01:36 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI