
CustomFilters ... can't seem to intercept some text
Jahfry opened this issue ยท 3 comments
Note: This may fall more into a bug report, but I think it might be just a request to support additional channels. I'll describe what I'm trying and let you reprioritize as works best :)
Is your feature request related to a problem? Please describe.
I'm trying to intercept some messages like:
"You receive loot" (working, becomes just: "loot:")
"You loot 1 Gold, 31 Silver, 83 Copper" (can't seem to get this working)
"Your warband's reputation" (also can't seem to get this)
I'd like to also access the Experience gains, etc.
Obviously I'm an edge case. But I like to keep a chat window that only logs things like mentioned above (and skillups, etc) so I can scan them if I missed something happening. I want to use Prat to shorten the output of those channels so I can shrink the space for the chat window while keeping it readable.
I think this may be that Prat isn't seeing some of the newer chat channels or might have them not quite right. I'm looking in the LUA a bit (I'm not a coder) and for instance I'm not seeing things like an "Experience" type to listen to. I kind of wonder if there's a "MONEY" versus "MONEY_LOOT" difference going on here.
Describe the solution you'd like
a) If this is a user error, let me know what I should do to find those sources for Inbound searches
b) If not a user error, add/correct the list of available channels to match what sources can be displayed in the "Chat Config > Other" tab (ie, "Money Loot", "Experience", "Reputation") so that they're able to be intercepted and reformatted by a Prat Custom Filter
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Bonus request: I'm an old guy with some old Regex experience. I searched awhile but didn't find an explanation of how I can use Regex inside Custom Filters. If you can point me somewhere to try and figure that out I'd a appreciate it. Especially if I can use Regex on the MATCH. Example: replace all instances of "[R|r]eputation" in a string with "Rep" without needing multiple Inbound rules.
PS. Thanks for keeping up with the project. Prat's been a constantly used addon for me for a very long time.
Some clarifying details on the failed search: for "You loot 1 Gold, 31 Silver, 83 Copper" I'm just trying to replace the word "Gold" and still failing.
This is with all possible inbound channels checked on.