QuestsChanged

QuestsChanged

8.3k Downloads

Track NPC ids

kemayo opened this issue · 0 comments

commented
> 1:21 AM <znf> wish there would be some easy way to also get the npc id & stuff
> 1:28 AM <znf> I had to:
> 1:28 AM <znf> /run local i=select(6,strsplit("-",UnitGUID("target"))); local n=UnitName("target"); local po = C_Map.GetPlayerMapPosition(C_Map.GetBestMapForUnit("player"), "player");  local p = C_Map.GetPlayerMapPosition(C_Map.GetBestMapForUnit("player"), "player"); local x,y = p:GetXY(); print(format("[%d%d] = {quest=qid, npc=%s, item=nil}, -- %s", x*10000, y*10000, i, n))
> 1:36 AM <znf> Kemayo, could be an idea that if I'm targetting a dead rare mob when the quest is completed AND the quest name returns "unknown" (or whatever it does), also store the npc ID / name?
> 1:45 AM <Kemayo> I’ll poke at it and see if that gives decent results. I might need to tweak when it scans for quest completion.