Re: [BUG] 30bpl13 - do_track

From: Angus Mezick (angus@EDGIL.CCMAIL.COMPUSERVE.COM)
Date: 06/05/98


whoops, that is my code.  Mine doesn't have a return in there.  Here is what
mine looks like.
--Angus


______________________________ Reply Separator _________________________________
Subject: Re:  [BUG] 30bpl13 - do_track
Author:  INTERNET:CIRCLE@POST.QUEENSU.CA at CSERVE
Date:    6/4/98 6:50 PM

On Thu, 4 Jun 1998, Angus Mezick wrote:

>ACMD(do_track)
>
>1) You fail the skill
>2) find a random direction
>3) replace the random dir with the real dir

How?

  /* 101 is a complete failure, no matter what the proficiency. */
  if (number(0, 101) >= GET_SKILL(ch, SKILL_TRACK)) {
    /* Find a random direction. :) */
    do {
      dir = number(0, NUM_OF_DIRS - 1);
    } while (!CAN_GO(ch, dir));
- sprintf(buf, "You sense a trail %s from here!\r\n", dirs[dir]);
- send_to_char(buf, ch);
-    return;
  }
+ else /* They passed the skill check. */
  dir = find_first_step(ch->in_room, vict->in_room);


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST