I am running a World of Darkness game on irc, but need a better dice roller. What I need it to do is the following:

If a user types roll X then it needs to roll X ten-sided dice, and display each roll.

Eg:
Code:
<User> I try and shoot him.
<@Me> Ok. His defence is 2, your Dex+Firearms is 7 and his defence applies as it is point blank.
<@Me> 5 dice then.
<User> roll 5
* @Me User rolls 5 dice: 1, 3, 10, 7, 8


If possible it should give the output with mIRC color codes, so the text should be 0,1 (White on Black) except for:
10 : Bright Green on Black
8 & 9 : Dark Green on Black
2 to 7: White on Black
1 : Red on Black.

Please post the code snippet both here and in the code snippet section of this site...
You can check out the basic rules of World of Darkness on www.white-wolf.com, there are several "demo" games, but the one for Vampire: the Requiem is both a small download and informative about the mechanics.

I know I could use another dice script, but they are inefficient for my purpose.

Thanks,
Yuki.
[/i]