The default front webpage now has some good examples on how to add in custom functionality. You'll obviously want to customize this for your game, but it'll be a good start.
This commit is contained in:
parent
dfc358ada8
commit
115a420cee
5 changed files with 61 additions and 53 deletions
|
|
@ -150,7 +150,7 @@ class SessionProtocol(StatefulTelnetProtocol):
|
|||
pobject.set_flag("CONNECTED", True)
|
||||
|
||||
self.msg("You are now logged in as %s." % (self.name,))
|
||||
pobject.get_location().emit_to_contents("%s has connected." % (pobject.get_name(),), exclude=pobject)
|
||||
pobject.get_location().emit_to_contents("%s has connected." % (pobject.get_name(show_dbref=False),), exclude=pobject)
|
||||
self.execute_cmd("look")
|
||||
functions_general.log_infomsg("Login: %s" % (self,))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue