Questcompletion macro
Hi,
Is there a way to print quest names only by providing quest ID numbers in a macro? This would solve my space issues, I need to check 9-10 quests at once in a vertical list of quest names colored by completion: Is that possible to modify this macro to remove manually added quest names and list it vertically? Code:
/run local t,s={"Terrorfist",39288,"Vengeance",39290,"Deathtalon",39287,"Doomroller",39289},'' for i=1,#t-1,2 do s=s..(IsQuestFlaggedCompleted(t[i+1]) and '\124cffff0000' or '\124cff00ff00')..t[i]..'\124r, ' end print(s:sub(1,-3)) Are these options possible without using a macro extender addon? Thanks in advance. |
I haven't tested it yet, but maybe C_TaskQuest.GetQuestTitleByQuestID().
|
Can this be used in macros? I'm completely newb for macros. :confused:
Oh, forgot to mention I'm looking for solution for the Legion api. Not sure if this changes anything. |
That function is specifically for "task" quests and won't work for you. It's possible to get a quest name from a quest ID through tooltip scanning, but not in a way that would shorten your macro.
|
dam! sad to hear.. :(
Thanks for the replies anyway! :p Would you help me on how can I sort the list of quest for the macro above vertically? |
Quote:
Lua Code:
|
You don't need to specify the end as #t-1. It'll stop if the step bumps the integer past the end. For example, for i=1,4,2 do will loop 1 and 3, then stop, because 5 will be greater than 4.
|
Quote:
Quote:
|
Quote:
|
Cool!
Thank you guys! |
All times are GMT -6. The time now is 07:07 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI