Hmmm.... ACMD(do_sneak) { struct affected_type af; byte percent; send_to_char("Okay, you'll try to move silently for a while.\r\n", ch); if (IS_AFFECTED(ch, AFF_SNEAK)) affect_from_char(ch, SKILL_SNEAK); percent = number(1, 101); /* 101% is a complete failure */ should be... ACMD(do_sneak) { struct affected_type af; byte percent; if (IS_AFFECTED(ch, AFF_SNEAK)) { affect_from_char(ch, SKILL_SNEAK); send_to_char("Everyone around you now notices your presence.\r\n", ch); return; } send_to_char("Okay, you'll try to move silently for a while.\r\n", ch); percent = number(1, 101); /* 101% is a complete failure */ __ __ \ \\ / // "If I were a dinosaur, I'd be a licalottapus!" \ \\ / // _____ __ __ ______ ___ -Jonathan "Jax" Armsterd \ \/ // // \\ |\\ /|| || \\ | || > << || ||||\\ //|| |----<< | || Hard to believe, / /\ \\ || |||| \\ // || || \\| || Harder to killfile! / // \ \\ \\___//_|| \// ||_||____//|_|| /_// \_\\ In God We Trust. All others pay cash. +-----------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://cspo.queensu.ca/~fletcher/Circle/list_faq.html | +-----------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/18/00 PST