Re: [CODE]Glist

From: Sammy (
Date: 01/26/97

On Sun, 26 Jan 1997, Daniel Durnin wrote:

> Can anyone send me the code for a "glist" command that shows the current groups?
> Been trying to figure this out from Diku samples, to no avail.

Not really, but I can tell ya it's as easy as searching the
descriptor_list people who have the AFF_GROUP flag and don't have a
master.  Those are the leaders.  Under each leader, use a for loop to get
each follower with the AFF_GROUP flag and print them out under the leader.
This will list mobs, too, but you can exclude them easily enough with

Simple :)


| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   |

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