Trigger for Tells received. (But exclude NPC Tells)
Trigger for Tells received. (But exclude NPC Tells)
I'm trying to adapt viewtopic.php?f=7&t=80 (the But NOT comparison)
to create a trigger that will work when a Player sends a tell, (SoAndSo tells you, )
but at the same time exclude occurences whereby
<NPC Tells shouldn't fire the trigger>
(a guild banker tells you, )
or (Parcel Delivery Liason tells you, )
or (a personal banker tells you, )
or (General Supply Merchant tells you, )
or (Teleportation Assistant tells you, )
{S1}(?!{Teleportation Assistant|Parcel Delivery Liaison|a personal banker|a guild banker|General Supply Merchant|Teleportation Assistant}) tells you, '
Unfortunately the above trigger match doesn't seem to exclude the ones I have in the list. Anyone have an idea how I can solve this?
Thanks
Settun
to create a trigger that will work when a Player sends a tell, (SoAndSo tells you, )
but at the same time exclude occurences whereby
<NPC Tells shouldn't fire the trigger>
(a guild banker tells you, )
or (Parcel Delivery Liason tells you, )
or (a personal banker tells you, )
or (General Supply Merchant tells you, )
or (Teleportation Assistant tells you, )
{S1}(?!{Teleportation Assistant|Parcel Delivery Liaison|a personal banker|a guild banker|General Supply Merchant|Teleportation Assistant}) tells you, '
Unfortunately the above trigger match doesn't seem to exclude the ones I have in the list. Anyone have an idea how I can solve this?
Thanks
Settun
Re: Trigger for Tells received. (But exclude NPC Tells)
^((?!Teleportation Assistant|Parcel Delivery Liaison|a personal banker|a guild banker|General Supply Merchant).)*tells you, '
This trigger works but it's a pretty expensive operation to exclude specific NPCs.
This trigger works but it's a pretty expensive operation to exclude specific NPCs.
Re: Trigger for Tells received. (But exclude NPC Tells)
Thank you very very much Sirene.
Re: Trigger for Tells received. (But exclude NPC Tells)
I figured out a more efficient way of doing this -
Search Text:
^((?<!\s).)*tells you, '
This will do a negative lookbehind for \s (a space) and exclude tells from anyone or anything with a space in it's name (NPCs with more than one word in their name)
Search Text:
^((?<!\s).)*tells you, '
This will do a negative lookbehind for \s (a space) and exclude tells from anyone or anything with a space in it's name (NPCs with more than one word in their name)
Re: Trigger for Tells received. (But exclude NPC Tells)
i was previously using a {s} so that when i was tabbed out or in another window, it would flash an tell me who was sending a tell.
i wonder if there is a way to combine that with this, so that it wouldnt trigger off of npcs with spaces in their name, but would tell me who was sending the tell.
anybody know?
i wonder if there is a way to combine that with this, so that it wouldnt trigger off of npcs with spaces in their name, but would tell me who was sending the tell.
anybody know?
Re: Trigger for Tells received. (But exclude NPC Tells)
Search Text: ^(?<char>\w+)((?<!\s).)*tells you, '
Display Text: ${char}
Fancier:
Search Text: ^(?<char>\w+)((?<!\s).)*tells you, '{s}'
Display Text: ${char} tells {c}: {s}
Display Text: ${char}
Fancier:
Search Text: ^(?<char>\w+)((?<!\s).)*tells you, '{s}'
Display Text: ${char} tells {c}: {s}
Re: Trigger for Tells received. (But exclude NPC Tells)
awesome, thank you!
Re: Trigger for Tells received. (But exclude NPC Tells)
Since you're using ^ and \w+, you don't need the negative lookbehind for whitespace.Sirene wrote:Search Text: ^(?<char>\w+)((?<!\s).)*tells you, '
Display Text: ${char}
Fancier:
Search Text: ^(?<char>\w+)((?<!\s).)*tells you, '{s}'
Display Text: ${char} tells {c}: {s}
Here's the tell trigger I use:
Search Text:
Code: Select all
^(?!PETNAME1|PETNAME2)((?:\w+\.)?\w+) (?:tells|told) you, '
If you'd like to capture the message or name the group that captures the name of the sender as well, you can modify it as Sirene has done in the fancier version.
Unfortunately, there are still a few NPCs who make it through filters like this. The Rank II spell NPC in Feerrott: The Dream is one example that comes to mind.
-
- Posts: 2
- Joined: Tue Aug 11, 2015 8:27 pm
Re: Trigger for Tells received. (But exclude NPC Tells)
If you are a mage and don't want triggers to fire from tells from your pet in response to commands, I added some additional filtering. Hopefully, unless I messed it up, it still filters out tells from 2 name NPCs as well.
Not sure what kind of performance impact this would have.
^((?<!\s)[^\n\v\f\r])*tells you, (?!'Attacking |'I am unable |'By your command, master.')
Not sure what kind of performance impact this would have.
^((?<!\s)[^\n\v\f\r])*tells you, (?!'Attacking |'I am unable |'By your command, master.')