by Jadams Dad » Oct 25, 2003 @ 5:43pm
void do_addlag(CHAR_DATA *ch, char *argument)
{
CHAR_DATA *victim;
char arg1[MAX_STRING_LENGTH];
int x;
argument = one_argument(argument, arg1);
if (arg1[0] == '\0')
{
send_to_char("addlag to who?", ch);
return;
}
if ((victim = get_char_world(ch, arg1)) == NULL)
{
send_to_char("They're not here.", ch);
return;
}
if (IS_NPC(victim) )
{
send_to_char("NOT ON NPC's.", ch);
return;
}
if ( get_trust(ch) <= get_trust(victim) && ch != victim)
{
send_to_char("You can't do that!", ch);
return;
}
if ((x = atoi(argument)) <= 0)
send_to_char("That makes a LOT of sense.", ch);
return;
}
if (x > 100)
{
send_to_char("There's a limit to cruel and unusual punishment.", ch);
return;
}
send_to_char("Somebody REALLY doesn't like you.", victim);
WAIT_STATE(victim, x);
send_to_char("Adding lag now...MUHAHAHA!", ch);
return;
}