From: Domingos Parra Novo I've done some coding in the mset hours. The code works for me. Feel free to use the code, but don't bother me if it don't works, I'm not an expert coder :) I have tested the code a few minutes, in a few players... At least, it looks ok to me. Please let me know if the code need more checks, or if there is no need for any of the checks. /* code starts here */ else if (!str_cmp(arg2, "hours")) { if ( IS_NPC( victim ) ) { send_to_char( "Not on NPC's.\n\r", ch ); return; } if ( !is_number( arg3 ) ) { send_to_char( "Value must be numeric.\n\r", ch ); return; } value = atoi( arg3 ); if ( value < 0 || value > 999 ) { send_to_char( "Value must be betwen 0 and 999.\n\r", ch ); return; } value *= 3600; victim->played = value; return; } /* end of code */ Domingos -- Domingos Parra Novo domingos@cce.ufpr.br