Advertisement
Guest User

Untitled

a guest
Oct 1st, 2014
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.04 KB | None | 0 0
  1. INSTRUCTIONS
  2. 1) Copy to your clipboard everything from <triggers> all the way down to the bottom, INCLUDING the blank line at the very end.
  3. 2) Open up your world in MUSH.
  4. 3) Go to File > Import
  5. 4) Click "clipboard" in the "import from" box.
  6. 5) Configure your keypad keys (Game > Configure > Keypad), unless you use them for movement. For example:
  7. 0: cast short
  8. 1-3: tug light-medium-hard
  9. 4-6: reelin short-medium-long
  10. 7-9: playout short-medium-long
  11. ====== Copy everything below this ======
  12. <triggers>
  13. <trigger
  14. enabled="y"
  15. expand_variables="y"
  16. group="Fish"
  17. match="^You (play out short|give a hard tug on the pole) and the \w+ (slips|rips) free\!$"
  18. regexp="y"
  19. send_to="12"
  20. sequence="100"
  21. >
  22. <send>require "wait"
  23. wait.make (function ()
  24. wait.time (2)
  25. if (GetVariable("autofishmode")) == "on" then
  26. Send "cast short"
  27. end
  28. end)</send>
  29. </trigger>
  30. <trigger
  31. enabled="y"
  32. expand_variables="y"
  33. group="Fish"
  34. match="You reel in a short distance, bringing *"
  35. regexp="y"
  36. send_to="12"
  37. sequence="100"
  38. >
  39. <send>require "wait"
  40. wait.make (function ()
  41. wait.time (19)
  42. if (GetVariable("autofishmode")) == "on" then
  43. Send "reelin short"
  44. end
  45. end)</send>
  46. </trigger>
  47. <trigger
  48. enabled="y"
  49. expand_variables="y"
  50. group="Fish"
  51. match="Lagertha's pole goes lax as the * swims toward the boat."
  52. send_to="12"
  53. sequence="100"
  54. >
  55. <send>require "wait"
  56. wait.make (function ()
  57. wait.time (8)
  58. Send "tug hard"
  59. end)</send>
  60. </trigger>
  61. <trigger
  62. enabled="y"
  63. expand_variables="y"
  64. group="Fish"
  65. match="Lagertha's pole tightens as the * attempts to break loose."
  66. send_to="12"
  67. sequence="100"
  68. >
  69. <send>require "wait"
  70. wait.make (function ()
  71. wait.time (8)
  72. Send "playout short"
  73. end)</send>
  74. </trigger>
  75. <trigger
  76. enabled="y"
  77. expand_variables="y"
  78. group="Fish"
  79. match="You cannot reel in that quickly."
  80. send_to="12"
  81. sequence="100"
  82. >
  83. <send>require "wait"
  84. wait.make (function ()
  85. wait.time (2)
  86. if (GetVariable("autofishmode")) == "on" then
  87. Send "reelin short"
  88. end
  89. end)</send>
  90. </trigger>
  91. <trigger
  92. enabled="y"
  93. expand_variables="y"
  94. group="Fish"
  95. match="You pull your hook out of the water and land a*"
  96. send_to="12"
  97. sequence="100"
  98. >
  99. <send>require "wait"
  100. wait.make (function ()
  101. wait.time (1)
  102. Send "get fish"
  103. wait.time (1)
  104. if (GetVariable("autofishmode")) == "on" then
  105. Send "cast short"
  106. end
  107. wait.time (17)
  108. if (GetVariable("autofishmode")) == "on" then
  109. Send "reelin short"
  110. end
  111. end)</send>
  112. </trigger>
  113. <trigger
  114. enabled="y"
  115. expand_variables="y"
  116. group="Fish"
  117. match="You pull your hook out of the water."
  118. send_to="12"
  119. sequence="100"
  120. >
  121. <send>require "wait"
  122. wait.make (function ()
  123. wait.time (2)
  124. if (GetVariable("autofishmode")) == "on" then
  125. Send "cast short"
  126. end
  127. wait.time (17)
  128. if (GetVariable("autofishmode")) == "on" then
  129. Send "reelin short"
  130. end
  131. end)</send>
  132. </trigger>
  133. </triggers>
  134. <aliases>
  135. <alias
  136. match="autofish"
  137. enabled="y"
  138. expand_variables="y"
  139. group="Fish"
  140. send_to="12"
  141. sequence="100"
  142. >
  143. <send>if (GetVariable("autofishmode")) == "on" then
  144. SetVariable("autofishmode", "off")
  145. print "AUTO FISHING OFF"
  146. else
  147. SetVariable("autofishmode", "on")
  148. print "AUTO FISHING ON"
  149. end</send>
  150. </alias>
  151. <alias
  152. match="reelin *"
  153. enabled="y"
  154. expand_variables="y"
  155. group="Fish"
  156. send_to="12"
  157. sequence="100"
  158. >
  159. <send>require "wait"
  160. wait.make (function ()
  161. Send "reelin %1"
  162. wait.time (18)
  163. print "REEL IN"
  164. end)
  165. </send>
  166. </alias>
  167. <alias
  168. match="togglekeypad"
  169. enabled="y"
  170. expand_variables="y"
  171. group="Fish"
  172. send_to="12"
  173. sequence="100"
  174. >
  175. <send>if (GetOption("keypad_enable")) == 1 then
  176. print "NUMERIC KEYPAD DISABLED"
  177. SetOption ("keypad_enable", "0")
  178. else
  179. print "NUMERIC KEYPAD ENABLED"
  180. SetOption ("keypad_enable", "1")
  181. end</send>
  182. </alias>
  183. </aliases>
  184. <variables>
  185. <variable name="autofishmode">off</variable>
  186. <variable name="caughtafish">no</variable>
  187. </variables>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement