Welcome to the Builder Academy

Question Max Users Per Boot

More
28 Apr 2025 23:38 #10694 by Fubar
Max Users Per Boot was created by Fubar
So, I have seen this one quite a few muds.

Code:
Immortals [103] Fubar the Implementor [Hackers] Mortals [099] Bacon the Pilferer [Hackers] -------------------------------------------------------------------------------------------- There is 1 superuser and there is 1 user.  Total of 2 users online. Max Users this boot: 2 users. ---------------------------------------------------------------------------------------------------------------

In act.informative.c after the the static voids add:
Code:
int boot_high = 0;

Then in do_who (same file) add near the top after the int's:
Code:
    int temp_count = 0;

Then add before num_can_see stuff:
Code:
    for (i = 0; *rank[i].disp != '\n'; i++) {         if (rank[i].count) {             temp_count += rank[i].count;         }     }     if (temp_count > boot_high) {         boot_high = temp_count;     }

Now just add the output:

Code:
send_to_char(ch, "\r\nMax Users this boot: %d user%s.\r\n", boot_high, (boot_high == 1 ? "" : "s"));

I also added some pics. Might not be the most efficient but it works for me. Enjoy MUDderers
Attachments:

Please Log in or Create an account to join the conversation.

Time to create page: 0.168 seconds