Log file from Toastmux. 4/29/00 2:32:57 PM @create +who Device=10 @lock +who Device=*Nyssa &PLAYERFUNC +who Device=%b[setq(0,name(%0))][ifelse(hasattr(%0,who_color),ansi([u(colorfunc,get(%0/who_color))],%q0),%q0)][repeat(%b,sub(15,strlen(%q0)))][setq(1,u(fmt-one_online,%0))]%q1[repeat(%b,sub(15,strlen(%q1)))][setq(2,[ifelse(hasflag(%0,wizard),ansi(h,W),ifelse(hasflag(%0,royalty),ansi(hb,R),ansi(hg,P)))][ifelse(hasflag(%0,staff),ansi(h,S),ansi(hy,-))][ifelse(hasflag(%0,ansi),ansi(hy,A),ansi(hy,-))][ifelse(hasflag(loc(%0),jump_ok),ansi(hy,J),ansi(hy,-))][ifelse(hasflag(%0,unfindable),ansi(hy,U),ifelse(hasflag(loc(%0),unfindable),ansi(hy,u),ansi(hy,-)))][ifelse(orflags(%#,WZ),ifelse(hasflag(%0,dark),D,ansi(hy,-)),)])]%q2[repeat(%b,sub(11,strlen(%q2)))][setq(3,[ifelse(and(not(orflags(%#,wWZ)),hasflag(%0,unfindable)),ansi(h,Unfindable),ifelse(and(not(orflags(%#,WZ)),hasflag(loc(%0),unfindable)),ansi(h,------),strtrunc(name(loc(%0)),20)))])]%q3[repeat(%b,sub(24,strlen(%q3)))][ifelse(or(and(hasflag(loc(%0),Jump_ok),not(or(hasflag(%0,unfindable),hasflag(loc(%0),unfindable)))),orflags(%#,WZ)),([ansi(hg,loc(%0))]),ansi(hg,------))] &COLORS +who Device=x r g y b m c w hx hr hg hy hb hm hc hw &CALIAS +who Device=black red green yellow blue magenta cyan white hi-black hi-red hi-green hi-yellow hi-blue hi-magenta hi-cyan hi-white &COLORFUNC +who Device=[elements(v(colors),member(v(calias),%0))] &COM-TIME +who Device=Code for converting and displaying the time borrowed from Kynn Bartlett's old "3who" command code and slightly modified. &FMT-SPACE_DIGIT +who Device=[switch(lte(v(0),9),1,0)][v(0)] &FMT-TWO_DIGIT +who Device=[switch(lte(v(0),9),1,0)][v(0)] &FMT-ONE_ONLINE +who Device=[setq(0,div(conn(%0),86400))][ifelse(gt(%q0,0),%q0d%b,)][u(fmt-space_digit,div([ifelse(gt(%q0,0),mod(conn(v(0)),86400),conn(%0))],3600))]:[u(fmt-two_digit,div(mod(conn(v(0)),3600),60))]%b%b[ifelse(hasattr(%0,Idle),ansi(h,Zzz),u(fmt-space_digit,switch(1,gt(idle(v(0)),3600),[div(idle(v(0)),3600)]h,gt(idle(v(0)),60),[div(idle(v(0)),60)]m,[idle(v(0))]s)))] @Desc +who Device=This, quite simply, is a small steel box with the letters "+WHO" stenciled on it in yellow paint. I guess it's pretty important, considering that it's supposed to be a global. Be sure to set it Wizard or make sure it is Wiz-owned and set Inherit, and place it in the Master Room. If a player has the WHO_COLOR attribute set to any of the following strings: [iter(v(calias),##)] then he or she will see his or her name in the +who listing in that particular color.%r(A somewhat original work by Yohshee@ToastMUX. Look and feel derived from ChaoticMUX's +WHO command.) &WHO_CMD +who Device=$+who:think [pemit(%#,%r[center(ansi(gh,[mudname()] - Online Players),80)]%r[ansi(ch,Player Name[repeat(%b,5)]On For%b%bIdle%b%b%bStatus[repeat(%b,5)]Room)]%r[repeat(ansi(c,-=),40)])][pemit(%#,list(ifelse(orflags(%#,!Z!W),filter(me/is_dark,lwho()),lwho()),u(map_fn,##)))][pemit(%#,[repeat(ansi(c,=-),40)]%r[ansi(hm,center([words(lwho())] players connected to [mudname()].%b[setq(0,words(filter(me/is_staff,lwho())))][%q0] staff [ifelse(or(gt(%q0,1),eq(%q0,0)),members are,member is)]%bconnected.,80,%b))]%r%b%b[ansi(hm,center(Last restart time: [starttime()]%tTime: [time()],65,%b))]%r[repeat(ansi(c,-=),40)]%r[ansi(m,[center(W/R/S/P - Wizard/Royalty/Staff/Player%b%bA - ANSI%b%bJ - Jump_ok,80)]%r[center(U/u - Player/Room Unfindable[ifelse(orflags(%#,WZ),%b%bDark - D,)],80)])]%r[repeat(ansi(bh,*~),39)])] @VA +who Device=6 &VERSION +who Device=1.5 &AUTHOR +who Device=Yohshee@Toast &IS_STAFF +who Device=[orflags(%0,wWZ)] &MAP_FN +who Device=u(playerfunc,%0) &IS_DARK +who Device=orflags(%0,!D) @set +who Device=INHERIT @set +who Device=SAFE