Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # input "look [object]"
- target = self.db.ev_location
- # If given input. Must be in form 'look target'
- txt = txt.split(" ", 1)[1]
- if txt:
- result = search.object_search(txt, candidates=self.db.ev_location.contents)
- target = result[0] if result else None
- if not target:
- text = "'%s' could not be located." % txt
- else:
- text = target.return_appearance(self.db.puppetdict[user])
- self.msg((text, {"type":"privmsg"}), from_obj=self, user=user)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement