Kill counter

Scripts and support for your favorite MUD client.
Thordin
Sojourner
Posts: 15
Joined: Tue Sep 21, 2004 3:28 am

Kill counter

Postby Thordin » Mon Sep 27, 2004 12:56 am

After stoping by Nokie's site and viewing his ton-o-stats on his game play I thought it might be cool to keep a list of all the mobs I have killed. I can easily put things in a list. The trick I cant get by is totalling the list.

Just going to collect the mob name on death and stick it in a list.

Example- the list looks like:

a one-legged man
a one-legged man
a one-legged man
a groaning zombie
a wildass dragon named tiamat

and what I want out of it is:

3 a one-legged man
a groaning zombie
a wildass dragon named tiamat

anyone throw me a clue?
Sservis
Sojourner
Posts: 67
Joined: Sun Mar 14, 2004 8:12 pm

Re: Kill counter

Postby Sservis » Wed Sep 29, 2004 12:46 am

I just have a second session running that telnets to localhost and runs mysql and a few aliases to make inter session communication easier.

query insert (${charName}, ${mobName}, 0) into kills

and

query update kills set count=count+1 where mob_name="${mobName}" and char_name="${charName}"


course I'm in linux and tintin, so your mileage may vary.
Gura ASSOC:: 'man im such a prick'
Gura ASSOC:: 'but im so good at it'
Gura ASSOC:: 'especially when im right'

Shar responds to your petition with 'do what we do. just stop listning to gura :P'

Return to “MUD Client Help”

Who is online

Users browsing this forum: No registered users and 16 guests