ZMud Killcounter

by Unknown

Back to Mechanic's Corner.

Unknown2004-12-26 06:04:01
Can anyone tell me how to create a killounter fro zmud? I had one but it just broke and I have no idea why or where I got it.
Drago2004-12-26 11:11:54
I made one, not sure how well it works, but it seems to do ok.
CODE
#CLASS Killcounter
#TRIGGER {^You have slain (%w).$} {#if (@killed%1) {#ad killed%1 1} {#Class Killcounter|Variables;#var killed%1 1;#var killedby%1 0;#CLASS 0}}
#TRIGGER {^You have been slain by (%w).$} {#if (@killedby%1) {#ad killedby%1 1} {#Class Killcounter|Variables;#var killed%1 0;#var killedby%1 1;#CLASS 0}}
#ALIAS showscore #if (%1) {#if (@killed%1) {#if (@killedby%1) {#ec You: @killed%1 | %proper( %1): @killedby%1} {#ec You: @killed%1 | %proper( %1): 0} {#ec You: 0 | %proper( %1): @killedby%1} {#ec You must specify who you want to compare to.}}}}
#CLASS 0

*chuckle* I made this ages ago and forgot all about it *checks his scores*

It only picks up the first word for mobs, so 'a' or 'an' in most cases. I could fix that but its getting late so.. maybe after new years when I get back from mah short holiday to hell (or victoria, same thing)

Just for interests sake, since I put it in for Imperian I've killed 724 'a' (a vile serpent) and against people my best score is..'You: 6 | Arlith: 0' all from ffas and bloodbaths. I don't get why more magi aren't totally insane combatants, its just so easy..

Edit: That #CLASS 0 is an annoying thing to leave out glare.gif