1. #1

    Question Looking for addon or WA to track number of BOARS KILLED

    Long story short, I'm gonna be killing boars all over Azeroth the next couple of days.

    I'd like to be able to provide an update on the number of boars that I have killed during that timeframe.

    My problem is, there will be a couple of times where I will have to go kill different boars - and I feel like most trackers out there (that I have seen) won't be able to identify that while Boar A and Boar B are DIFFERENT, they are still boars.

    Would any of you world class UI Scientists be able to help me get something up on my screen with either total boar kill numbers or total kill numbers (since I guess I'm only killing boars, any way for my UI to show how many things I've killed in total would be super helpful too).

    Thanks in advance, friendos!

  2. #2
    Pen and paper.


    But you should be able to write a simple weakaura that tracks certain mobs killed. You just need to know the name of the NPCs I guess.
    I can look it up when Im back home but that will be in 3-4 hours

  3. #3
    If you are killing only boars something simple like Combat log trigger,"target", killing blow. I assume you are the reddit guy, post your stream too!

  4. #4
    while I can't help with a solution I am curious to know why you intend to do something which sounds so boar-ing

    I may be addicted to making awful puns

  5. #5
    Scarab Lord 3DTyrant's Avatar
    10+ Year Old Account
    Join Date
    Oct 2010
    Location
    The Aether
    Posts
    4,221
    Quote Originally Posted by rayvio View Post
    while I can't help with a solution I am curious to know why you intend to do something which sounds so boar-ing

    I may be addicted to making awful puns
    It's almost un-boar-able... Nope, doesn't work as well as un-bear-able
    Shath'mag vwyq shu et'agthu, Shath'mag sshk ye! Krz'ek fhn'z agash zz maqdahl or'kaaxth'ma amqa!
    The Black Empire once ruled this pitiful world, and it will do so again! Your pitiful kind will know only despair and sorrow for a hundred thousand millennia to come!
    Avatar drawn by Sir Meo

  6. #6
    Custom - Event - COMBAT_LOG_EVENT_UNFILTERED

    Code:
    function(event, timeStamp, subevent, hideCaster, sourceGUID, sourceName, sourceFlags, sourceRaidFlags, destGUID, destName)
    aura_env.count = aura_env.count or 0
       if subevent == "UNIT_DIED" then
          if destName and destName:find("boar") then
                aura_env.count = aura_env.count +1
                return true
            end
         end
    end
    Then in display %c with

    Code:
    function()
    return aura_env.count
    end

    Should work fine, Not tested as not able to log onto wow atm

  7. #7
    The problem with a weakaura is that there’s no saving. If you intend to logout at any time, you need to save the count to a savedvariable on an addon.

    Similarly, I would suggest at least writing down the number occasionally, WoW crashing would also not save the number even if it was an addon with savedvariables.
    Originally Posted by Zarhym (Blue Tracker)
    this thread is a waste of internet

  8. #8
    I AM Reddit guy, lol - extended downtime, but we're gonna play heroes for a bit - search twitch for ianxplosion, I can't post links lol

  9. #9
    I have compiled all NPC IDs of the 100 boars in the game according to https://www.wowhead.com/boar-npcs

    Code:
    local boar={
    	[113]=true,
    	[119]=true,
    	[157]=true,
    	[330]=true,
    	[345]=true,
    	[454]=true,
    	[524]=true,
    	[547]=true,
    	[708]=true,
    	[1125]=true,
    	[1689]=true,
    	[1984]=true,
    	[1985]=true,
    	[2966]=true,
    	[3098]=true,
    	[3099]=true,
    	[3100]=true,
    	[5992]=true,
    	[8303]=true,
    	[16117]=true,
    	[16863]=true,
    	[16879]=true,
    	[16880]=true,
    	[16992]=true,
    	[21195]=true,
    	[21878]=true,
    	[22180]=true,
    	[34647]=true,
    	[36696]=true,
    	[37559]=true,
    	[38141]=true,
    	[39224]=true,
    	[40337]=true,
    	[42357]=true,
    	[42504]=true,
    	[42719]=true,
    	[42859]=true,
    	[44089]=true,
    	[44627]=true,
    	[46575]=true,
    	[50302]=true,
    	[50937]=true,
    	[50940]=true,
    	[50942]=true,
    	[50945]=true,
    	[50946]=true,
    	[50947]=true,
    	[50948]=true,
    	[50949]=true,
    	[72934]=true,
    	[74566]=true,
    	[74567]=true,
    	[74620]=true,
    	[75037]=true,
    	[75115]=true,
    	[75151]=true,
    	[75206]=true,
    	[75241]=true,
    	[75416]=true,
    	[75954]=true,
    	[76178]=true,
    	[76914]=true,
    	[77124]=true,
    	[77129]=true,
    	[77298]=true,
    	[77478]=true,
    	[77655]=true,
    	[77742]=true,
    	[77785]=true,
    	[77881]=true,
    	[77994]=true,
    	[79756]=true,
    	[80174]=true,
    	[82617]=true,
    	[82726]=true,
    	[82728]=true,
    	[83719]=true,
    	[83897]=true,
    	[84893]=true,
    	[84943]=true,
    	[86150]=true,
    	[86151]=true,
    	[86153]=true,
    	[86850]=true,
    	[88460]=true,
    	[88508]=true,
    	[88589]=true,
    	[89132]=true,
    	[89688]=true,
    	[89689]=true,
    	[91936]=true,
    	[92875]=true,
    	[92876]=true,
    	[92887]=true,
    	[93903]=true,
    	[100846]=true,
    	[101575]=true,
    	[107503]=true,
    	[119337]=true,
    	[119339]=true,
    }

    All you need to do is have a weakaura watch for your kills using COMBAT_LOG_EVENT_UNFILTERED and check for the NPC ID like so:

    Code:
    function(_,event,_,sourceGUID,_,_,_,destGUID)
    	if (event=='UNIT_DIED' or event=='PARTY_KILL') and sourceGUID==UnitGUID('player') and destGUID then
    -- example of a GUID is this one for a Raider's Training Dummy: Creature-0-970-0-11-31146-000136DF91
    		local type,_,serverID,instanceID,zoneID,npcID,spawnID=strsplit('-',destGUID)
    		if type=='Creature' and boar[tonumber(npcID)] then
    			  --counter code here
    		end
    	end
    end

    This is not complete code, I only helped with the boar IDs and this CLEU wrapper. Anyone may continue with this.

    Keep in mind my earlier post that any count you have will not be saved if you're using a weakaura. Also, this will only record your killing blows. If you are fighting a boar and someone else finishes it off, it won't count.
    Last edited by Kanegasi; 2018-01-17 at 05:06 AM. Reason: fixed some errors
    Originally Posted by Zarhym (Blue Tracker)
    this thread is a waste of internet

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •