This does not work and I am not exactly sure what is wrong. Here is my mpdelay
code:
void do_mpdelay( CHAR_DATA *ch, char *argument )
{
char arg[ MAX_INPUT_LENGTH ];
one_argument( argument, arg );
if ( !is_number( arg ) )
{
bug( "MpDelay: invalid arg from vnum %d.",
IS_NPC(ch) ? ch->pIndexData->vnum : 0 );
return;
}
ch->mprog_delay = atoi( arg );
}
The problem lies here:
They can only execute the delay once, so if they had this:
say hi
delay 5 seconds
say whats up
delay 5 seconds
say im cool
The only thing happens is the program executes and says hi, then it waits for 5
seconds, after that, whats up and im cool displays at the same time. So, the
second delay never occurs. Does anyone know what could cause this or have any
input? Thanks