If I wanted to match a combination that was
Gibartik
Gibentik
Gonar
Jonar
Would it be:
Name:[GJ](ib|on)(ar|en)(tik)+
?
If I wanted to match a combination that was
Gibartik
Gibentik
Gonar
Jonar
Would it be:
Name:[GJ](ib|on)(ar|en)(tik)+
?
I'd say:
Name:.*[GJ][io][bn][ae][rn]*
the first .* isn't realy needed, but I made it a custom to always use it anyway.
Before asking anything read the pre-face section of http://www.smoothwall.org/download/p....9/doc.faq.pdf
after you've read it, you know what to do next...
"Stay alert! Trust noone! Keep your Lazers Handy! Have a nice day." -- Provided courtesy of the Computer. The Computer never lies.
Part of the problem is that pet names match a string.
First char is:
G,J,K,L,X,Z
Then there is a patern:
ab,an,ar,en,er,ib, etc
That cna be repeated up to 3 times.
Then there may or may not be a "tik" on the end.
In perl I'm searching with:
(G|J|K|L|V|X|Z)(ab|an|ar|as|eb|ek|en|er|ib|ob|on)+ (tik|n)*
Ah, I understand. You're trying to identify pets.
Wouldn't it be more easy to filter on a few things to identify a pet?
Name, Race, Class, Level perhaps?
Name:.*[GJKLXZ][aeio]*;9-11:Race:Skeleton:Class:Warrior
for the level 12 Necromancer Pet for instance (http://eq.castersrealm.com/spells/spell.asp?Id=396), chances that there's a named spawn Skeleton with a name starting with G, J, K, L, X or Z + a second character a, e, i or o and in that level range is very small, if not non existant.
Cnf: /usr/local/share/showeq/filters.conf.dist
Before asking anything read the pre-face section of http://www.smoothwall.org/download/p....9/doc.faq.pdf
after you've read it, you know what to do next...
"Stay alert! Trust noone! Keep your Lazers Handy! Have a nice day." -- Provided courtesy of the Computer. The Computer never lies.
Then you have to have the same line for each possible combination of pet race and class. That's 16 searches for just mage pets. I think I have it with:
next if ( $_ =~ /^.:[G|J|K|L|V|X|Z][ab|an|ar|as|eb|ek|en|er|ib|ob|on]+[tik|n]*/ );
that just leaves out a few which are caught with:
next if ( $_ =~ /^.:[G|J|K|L|V|X|Z]tik/ );
Now I need to know how to filter out corrupted data. 2 different spawnlogs I've gotten have alot of ctrl characters in them.
There are currently 1 users browsing this thread. (0 members and 1 guests)