I don't know about him but I'd love the help, I have the same snippet, downloaded from the same spot but there's a problem with it. It says "you critically hit blah blah or they critically hit you, but it doesn't actually do any damage, none at all. Here's the snippet:
1.) Open fight.c
2.) Find the following code:
if ( !wield ) /* bare hand dice formula fixed by Thoric */
dam = number_range( ch->barenumdie, ch->baresizedie * ch->barenumdie );
else
dam = number_range( wield->value[1], wield->value[2] );
And directly after that paste :
/*
* Critical Hit Snippet
* By Josh Jenks [ Haelyn ]
*/
if ( diceroll == 19 )
{
act( AT_FIRE, "You critically hit $N!", ch, NULL, victim, TO_CHAR );
act( AT_FIRE, "$n critically hits you!", ch, NULL, victim, TO_VICT );
act( AT_FIRE, "$n critically hits $N!", ch, NULL, victim, TO_NOTVICT );
dam = dam*2;
}
If you know how to make it actually do the damage it's supposed to that would be great, and if you feel like telling me how to incorporated your system for chest/head/face/feet hits as well, I would love you forever :P |