horseshoecrab
03-05-2004, 09:44 PM
Hi,
I used search, read, re-read, and re-read some more each of the relevant posts in this forum along with a mostly unhelpful O'Reilly book and several web pages that have information on regexp. Now I'm stuck and some help would be greatly appreciated.
As has been discussed in 1 or 2 other threads, I'm interested in having a filtered spawn list in SEQ 5.x that properly removes summoned pets, familiars, mounts, and warders. My global.xml file is as follows:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE seqfilters SYSTEM "seqfilters.dtd">
<seqfilters>
<section name="Filtered">
<oldfilter><regex>Door</regex></oldfilter>
<oldfilter><regex>[Ee]mote</regex></oldfilter>
<oldfilter><regex>Spawner</regex></oldfilter>
<oldfilter><regex>timer</regex></oldfilter>
<oldfilter><regex>`s ([Ff]amiliar|[Mm]ount|[Ww]arder)</regex></oldfilter>
<oldfilter><regex>Name:[GJKLVXZ]([aeio][bnrsk])+(n|tik):.*:NPC:1</regex></oldfilter>
<oldfilter><regex>Name:[GJKLVXZ]([aeio][bnrsk])+([aeio]r|[aeio]b):.*:NPC:1</regex></oldfilter>
</section>
</seqfilters>
The good news is I have yet to have any "false positives" in which non-pets and such end up in the "filtered" section of the list. Now I will come to my question.
My concern is that a mob could be named something such as Lord Jobaber and it would show up in the filtered list which is obviously what I don't want. I've tried using various anchors but the end up removing pets from the list as well. For example
<oldfilter><regex>Name:^[GJKLVXZ]([aeio][bnrsk])+(n|tik):.*:NPC:1</regex></oldfilter>
<oldfilter><regex>Name:^[GJKLVXZ]([aeio][bnrsk])+([aeio]r|[aeio]b):.*:NPC:1</regex></oldfilter>
or
<oldfilter><regex>Name:\<[GJKLVXZ]([aeio][bnrsk])+(n|tik):.*:NPC:1</regex></oldfilter>
<oldfilter><regex>Name:\<[GJKLVXZ]([aeio][bnrsk])+([aeio]r|[aeio]b):.*:NPC:1</regex></oldfilter>
completely removes pets from the filtered list and I truly don't understand why. By the same token, I can't figure out how to use the $ at the end of the string to indicate the mob's name should end with tik, b, n, etc.
Please help, I've really tried hard to make this work. If somebody can nail this down, I believe it would be worthy of Blue Adept's wonderful distributions.
Thanks in advance.
I used search, read, re-read, and re-read some more each of the relevant posts in this forum along with a mostly unhelpful O'Reilly book and several web pages that have information on regexp. Now I'm stuck and some help would be greatly appreciated.
As has been discussed in 1 or 2 other threads, I'm interested in having a filtered spawn list in SEQ 5.x that properly removes summoned pets, familiars, mounts, and warders. My global.xml file is as follows:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE seqfilters SYSTEM "seqfilters.dtd">
<seqfilters>
<section name="Filtered">
<oldfilter><regex>Door</regex></oldfilter>
<oldfilter><regex>[Ee]mote</regex></oldfilter>
<oldfilter><regex>Spawner</regex></oldfilter>
<oldfilter><regex>timer</regex></oldfilter>
<oldfilter><regex>`s ([Ff]amiliar|[Mm]ount|[Ww]arder)</regex></oldfilter>
<oldfilter><regex>Name:[GJKLVXZ]([aeio][bnrsk])+(n|tik):.*:NPC:1</regex></oldfilter>
<oldfilter><regex>Name:[GJKLVXZ]([aeio][bnrsk])+([aeio]r|[aeio]b):.*:NPC:1</regex></oldfilter>
</section>
</seqfilters>
The good news is I have yet to have any "false positives" in which non-pets and such end up in the "filtered" section of the list. Now I will come to my question.
My concern is that a mob could be named something such as Lord Jobaber and it would show up in the filtered list which is obviously what I don't want. I've tried using various anchors but the end up removing pets from the list as well. For example
<oldfilter><regex>Name:^[GJKLVXZ]([aeio][bnrsk])+(n|tik):.*:NPC:1</regex></oldfilter>
<oldfilter><regex>Name:^[GJKLVXZ]([aeio][bnrsk])+([aeio]r|[aeio]b):.*:NPC:1</regex></oldfilter>
or
<oldfilter><regex>Name:\<[GJKLVXZ]([aeio][bnrsk])+(n|tik):.*:NPC:1</regex></oldfilter>
<oldfilter><regex>Name:\<[GJKLVXZ]([aeio][bnrsk])+([aeio]r|[aeio]b):.*:NPC:1</regex></oldfilter>
completely removes pets from the filtered list and I truly don't understand why. By the same token, I can't figure out how to use the $ at the end of the string to indicate the mob's name should end with tik, b, n, etc.
Please help, I've really tried hard to make this work. If somebody can nail this down, I believe it would be worthy of Blue Adept's wonderful distributions.
Thanks in advance.