The command 'who' will list who is online (and maybe their location,
can't remember).
Also :
Give yourself (the superuser #1) an alias.
( alias me = fartpants )
The code I am giving you below assumes that I (the superuser) have the
alias "fartpants".
I use MUSHclient 99% of the time, but copy/pasting this into the
webclient should work, too.
What the code is doing is :
- starting a python snippet
- importing the 'search_object' code
- searching for "fartpants"
- searching for "character" objects
- finding the object (character) name, location and strength (you
could replace obj.db.strength with any other db attribute on the
character object. 'strength' is just used here as an example)
- return a message to "fartpants" (the superuser) with the above info
regarding each "character"
I hope that makes sense.
If you need help, just ask.
Try messing around with this code, too, to return different info about
different objects, etc, etc.
Copy / Paste it straight into MUSHclient.
All the lines. Hit ENTER. Win !
@py/edit
from evennia.utils.search import search_object
for fartpants in search_object("fartpants"):
for obj in search_object("character"):
string = ("\n%s |r: |n%s |r: |n%s" % (obj, obj.location,
obj.db.strength))
fartpants.msg(string)
:!
:q!
> --
> You received this message because you are subscribed to the Google Groups
> "Evennia" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
evennia+u...@googlegroups.com.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/evennia/533cbe73-8136-491f-9c96-8db49a0f0041n%40googlegroups.com.
>