killCount - kill tracker for mudlet

Hi all.

This is a package that counts the number of times you've killed everyone, and the number of times they've each killed you.

It comes with a few aliases to manage the table and search through it. 

download link

https://www.dropbox.com/s/da8434mmlu1ngin/killCount.mpackage?dl=0

example use of aliases "kc all" and "kc help."



Thanks.

Comments

  • Updated the package - fixed some alias regexes to work properly with multi word denizen names. Sorry there's no way of distinguishing between adventurer and denizen kills/deaths, but I couldn't come up with a consistent enough method.
  • Oops! Forgot to remove the "retrieving its corpse" part from one of the package's triggers. 

    Add this function to the end of the script folder named "killCount."
    function killCount.fix()
      local n = 0
      for k, v in pairs(killCount.db) do
        if k:sub(-23, -1) == ', retrieving the corpse' then
          if killCount.db[k:sub(1, -24)] then
            for i = 1, 2 do killCount.db[k:sub(1, -24)][i] = v[i] end
          else
            killCount.db[k:sub(1, -24)] = v
          end
          killCount.db[k] = nil
          n = n + 1
        end
      end
      killCount.save()
      killCount.echo('Rectified '..tostring(n)..' entries.')
    end
    Run it, to remove botched entries in the table.
    lua killCount.fix()

    Find the trigger named "got a kill," and replace this line:

    matches[2] = matches[2]:lower():title()

    With this:

    matches[2] = matches[2]:lower():title():gsub(', retrieving the corpse', '')
    


Sign In or Register to comment.