Top Mud Sites Forum

Top Mud Sites Forum (http://www.topmudsites.com/forums/index.php)
-   MUD Coding (http://www.topmudsites.com/forums/forumdisplay.php?f=9)
-   -   Group Code (http://www.topmudsites.com/forums/showthread.php?t=389)

Jaegar 02-09-2005 01:22 AM

I am working with a Rom2.4 mud and am trying to modify the do_group code.  What I am trying to do is change the order in which typing group will display all of the members in the group.  I am trying to get it to display the group members, starting with the leader and then put the remaining members in the order that they joined the group from top to bottom.

Then I am trying to figure out a command that will allow the leader of the group to basically send a member of the group to the back of the order, without having to make that member leave the group to be grouped again.

Any help would be appreciated.

Thanks in advance,

Jaegar

Amnon 02-09-2005 03:15 AM

Looks to me like you wanna make a list out of the group. You add a first_in_group, last_in_group, next_in_group and prev_in_group pointers, and when someone starts a group he is set as first_in_group for himself and the people who joined him, then for every person who joins, he is added to the last_in_group's next_in_group.

Then all you have to do to make the list is start from the first_in_group and work your way through the next_in_group until you hit the last_in_group


All times are GMT -4. The time now is 08:02 PM.

Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright Top Mud Sites.com 2022