Re: Follow

From: krenshala (krenshala@koboldi.net)
Date: 05/16/02


On Thu, May 16, 2002 at 02:32:44PM -0500, shay was heard to say:

> At 02:36 PM 5/16/2002 -0400, you wrote:
> >Anyone got an idea on how you stop the follow routine by command.
> >
> >If anyones got a snippet of code for putting in ACMD do_follow to stop
> >following someone by just entering follow without an argument.
> >
> >eg
> >A is following B
> >A types FOLLOW
> >A stops following B
> >
> >ive found the stop_follow routine, but am not sure how to impliment it
>
> probably something like:
>
> if (!*arg) {
>          stop_follower(ch);
>          return;
> }
>
> Or you could take out the line that says:
> send_to_char(ch, "Whom do you wish to follow?\r\n");
> and replace it with:
> stop_follower(ch);

It would probably be better to have it check for a follower, stop_follower()
if there is one, and send_to_char(ch,"whom do you wish to follow?") if not.

<G>

     Larry

Larry Robinson
krenshala@koboldi.net
:wq

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   | Newbie List:  http://groups.yahoo.com/group/circle-newbies/   |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 06/25/03 PDT