/* Alarm v4.5 written by CreeD of Sacred Grounds and Dragon of Beastlands. * ----------------------------------------------------------------------- * The following is a list of things to add to properly install the * alarm function. You may make any modifications you like as long * as you leave in credits to the original authors, CreeD and Dragon. * * UPDATE: * If you already downloaded Alarm_v4.0.readme and want the specific * changes, they are listed at the end of this file. */ IN PARSE.C ---------- ---- BEFORE the following statement ------ if (scan->jail_timeout == 0 && scan->location == prison) { command_type |= HIGHLIGHT; tell_player(scan, " After serving your sentence you are flung out" " to society again.\n"); command_type &= ~HIGHLIGHT; move_to(scan, sys_room_id(ENTRANCE_ROOM), 0); } } } ----- ADD the following statement ------- if (scan->timer_count > 0) { scan->timer_count--; if (scan->timer_count == 0) { tell_player (scan, "\007\n\n" "^B _______________________________^N\n" "^B |,-----------------------------,|^N\n" "^B || ^R!!! A L A R M !!!^B ||^N\n" "^B ||-----------------------------||^N\n" "^B || ^GYour time is up!^B ||^N\n" "^B || ^Y0 hours 0 minutes 0 seconds^B ||^N\n" "^B |`-----------------------------'|^N\n" "^B `-------------------------------'^N\n"); } } ---- Add the following function ------ void set_alarm(player * p, char *str) { char *number; int integer; if (!*str) { if (p->timer_count > -1) { TELLPLAYER(p, "\n ^GAlarm clock set to go off in ...^N\n" "^B _________________________________^N\n" "^B |,-------------------------------,|^N\n" "^Y %s ^N\n" "^B |`-------------------------------'|^N\n" "^B `---------------------------------'^N\n\n" " ^RTo cancel the alarm^N\n" " ^Rtype^N `^Calarm stop^N'\n\n", word_time(p->timer_count)); return; } else { tell_player(p, " Format: alarm