How do I get a list of all the connected players in a room or object?

Submitted by javelin on Sun, 2012-02-12 22:57

How do I get a list of all the connected players in a room or object?

&is_connected room=gte(conn(%0), 0)
&list_players room=filter(is_connected, lcon(me))

... or something along similar lines. 

2001-Oct-22 7:16pm shawnw

In Penn 1.7.5, you can use lvplayers() instead. There\'s also lplayers(), which doesn\'t check for connection status.

2001-Nov-13 6:49pm shawnw