void do_cprompt( CHAR_DATA *ch, char *argument )
{
char buf [ MAX_STRING_LENGTH ];
buf[0] = '\0';
if ( IS_NPC(ch) ) return;
if ( argument[0] == '\0' )
{
do_help( ch, "cprompt" );
return;
}
if( !strcmp( argument, "clear" ) )
{
free_string(ch->cprompt);
ch->cprompt = str_dup( "" );
return;
}
else
{
if ( strlen( argument ) > 50 )
argument[50] = '\0';
smash_tilde( argument );
strcat( buf, argument );
}
free_string( ch->cprompt );
ch->cprompt = str_dup( buf );
send_to_char( "Ok.\n\r", ch );
return;
} /*this is line 4952 as stated earlier*/
if ( dt == gsn_malice )
{
one_hit( ch, victim, dt, 1 );
return;
}
if (!IS_NPC(ch) && IS_CLASS(ch, CLASS_ANTIPALADIN) && IS_SET(ch->pcdata->powers[15], APOWER_MALICE))
{
one_hit(ch,victim,gsn_malice,1);
one_hit(ch,victim,gsn_malice,1);
one_hit(ch,victim,gsn_malice,1);
}
if (IS_CLASS(victim,CLASS_ANTIPALADIN) && IS_SET(victim->pcdata->powers[15], APOWER_TAKAURA))
{
while (number_range(1, 2) != 1)
one_hit(victim, ch, gsn_takaura, 0);
while (number_range(1, 2) != 1)
one_hit(victim, ch, gsn_takaura, 0);
while (number_range(1, 2) != 1)
one_hit(victim, ch, gsn_takaura, 0);
}
/*one_hit*/
if (dt == gsn_takaura) dam *= 3;
/*number_attacks (twice is_npc vict/!is_npc vict)*/
if (IS_CLASS(ch, CLASS_ANTIPALADIN))
{
count += 5;
if (IS_SET(ch->pcdata->powers[15], APOWER_SPEED)) count += 2;
}
/*update_damcap*/
if (IS_CLASS(ch, CLASS_ANTIPALADIN)) max_dam += ch->pcdata->powers[DARKARTS] * 120;
/*hurt_person: Add in some ors so antipaladins can get demon points*/
/*check_parry/check_dodge*/
if (IS_CLASS(ch, CLASS_ANTIPALADIN)) chance -= 30;
if (IS_CLASS(victim, CLASS_ANTIPALADIN)) chance += 30;
act_info.c:4952: error: expected declaration or statement at end of input
I'm not sure what I am missing although it is probably something I simply overlooked.
Thanks
Arsenickills