daily pastebin goal
77%
SHARE
TWEET

Untitled

a guest Feb 23rd, 2019 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # input "look [object]"
  2. target = self.db.ev_location
  3. # If given input. Must be in form 'look target'
  4. txt = txt.split(" ", 1)[1]  
  5. if txt:    
  6.     result = search.object_search(txt, candidates=self.db.ev_location.contents)
  7.     target = result[0] if result else None
  8. if not target:
  9.     text = "'%s' could not be located." % txt
  10. else:
  11.     text = target.return_appearance(self.db.puppetdict[user])
  12. self.msg((text, {"type":"privmsg"}), from_obj=self, user=user)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top