eldhamud/boards/
eldhamud/clans/
eldhamud/classes/
eldhamud/councils/
eldhamud/deity/
eldhamud/doc/
eldhamud/doc/DIKU/
eldhamud/doc/MERC/
eldhamud/doc/mudprogs/
eldhamud/houses/

#include "mud.h"

void do_combo(CHAR_DATA *ch, char *argument)
{
//  CHAR_DATA *victim;

  if ( IS_NPC(ch) && IS_AFFECTED( ch, AFF_CHARM ) )
    {
      send_to_char( "You can't concentrate enough for that.\n\r", ch );
      return;
    }

  if ( !ch->fighting )
    {
      send_to_char( "You aren't fighting anyone.\n\r", ch );
      return;
    }

  if ( !str_cmp( argument, "punch" ) )
    {
      if ( can_use_skill(ch, 80, gsn_punch ))
        {
          send_to_char("You need a minimum or 80% in the skill to combo it!!!!\n\r", ch);
          return;
        }
      else
        do_punch( ch, "" );
        do_punch( ch, "" );
        do_punch( ch, "" );
        return;
    }

  if ( !str_cmp( argument, "kick" ) )
    {
      if ( !can_use_skill(ch, 80, gsn_punch ))
        {
          send_to_char("You need a minimum or 80% in the skill to combo it!!!!\n\r", ch);
          return;
        }
      else
        do_kick( ch, "" );
        do_kick( ch, "" );
        do_kick( ch, "" );
        return;
    }


  if ( !str_cmp( argument, "bash" ) )
    {
      if ( !can_use_skill(ch, 80, gsn_punch ))
        {
          send_to_char("You need a minimum or 80% in the skill to combo it!!!!\n\r", ch);
          return;
        }
      else
        do_bash( ch, "" );
        do_bash( ch, "" );
        do_bash( ch, "" );
        return;
    }
  
  if ( !str_cmp( argument, "headbutt" ) )
    {
      if ( !can_use_skill(ch, 80, gsn_headbutt ))
        {
          send_to_char("You need a minimum or 80% in the skill to combo it!!!!\n\r", ch);
          return;
        }
      else
        do_headbutt( ch, "" );
        do_headbutt( ch, "" );
        do_headbutt( ch, "" );
        return;
    }
  if ( !str_cmp( argument, "jab" ) )
    {
      if ( can_use_skill(ch, 80, gsn_jab ))
        {
          send_to_char("You need a minimum or 80% in the skill to combo it!!!!\n\r", ch);
          return;
        }
      else
        do_jab( ch, "" );
        do_jab( ch, "" );
        do_jab( ch, "" );
        return;
    }    
    
  if ( !str_cmp( argument, "knee" ) )
    {
      if ( !can_use_skill(ch, 80, gsn_knee ))
        {
          send_to_char("You need a minimum or 80% in the skill to combo it!!!!\n\r", ch);
          return;
        }
      else
        do_knee( ch, "" );
        do_knee( ch, "" );
        do_knee( ch, "" );
        return;
    }    
    
    if ( !str_cmp( argument, "roundhouse" ) )
    {
      if ( !can_use_skill(ch, 80, gsn_roundhouse ))
        {
          send_to_char("You need a minimum or 80% in the skill to combo it!!!!\n\r", ch);
          return;
        }
      else
        do_roundhouse( ch, "" );
        do_roundhouse( ch, "" );
        do_roundhouse( ch, "" );
        return;
    }    
    
    if ( !str_cmp( argument, "spinkick" ) )
    {
      if ( !can_use_skill(ch, 80, gsn_spinkick ))
        {
          send_to_char("You need a minimum or 80% in the skill to combo it!!!!\n\r", ch);
          return;
        }
      else
        do_spinkick( ch, "" );
        do_spinkick( ch, "" );
        do_spinkick( ch, "" );
        return;
    }    
    
    if ( !str_cmp( argument, "uppercut" ) )
    {
      if ( !can_use_skill(ch, 80, gsn_uppercut ))
        {
          send_to_char("You need a minimum or 80% in the skill to combo it!!!!\n\r", ch);
          return;
        }
      else
        do_uppercut( ch, "" );
        do_uppercut( ch, "" );
        do_uppercut( ch, "" );
        return;
    }      

  WAIT_STATE( ch, 2 * PULSE_VIOLENCE );
  if ( can_use_skill(ch, 80,gsn_combo ) )
    {
      learn_from_success( ch, gsn_combo );
 //     	global_retcode = damage( ch, victim, number_range( 1, ch->level ), gsn_combo );
    }
  else
    {
      learn_from_failure( ch, gsn_combo );
//      	global_retcode = damage( ch, victim, 0, gsn_combo );
    }
  return;


}