Nick Gammon said:
Queeny said:
Where would I put this/set this up in my client?
(pasting)
Also, is there a way to put a 20 second delay between reel in commands?
See:
http://www.gammon.com.au/forum/?id=4956
Queeny said:
Also was just testing some things and realized it has different lines depending on how far you reel...
Change "short" to "(?:short|medium|long)" or whatever the words are. The brackets make a group (with alternatives) and the "?:" stops it being captured (so the distance is still %1 in the send box).
Alright I was able to enter it into my client and figure out how to test the wait command after updating my client. Now when I try to launch the command I get this error
Error number: 0
Event: Compile error
Description: [string "Trigger: "]:11: unexpected symbol near ')'
Called by: Immediate execution
Also, these are the two triggers I made for the different lines that are spit out at me. Not sure if they are written correctly or not.
These are the examples with what I am trying to work with:
With Fish -
You reel in a short distance, bringing the tuna 15 feet from the boat.
You reel in a medium amount, bringing the tuna 11 feet from the boat.
Without Fish -
You reel in a medium amount, bringing it 17 feet from the boat.
You reel in a short distance, bringing it 15 feet from the boat.
The Trigger Hooked Fish -
<triggers>
<trigger
enabled="y"
match="^You reel in a (?:short|medium|long) (.*?), bringing the (.*?) (\d+) feet from the boat.$"
regexp="y"
send_to="12"
sequence="100"
>
<send>require "wait"
wait.make (function ()
if %1 > 10 then
Send("reelin medium")
wait.time (20)
else
Send("reelin short")
wait.time (20)
end)
</send>
</trigger>
</triggers>
Trigger With No Fish -
<triggers>
<trigger
enabled="y"
match="^You reel in a (?:short|medium|long) (.*?), bringing it (\d+) feet from the boat.$"
regexp="y"
send_to="12"
sequence="100"
>
<send>require "wait"
wait.make (function ()
if %1 > 10 then
Send("reelin medium")
wait.time (20)
else
Send("reelin short")
wait.time (20)
end)
</send>
</trigger>
</triggers>
Thank you guys for your help/patience :( I really am clueless.