Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- INSTRUCTIONS
- 1) Copy to your clipboard everything from <triggers> all the way down to the bottom, INCLUDING the blank line at the very end.
- 2) Open up your world in MUSH.
- 3) Go to File > Import
- 4) Click "clipboard" in the "import from" box.
- 5) Configure your keypad keys (Game > Configure > Keypad), unless you use them for movement. For example:
- 0: cast short
- 1-3: tug light-medium-hard
- 4-6: reelin short-medium-long
- 7-9: playout short-medium-long
- ====== Copy everything below this ======
- <triggers>
- <trigger
- enabled="y"
- expand_variables="y"
- group="Fish"
- match="^You (play out short|give a hard tug on the pole) and the \w+ (slips|rips) free\!$"
- regexp="y"
- send_to="12"
- sequence="100"
- >
- <send>require "wait"
- wait.make (function ()
- wait.time (2)
- if (GetVariable("autofishmode")) == "on" then
- Send "cast short"
- end
- end)</send>
- </trigger>
- <trigger
- enabled="y"
- expand_variables="y"
- group="Fish"
- match="You reel in a short distance, bringing *"
- regexp="y"
- send_to="12"
- sequence="100"
- >
- <send>require "wait"
- wait.make (function ()
- wait.time (19)
- if (GetVariable("autofishmode")) == "on" then
- Send "reelin short"
- end
- end)</send>
- </trigger>
- <trigger
- enabled="y"
- expand_variables="y"
- group="Fish"
- match="Lagertha's pole goes lax as the * swims toward the boat."
- send_to="12"
- sequence="100"
- >
- <send>require "wait"
- wait.make (function ()
- wait.time (8)
- Send "tug hard"
- end)</send>
- </trigger>
- <trigger
- enabled="y"
- expand_variables="y"
- group="Fish"
- match="Lagertha's pole tightens as the * attempts to break loose."
- send_to="12"
- sequence="100"
- >
- <send>require "wait"
- wait.make (function ()
- wait.time (8)
- Send "playout short"
- end)</send>
- </trigger>
- <trigger
- enabled="y"
- expand_variables="y"
- group="Fish"
- match="You cannot reel in that quickly."
- send_to="12"
- sequence="100"
- >
- <send>require "wait"
- wait.make (function ()
- wait.time (2)
- if (GetVariable("autofishmode")) == "on" then
- Send "reelin short"
- end
- end)</send>
- </trigger>
- <trigger
- enabled="y"
- expand_variables="y"
- group="Fish"
- match="You pull your hook out of the water and land a*"
- send_to="12"
- sequence="100"
- >
- <send>require "wait"
- wait.make (function ()
- wait.time (1)
- Send "get fish"
- wait.time (1)
- if (GetVariable("autofishmode")) == "on" then
- Send "cast short"
- end
- wait.time (17)
- if (GetVariable("autofishmode")) == "on" then
- Send "reelin short"
- end
- end)</send>
- </trigger>
- <trigger
- enabled="y"
- expand_variables="y"
- group="Fish"
- match="You pull your hook out of the water."
- send_to="12"
- sequence="100"
- >
- <send>require "wait"
- wait.make (function ()
- wait.time (2)
- if (GetVariable("autofishmode")) == "on" then
- Send "cast short"
- end
- wait.time (17)
- if (GetVariable("autofishmode")) == "on" then
- Send "reelin short"
- end
- end)</send>
- </trigger>
- </triggers>
- <aliases>
- <alias
- match="autofish"
- enabled="y"
- expand_variables="y"
- group="Fish"
- send_to="12"
- sequence="100"
- >
- <send>if (GetVariable("autofishmode")) == "on" then
- SetVariable("autofishmode", "off")
- print "AUTO FISHING OFF"
- else
- SetVariable("autofishmode", "on")
- print "AUTO FISHING ON"
- end</send>
- </alias>
- <alias
- match="reelin *"
- enabled="y"
- expand_variables="y"
- group="Fish"
- send_to="12"
- sequence="100"
- >
- <send>require "wait"
- wait.make (function ()
- Send "reelin %1"
- wait.time (18)
- print "REEL IN"
- end)
- </send>
- </alias>
- <alias
- match="togglekeypad"
- enabled="y"
- expand_variables="y"
- group="Fish"
- send_to="12"
- sequence="100"
- >
- <send>if (GetOption("keypad_enable")) == 1 then
- print "NUMERIC KEYPAD DISABLED"
- SetOption ("keypad_enable", "0")
- else
- print "NUMERIC KEYPAD ENABLED"
- SetOption ("keypad_enable", "1")
- end</send>
- </alias>
- </aliases>
- <variables>
- <variable name="autofishmode">off</variable>
- <variable name="caughtafish">no</variable>
- </variables>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement