eldhamud/boards/
eldhamud/clans/
eldhamud/classes/
eldhamud/councils/
eldhamud/deity/
eldhamud/doc/
eldhamud/doc/DIKU/
eldhamud/doc/MERC/
eldhamud/doc/mudprogs/
eldhamud/houses/
/****************************************************************************
 *   _______  _        ______            _______  _______           ______   *
 *  (  ____ \( \      (  __  \ |\     /|(  ___  )(       )|\     /|(  __  \  *
 *  | (    \/| (      | (  \  )| )   ( || (   ) || () () || )   ( || (  \  ) *
 *  | (__    | |      | |   ) || (___) || (___) || || || || |   | || |   ) | *
 *  |  __)   | |      | |   | ||  ___  ||  ___  || |(_)| || |   | || |   | | *
 *  | (      | |      | |   ) || (   ) || (   ) || |   | || |   | || |   ) | *
 *  | (____/\| (____/\| (__/  )| )   ( || )   ( || )   ( || (___) || (__/  ) *
 *  (_______/(_______/(______/ |/     \||/     \||/     \|(_______)(______/  *
 *              +-+-+-+  +-+-+-+-+-+-+-+  +-+-+-+-+-+-+-+-+-+-+              *
 *              |T|h|e|  |O|a|k|l|a|n|d|  |C|h|r|o|n|i|c|l|e|s|              *
 *              +-+-+-+  +-+-+-+-+-+-+-+  +-+-+-+-+-+-+-+-+-+-+              *
 * ------------------------------------------------------------------------- *
 * EldhaMUD code (C) 2003-2005 by Robert Powell (Tommi)                      *
 * EldhaMUD Team: Celest, Altere and Krelowyn                                *
 * ------------------------------------------------------------------------- *
 *                                                                           *
 ****************************************************************************/


#include "mud.h"

void do_combo(CHAR_DATA *ch, char *argument)
{
bool success;

  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);
	  success = FALSE;
          return;
        }
      else
        do_punch( ch, "" );
        do_punch( ch, "" );
        do_punch( ch, "" );
	learn_from_success( ch, gsn_combo );
        return;
    }

  if ( !str_cmp( argument, "kick" ) )
    {
      if ( !can_use_skill(ch, 80, gsn_kick ))
        {
          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, "" );
	learn_from_success( ch, gsn_combo );
        return;
    }


  if ( !str_cmp( argument, "bash" ) )
    {
      if ( !can_use_skill(ch, 80, gsn_bash ))
        {
          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, "" );
	learn_from_success( ch, gsn_combo );
        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, "" );
	learn_from_success( ch, gsn_combo );
        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, "" );
	learn_from_success( ch, gsn_combo );
        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, "" );
	learn_from_success( ch, gsn_combo );
        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, "" );
	learn_from_success( ch, gsn_combo );
        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, "" );
	learn_from_success( ch, gsn_combo );
        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, "" );
	learn_from_success( ch, gsn_combo );
        return;
    }      
  return;
}