The problem would not be in the delay setting function. The problem would be
with in you code interpret fucntion, and not working for 2 delays in one
code. Walk though that, and see if maybe you can see why.


----- Original Message ----- 
From: <[EMAIL PROTECTED]>
To: <[email protected]>
Cc: <[EMAIL PROTECTED]>
Sent: Saturday, October 25, 2003 9:23 PM
Subject: Mob delay in the mob programs


> 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
>
> -- 
> ROM mailing list
> [email protected]
> http://www.rom.org/cgi-bin/mailman/listinfo/rom
>


Reply via email to