29 lines
775 B
C
29 lines
775 B
C
#include <daemons.h>
|
|
#include <lib.h>
|
|
|
|
inherit LIB_COMMAND;
|
|
|
|
int cmd(string str){
|
|
string *raw_array;
|
|
string *grps = sort_array(groups(), 1);
|
|
string ret = "";
|
|
raw_array = sort_array(PLAYERS_D->GetCreatorList(),1);
|
|
foreach(mixed wiz in raw_array){
|
|
string tmp;
|
|
if(!wiz || !stringp(wiz)) continue;
|
|
tmp = wiz;
|
|
foreach(string group in grps){
|
|
if(member_group(wiz, group)) tmp += " "+group+",";
|
|
}
|
|
if(last(tmp,1) == ",") tmp = truncate(tmp,1);
|
|
ret += capitalize(tmp)+"\n";
|
|
}
|
|
print_long_string(this_player(),"Known active creators: \n"+ret);
|
|
return 1;
|
|
}
|
|
|
|
string GetHelp(string str) {
|
|
return "Syntax: wizlist\n\n"
|
|
"Displays a list of known active (non-ridded) creators.";
|
|
}
|