Advertisement
tdubbzz

Untitled

May 27th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1.  
  2. <trigger
  3. enabled="y"
  4. keep_evaluating="y"
  5. match="^You open the (.*) (door|doors|gate|grating|trapdoor).*\.$"
  6. regexp="y"
  7. send_to="12"
  8. sequence="100"
  9. >
  10. <send>local dir = {}
  11. dir['northeast'] = 'ne'
  12. dir['northwest'] = 'nw'
  13. dir['southeast'] = 'se'
  14. dir['southwest'] = 'nw'
  15. if dir[%1] ~= nil then
  16. Execute(dir[%1])
  17. else
  18. Execute(string.sub("%1", 1, 1))
  19. end</send>
  20. </trigger>
  21.  
  22.  
  23. <!-- auto-open doors -->
  24.  
  25. <trigger
  26. enabled="y"
  27. keep_evaluating="y"
  28. match="^(The (.+) (is|are) closed|A strange force blocks your passage)\.$"
  29. regexp="y"
  30. send_to="12"
  31. sequence="100"
  32. >
  33. <send>mapper.auto_open()
  34. </send>
  35. </trigger>
  36.  
  37. <trigger
  38. enabled="y"
  39. keep_evaluating="y"
  40. match="^(.+)\: It\'s locked\.$"
  41. regexp="y"
  42. send_to="12"
  43. sequence="100"
  44. >
  45. <send>mapper.stop_auto_open()
  46. </send>
  47. </trigger>
  48.  
  49.  
  50. <!-- various messages that cancel speedwalks -->
  51.  
  52. <trigger
  53. enabled="y"
  54. match="You are too exhausted. Better rest for a bit."
  55. keep_evaluating="y"
  56. regexp="y"
  57. script="mapper.cancel_speedwalk"
  58. sequence="100"
  59. >
  60. </trigger>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement