Alright, take a look at mine and try it instead of that one, since this is the one that I use (I run SWR though).
/*
* Critical Hit -- Add onto by randomizing the critical hit and damage...
* By: Josh Jenks [Haelyn]...snippet for SMAUG 1.4a
* Added in and changed by Odis
*/
if ( diceroll >= 19 )
{
int place;
place = number_range( 1, 4 );
if ( place == 1 )
{
act( AT_FIRE, "You hit $N's hand!", ch, NULL, victim, TO_CHAR );
act( AT_FIRE, "$n hits your hand!", ch, NULL, victim, TO_VICT );
act( AT_FIRE, "$n hits $N's!", ch, NULL, victim, TO_NOTVICT );
dam *= 1.5;
}
else if ( place == 2 )
{
act( AT_FIRE, "You critically hit $N in the chest!", ch, NULL, victim, TO_CHAR );
act( AT_FIRE, "$n critically hits you in the chest!", ch, NULL, victim, TO_VICT );
act( AT_FIRE, "$n critically hits $N in the chest!", ch, NULL, victim, TO_NOTVICT );
dam *= 2;
}
else if ( place == 3 )
{
act( AT_FIRE, "You bash $N's head!", ch, NULL, victim, TO_CHAR );
act( AT_FIRE, "$n bashes your head!", ch, NULL, victim, TO_VICT );
act( AT_FIRE, "$n bashes $N's head!", ch, NULL, victim, TO_NOTVICT );
dam *= 3;
}
else if( place == 4 )
{
act( AT_FIRE, "You mutilate $N's groin!", ch, NULL, victim, TO_CHAR );
act( AT_FIRE, "$n mutilates you in the groin!", ch, NULL, victim, TO_VICT );
act( AT_FIRE, "$n mutilates $N's groin!", ch, NULL, victim, TO_NOTVICT );
dam *= 2;
}
}
Thats the one that I have and it works for me, so you might try it. Just a suggestion. I don't really know why he made it just 19's only, I changed it to 19-20. Good luck. |