On Tue, 3 Mar 1998, Brandon C. Phelps wrote:
> i saw the code to stop somebody from following you in the list and i
> just wanted to know where to put it?
>
> ACMD(do_nofollow)
> {
> struct char_data *follower;
>
> void stop_follower(struct char_data *ch);
> void add_follower(struct char_data *ch, struct char_data *leader);
>
> one_argument(argument, buf);
>
> if (*buf) {
> if (!(follower = get_char_vis(ch, buf))) {
> send_to_char(NOPERSON, ch);
> return;
> }
> } else {
> send_to_char("Who do you want to stop following you?\r\n", ch);
> return;
> }
>
> if (follower->master != ch) {
> act("$N is not following you.", FALSE, ch, 0, follower, TO_CHAR);
> return;
> } else {
> act("You tell $M to stop following you.", FALSE, ch, 0, follower,
> TO_CHAR);
> act("$n tells you to stop following $m.", FALSE, ch, 0, follower,
> TO_VICT);
> stop_follower(follower);
> }
> }
>
>
> +------------------------------------------------------------+
> | Ensure that you have read the CircleMUD Mailing List FAQ: |
> | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
> +------------------------------------------------------------+
>
Basically a good place would be either act.informative.c or act.other.c
but remember to ACMD(blah) and such in interpreter.c also.
Insane ramblings of an Immortal....
+------------------------------------------------------------+
| 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