Nyyrazzilyss / NyyLIB

Mudlet client script for Torilmud
http://www.torilmud.com/phpBB3/viewtopic.php?f=4&t=27194
GNU General Public License v2.0
7 stars 4 forks source link

Another rescues to ignore if the previous line matches a certain string #355

Open byzanthia opened 1 month ago

byzanthia commented 1 month ago

The "visible fighting" trigger contains this:

if string.find(previousLine(), "deflects") then
  echoDebug("deflect detected\n")
  return

I think you did that to avoid sending rescues for the occasional deflect?

Can you update that to also not rescue if the following line is detected ?

a Cult of the Dragon sentry strikes out wildly about the area in a mighty burst of power!
A Cult of the Dragon sentry misses Heroh with his slash.
[ Rescue: Heroh ]
A Cult of the Dragon sentry misses Mayldryss with his slash.
A Cult of the Dragon soldier misses you with his bludgeon.

I was doing CC today and during multiple fights it tried to rescue based on whatever skill/power those mobs were using, but those rescues always fail as they are just some kind of AOE and not actual targeting.

Thanks!

byzanthia commented 2 weeks ago

Noticed another one today:

< 1324h/1324H 180v/180V [Tank: Cherzra  100%] [Target: wrackspawn  78%  rcl] EP: rcl P: std >
< |ss +|sk +|ua +|ros +|sod +|cv +|cc +|wu +|nop +|ub +|ut +|hd +|dsd +|iw +|vip +| >     

a skeletal archer's aimed shot flies wild from the north misses Venlarin!
[ Rescue: Venlarin ]

< 1324h/1324H 180v/180V [Tank: Cherzra  100%] [Target: wrackspawn  78%  rcl] EP: rcl P: std >

"Visible fighting" contains an if statement for arrows, but doesn't capture the string above:


if string.find(matches[1], "carefully aimed shot") then
  return
end

That probably needs to be updated?