DKP Log Parser Forum Index
 Forum FAQ   Search   Register   Log in 
 About   Download   Forum   Wiki   Development
EQ2 pattern help - thanks in advance.

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    DKP Log Parser Forum Index -> Patterns

Author

Message

magik



Joined: 18 Dec 2006
Posts: 6

PostPosted: Mon Dec 18, 2006 8:16 pm    Post subject: EQ2 pattern help - thanks in advance.

Reply with quote


Hello All I saw the prevous post and I am hoping you can get me working also. Not sure really how they work dispite trying to read thru the wiki.

Here are some parse cut/pastes. Mainly concerned with loot and events this time around. I am using the eq2 /whoraid set. It seems to be getting the raiders np problem, so far not getting the rest.

(1166472521)[Mon Dec 18 21:08:41 2006] /whoraid search results for Tenebrous Tangle:
(1166472521)[Mon Dec 18 21:08:41 2006] ------------------------------------------
(1166472521)[Mon Dec 18 21:08:41 2006] [69 Troubador] Magikfingers (Dwarf)
(1166472521)[Mon Dec 18 21:08:41 2006] [57 Mystic] Jaylo (Half Elf)
(1166472521)[Mon Dec 18 21:08:41 2006] [70 Templar] Dodgers (High Elf)
(1166472521)[Mon Dec 18 21:08:41 2006] [51 Warlock] Varlog (Erudite)
(1166472521)[Mon Dec 18 21:08:41 2006] 4 players found

(1166472575)[Mon Dec 18 21:09:35 2006] You say to the raid party,"*Loot Dodgers - silk panties of healage - 100"

(1166472547)[Mon Dec 18 21:09:07 2006] You say to the raid party,"*event 1st Kill - 10"

(1166472592)[Mon Dec 18 21:09:52 2006] You say to the raid party,"*add dodgers"

(1166472600)[Mon Dec 18 21:10:00 2006] You say to the raid party,"*remove dodgers"

Also I would like (if possible) to allow only myself and one other person to be able to issue these commands, which spots/how do I enter their names so the parser only reads there entries ? thanks a ton for the help.

Best,
Magik

Back to top

Lokorin
Site Admin


Joined: 03 Apr 2006
Posts: 697

PostPosted: Tue Dec 19, 2006 10:31 pm    Post subject: Re: EQ2 pattern help - thanks in advance.

Reply with quote


The set by default captures things said in channels. To capture things said in the raid party you would have to replace
Code:
You tell .*? \(\d+\),
with
Code:
You say to the raid party,
in every pattern.

So for instance the loot pattern should be changed from
Code:
\((\d+)\)\[.*?\] You tell .*? \(\d+\),"\*[Ll]oot (\w+) - (.*?) - (-?\d+(?:\.\d+)?)"\Z

to
Code:
\((\d+)\)\[.*?\] You say to the raid party,"\*[Ll]oot (\w+) - (.*?) - (-?\d+(?:\.\d+)?)"\Z


magik wrote:
Also I would like (if possible) to allow only myself and one other person to be able to issue these commands, which spots/how do I enter their names so the parser only reads there entries ?


Sure, that's not a problem. I don't know how it looks in the log when someone else speaks in the raid party though (and I don't see any samples in your post). I'm going to assume that it's something similar to:

(1166472575)[Mon Dec 18 21:09:35 2006] Foo tells the raid party,"*Loot Dodgers - silk panties of healage - 100"

where "Foo" is the person you want to add. In that case the following should work.
Code:
\((\d+)\)\[.*?\] (?:You say to the raid party|Foo tells the raid party),"\*[Ll]oot (\w+) - (.*?) - (-?\d+(?:\.\d+)?)"\Z

The
Code:
(?:You say to the raid party|Foo tells the raid party)
part basically means that it accepts either lines beginning with "You say to the raid party" or "Foo tells the raid party". So if my assumption about the format is correct then you should just have to replace "Foo" with the real name.

Back to top

magik



Joined: 18 Dec 2006
Posts: 6

PostPosted: Mon Jan 22, 2007 9:15 am    Post subject:

Reply with quote


Hi Lokorin,

Okay so I made the changes to the loot pattern as you gave me, but it still doesn't seem to work excatly correct.

Here are some copy/paste from my log and the pattern I am using.

\((\d+)\)\[.*?\] You say to the raid party,"\*[Ll]oot (\w+) - (.*?) - (-?\d+(?:\.\d+)?)"\Z

(1169415613)[Sun Jan 21 22:40:13 2007] You say to the raid party,"*loot Beerstorm - Doomrage Greaves - 25 dkp"
(1169408853)[Sun Jan 21 20:47:33 2007] You say to the raid party,"*loot ladytiara - Relic Silk Cowl - 95 DKP"
(1169410317)[Sun Jan 21 21:11:57 2007] You say to the raid party,"*loot Algazeed - Adamantine Dragonfang - 25 DKP"
(1169415489)[Sun Jan 21 22:38:09 2007] You say to the raid party,"*loot Dreamweave - Auspex (Master I) - 10"

Now on my last parse, this pattern only picked up Dreamweave's loot. None of the others?

It all appears to me to be the same not sure why only one was read by the program.

I have also decided to just use this pattern (no one else speaking or using a private channel), so any help would be amazingly cool of you. Thanks in advance. Also the changes I would make to the loot, I am assuming I can make the same changes to each other pattern to have them also work correctly ? (add, remove, event etc. )

Magik.

Back to top

magik



Joined: 18 Dec 2006
Posts: 6

PostPosted: Mon Jan 22, 2007 9:17 am    Post subject:

Reply with quote


NM ...

after I posted my previous I see what I am doing wrong ... the "DKP" at the end of the lines must be messing something up.... I will just refrain from using them!

Love the tool, especially since I am guessing it will be running perfect once I make these changes!

Magik.

Back to top

Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    DKP Log Parser Forum Index -> Patterns All times are GMT
Page 1 of 1

 


Powered by phpBB © 2001, 2005 phpBB Group
SoftGreen 1.1 phpBB theme © DaTutorials.com 2005