Ok, i've found this part of code. But the only things it seems to do is check some things and then WAIT_STATE ... (smaugfuss 1.9)
Anihow, WAIT_STATE is defined with a '->wait' which doesn't exist in mob struct
I'm really surprised not to find what i'm looking for, since it seems that indispensable for me. I mean, at the first connexion of a player, didn't you display lines of introduction with some delay to allow him to read ?
I quote :
void do_mpdelay( CHAR_DATA * ch, char *argument )
{
char arg[MAX_INPUT_LENGTH];
CHAR_DATA *victim;
int delay;
if( !IS_NPC( ch ) || ch->desc || IS_AFFECTED( ch, AFF_CHARM ) )
{
send_to_char( "Huh?\r\n", ch );
return;
}
argument = one_argument( argument, arg );
if( !*arg )
{
send_to_char( "Delay for how many rounds?n\r", ch );
progbug( "Mpdelay: no duration specified", ch );
return;
}
if( !( victim = get_char_room( ch, arg ) ) )
{
send_to_char( "They aren't here.\r\n", ch );
progbug( "Mpdelay: target not in room", ch );
return;
}
if( IS_IMMORTAL( victim ) )
{
send_to_char( "Not against immortals.\r\n", ch );
progbug( "Mpdelay: target is immortal", ch );
return;
}
argument = one_argument( argument, arg );
if( !*arg || !is_number( arg ) )
{
send_to_char( "Delay them for how many rounds?\r\n", ch );
progbug( "Mpdelay: invalid (nonexistant?) argument", ch );
return;
}
delay = atoi( arg );
if( delay < 1 || delay > 30 )
{
send_to_char( "Argument out of range.\r\n", ch );
progbug( "Mpdelay: argument out of range (1 to 30)", ch );
return;
}
WAIT_STATE( victim, delay * PULSE_VIOLENCE );
send_to_char( "Mpdelay applied.\r\n", ch );
return;
} |