Advertisement
Kovitikus

Sorta an open portal command.

Jul 25th, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.60 KB | None | 0 0
  1. class CmdPortal(Command):
  2.     """
  3.    Opens or closes a portal.
  4.  
  5.    Usage:
  6.        portal <mark>
  7.        portal close
  8.  
  9.    Open a portal to the destination mark for up to 5 minutes.
  10.    Use the close argument to instead close the portal.
  11.    """
  12.     key = "portal"
  13.     #create_exit(exit_name, location, destination, exit_aliases=exit_aliases, typeclass=typeclass)
  14.     def func(self):
  15.         destination = self.caller.db.mark[self.args]
  16.         destination = search_object_attribute(destination)
  17.         create_exit("portal", self.caller.location, destination, exit_aliases=None, typeclass=None)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement