Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class CmdMark(Command):
- """
- Mark the current location.
- Usage:
- mark <custom mark name>
- Marks the player's current location, using the provided arguments.
- For a list of marks, simply type 'mark' with no argument.
- """
- key = "mark"
- def func(self):
- if not self.caller.db.mark:
- self.caller.db.mark = {}
- if not self.args:
- marks = self.caller.attributes.get('mark')
- print(marks)
- for x in marks:
- marked = dict(x)
- print(marked)
- return self.caller.msg(f"List of Marks: {marked}")
- self.caller.db.mark[self.args] = self.caller.location.dbref
- self.caller.msg(f"{self.args} was added to your list of marks as {self.caller.location}.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement