mysty_greet 986 B

12345678910111213141516171819202122232425
  1. name: mysty greets new players
  2. type: enter
  3. code:~
  4. # Entrance script no. 2 - greeting characters. This script is intended to
  5. # be attached to Mysty (mob vnum 100). When she meets someone for the
  6. # first time, she will greet that person and flag him/her as having been met
  7. # check to make sure that:
  8. # a) this is a PC
  9. # b) we've never met the person before
  10. if ch.is_pc and not ch.hasvar("met_mysty"):
  11. # send different message to different gendered characters
  12. if ch.sex == "male":
  13. me.act("say Well hello there, darlin'. I've never had the pleasure of " \
  14. "seeing your pretty face around these parts. If you need a hand, " \
  15. "or perhaps a drink, just ask me for help.")
  16. else:
  17. me.act("say Welcome to the Stuck Swine! I hope it's to your liking here. " \
  18. "If you need a hand, or perhaps a drink, just ask me for help.")
  19. # set a variable so we know we've met Mysty before
  20. ch.setvar("met_mysty", 1)
  21. -