Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class CmdPortal(Command):
- """
- Opens or closes a portal.
- Usage:
- portal <mark>
- portal close
- Open a portal to the destination mark for up to 5 minutes.
- Use the close argument to instead close the portal.
- """
- key = "portal"
- #create_exit(exit_name, location, destination, exit_aliases=exit_aliases, typeclass=typeclass)
- def func(self):
- destination = self.caller.db.mark[self.args]
- destination = search_object_attribute(destination)
- create_exit("portal", self.caller.location, destination, exit_aliases=None, typeclass=None)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement