def msg_help(self, text): """ messages text to the caller, adding an extra oob argument to indicate that this is a help command result and could be rendered in a separate help window """ evmore.msg(self.caller, text, session=self.session, justify_kwargs=False)
def func(self): if len(self.caller.db.mailsystem) == 0: self.caller.msg("SYSTEM: You don't have any mail!") elif not self.args.isnumeric(): self.caller.msg("SYSTEM: Index must be a number.") elif int(self.args) > len(self.caller.db.mailsystem)-1: self.caller.msg("SYSTEM: You don't have that many mails.") else: mail = self.caller.db.mailsystem[int(self.args)] self.caller.msg(pad(" Mail Sys ", width=80, fillchar="=")) self.caller.msg(pad(mail[1], width=80)) self.caller.msg("{0:39} {1:>39}".format("To: " + self.caller.key, "From: " + mail[0])) self.caller.msg("{0:^80}".format('Sent on ' + str(mail[3].month) + '/' + str(mail[3].day) + '/' + str(mail[3].year))) self.caller.msg(pad('=',width=80,fillchar='=')) evmore.msg(self.caller, mail[2] + "\n")
def msg_help(self, text): """ messages text to the caller, adding an extra oob argument to indicate that this is a help command result and could be rendered in a separate help window """ if type(self).help_more: usemore = True if self.session.protocol_key in ("websocket", "ajax/comet"): try: options = self.player.db._saved_webclient_options if options and options["helppopup"]: usemore = False except KeyError: pass if usemore: evmore.msg(self.caller, text) return self.msg((text, {"type": "help"}))
def func(self): evmore.msg(self.caller, str(self.caller.db.bg) + "\n")