When I test this trigger with trace on, it shows that it matches, it also matches again on each of the next 2 lines that appear in the output window. So the trigger matches an extra 2 times when tested.
I'm not sure if this is a bug or not, but what I was thinking that maybe causing the problem was that 2 of the \n are enclosed in parenthses. Maybe they are hidden from mushclient and muschlient thinks it only got 9 lines when it really got 11 lines. Hence matching on the very next 2 lines. The reason for (?:Wimpy .*?\n|)(?:You are in barbarian weaponless combat mode\.\n|) is because those lines are not always there.
<triggers>
<trigger
enabled="y"
lines_to_match="11"
match="^You are (.*?) \((.*?)\)\,\nPlayer level (.*?)\, barbarian level (.*?)\.\nYou have (.*?) player experience\, (.*?) tribe exp\.\n(.*?)\/(.*?) hit points \((.*?)\/(.*?) spell points\)\, (.*?)\/(.*?) quest points\,\n(.*?) Strength\, (.*?) Dexterity\, (.*?) Constitution\, and (.*?) gold coins\.\nYou have (.*?) experience you can make into (.*?) tribe experience\.\nYou are (.*?)\.\n(?:Wimpy .*?\n|)(?:You are in barbarian weaponless combat mode\.\n|)You are (.*?)\.\nage\: (?: (\d+) day(?:s|)|)(?: (\d+) hour(?:s|)|)(?: (\d+) minute(?:s|)|)(?: (\d+) second(?:s|)|)\.$"
multi_line="y"
name="barbtrig"
regexp="y"
send_to="10"
sequence="100"
>
<send>/world.note "barb"</send>
</trigger>
</triggers>
You are Joe the Elder of the Haraku (crusader),
Player level E8, barbarian level 20.
You have 27,858,768 player experience, 1,857,268 tribe exp.
301/301 hit points (69/69 spell points), 408/450 quest points,
22 Strength, 21 Dexterity, 21 Constitution, and 121,954 gold coins.
You have 2,100,707 experience you can make into 105,035 tribe experience.
You are in a drunken stupor.
Wimpy mode. You should be ashamed.
You are in barbarian weaponless combat mode.
You are somewhat tired.
age: 8 days 7 hours 32 minutes 23 seconds.
I'm not sure if this is a bug or not, but what I was thinking that maybe causing the problem was that 2 of the \n are enclosed in parenthses. Maybe they are hidden from mushclient and muschlient thinks it only got 9 lines when it really got 11 lines. Hence matching on the very next 2 lines. The reason for (?:Wimpy .*?\n|)(?:You are in barbarian weaponless combat mode\.\n|) is because those lines are not always there.