Drunken Durfin
12-15-2016, 11:30 AM
I'm trying to capture a couple of things out of the return for the bard command "song status"
You are currently singing: Fortitude Song
Song of Luck
Song of Valor
Song of Mirrors
Song of Sonic Disruption
The effects of your magical medley have faintly begun to wane. It will be a couple of minutes before your medley renews. Your current renewal cost is 51 mana.
I'd like to be able to capture "Song of Sonic Disruption" and the value for whatever the renewal cost is at the end. I've tried several variations, but all I can ever seem to get it to hit on is the first line "You are currently...", nothing else.
I gave up on that route and went to the Stop List return to try and grab it there, but met with the same result. Using this code:
if server_string =~ /STOP SINGING 1030 - Song of Sonic Disruption/
echo "SD Hit fired: #{server_string}"
canRenew = true
nil
elsif server_string =~ /You can currently stop doing the following|STOP/
echo "You Can and/or STOP fired: #{server_string}"
DownstreamHook.remove('check_SonicDisruptionActive ')
nil
else
echo "Else fired: #{server_string}"
server_string
end
Still, the only thing I can get it to hit on is the first line, "You can currently stop...":
You can currently stop doing the following:
STOP SINGING ALL SPELLSONGS
STOP SINGING 1003 - Fortitude Song
STOP SINGING 1006 - Song of Luck
STOP SINGING 1010 - Song of Valor
STOP SINGING 1019 - Song of Mirrors
STOP SINGING 1030 - Song of Sonic Disruption
STOP 401 - Elemental Defense I
STOP 406 - Elemental Defense II
STOP 414 - Elemental Defense III
STOP 425 - Elemental Targeting
STOP 430 - Elemental Barrier
STOP {Target}
So, I'm guessing these things are related.
Thanks.
You are currently singing: Fortitude Song
Song of Luck
Song of Valor
Song of Mirrors
Song of Sonic Disruption
The effects of your magical medley have faintly begun to wane. It will be a couple of minutes before your medley renews. Your current renewal cost is 51 mana.
I'd like to be able to capture "Song of Sonic Disruption" and the value for whatever the renewal cost is at the end. I've tried several variations, but all I can ever seem to get it to hit on is the first line "You are currently...", nothing else.
I gave up on that route and went to the Stop List return to try and grab it there, but met with the same result. Using this code:
if server_string =~ /STOP SINGING 1030 - Song of Sonic Disruption/
echo "SD Hit fired: #{server_string}"
canRenew = true
nil
elsif server_string =~ /You can currently stop doing the following|STOP/
echo "You Can and/or STOP fired: #{server_string}"
DownstreamHook.remove('check_SonicDisruptionActive ')
nil
else
echo "Else fired: #{server_string}"
server_string
end
Still, the only thing I can get it to hit on is the first line, "You can currently stop...":
You can currently stop doing the following:
STOP SINGING ALL SPELLSONGS
STOP SINGING 1003 - Fortitude Song
STOP SINGING 1006 - Song of Luck
STOP SINGING 1010 - Song of Valor
STOP SINGING 1019 - Song of Mirrors
STOP SINGING 1030 - Song of Sonic Disruption
STOP 401 - Elemental Defense I
STOP 406 - Elemental Defense II
STOP 414 - Elemental Defense III
STOP 425 - Elemental Targeting
STOP 430 - Elemental Barrier
STOP {Target}
So, I'm guessing these things are related.
Thanks.