WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   Help finding rare mob quest ID (https://www.wowinterface.com/forums/showthread.php?t=56625)

Spawnova 09-01-18 10:58 AM

Help finding rare mob quest ID
 
I'm looking for a way to find the quest ID associated with a rare to determine if I've killed it today or not, searched for hours can't find anything.

I've tried using eventtrace and checking the results which didn't lead to anything.

Just wondering how people are acquiring this information, would really appreciate the help.

Kanegasi 09-01-18 11:49 AM

The quest IDs are discovered by comparing a list of completed IDs to a new list after killing the rare. There is no method to directly search quest IDs.

You can download BfA treasures for HandyNotes and open the Rares.lua file which has all the rare quest IDs.

Spawnova 09-02-18 02:30 AM

Thank you, I've found a solution with the information provided.

Code:

GetQuestsCompleted(quests1) --before killing rare
GetQuestsCompleted(quests2) --then I call this after killing the rare
table.foreach(quests2,function(k,v)
  if not quests1[k] then
      print(k .. " is new")
  end
end)


Torhal 09-02-18 10:31 AM

You should be using pairs instead of table.foreach - the latter was deprecated in Lua 5.1

sezz 09-04-18 03:19 PM

Quote:

Originally Posted by Spawnova (Post 329957)
Just wondering how people are acquiring this information, would really appreciate the help.

QuestsChanged addon or (unless something changed) extracting the quest IDs from DBFilesClient\Vignette.db2

Spawnova 09-07-18 03:35 PM

Quote:

Originally Posted by Torhal (Post 329969)
You should be using pairs instead of table.foreach - the latter was deprecated in Lua 5.1

Lua is not my primary language; I thought there was a better way but since table.foreach worked I didn't bother looking but now I know to use pairs, thank you! :)


All times are GMT -6. The time now is 05:50 AM.

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