DKP Log Parser Forum Index
 Forum FAQ   Search   Register   Log in 
 About   Download   Forum   Wiki   Development
Pattern For the person taking the logs not showing loot

 
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

SuprSurfr



Joined: 24 May 2007
Posts: 21

PostPosted: Sun May 27, 2007 6:19 am    Post subject: Pattern For the person taking the logs not showing loot

Reply with quote


Here is my loot pattern:

Code:
\((\d+)\)\[.*?\] (\w+) loots \\aITEM -?\d+ -?\d+:(.*?)\\/a from (?:Exquisite|Ornate) Chest\.


Here is my Log snippet:

Code:
(1180222562)[Sat May 26 19:36:02 2007] You loot \aITEM 1254375204 -280782926:Relic Silk Cap\/a from the Exquisite Chest of a Doomwing forgewright.


I modified the Pattern above to look for all Exquisite and Ornate chest loots, but if the person doing the parsing loots something it doesnt get collected. Could someone give me a hand with the pattern?

Thanks!

Back to top

Lokorin
Site Admin


Joined: 03 Apr 2006
Posts: 697

PostPosted: Tue May 29, 2007 7:03 pm    Post subject: Re: Pattern For the person taking the logs not showing loot

Reply with quote


This might work
Code:
\((\d+)\)\[.*?\] (?:You loot|(\w+) loots) \\aITEM -?\d+ -?\d+:(.*?)\\/a from the (?:Exquisite|Ornate) Chest.*


Then you also need to provide a default value in the format:

I assume your format is something like
Code:
0|0|0|0|0|$1|$2|$3|0
so it would have to be changed to
Code:
0|0|0|0|0|$1|$2!My name|$3|0


I have no log to test it with though, so it might not work. If it doesn't then please send me a log that I can test with and I will try to find something that does work.

Back to top

Lokorin
Site Admin


Joined: 03 Apr 2006
Posts: 697

PostPosted: Wed May 30, 2007 8:53 pm    Post subject:

Reply with quote


I refined the pattern after testing with your log:

Code:
\((\d+)\)\[.*?\] (?:You loot|(\w+) loots) \\aITEM -?\d+ -?\d+:(.*?)\\/a from (?:the )?(?:Exquisite|Ornate) Chest.*

Code:
0|0|0|0|0|$1|$2!My name|$3|0

Back to top

SuprSurfr



Joined: 24 May 2007
Posts: 21

PostPosted: Thu May 31, 2007 11:52 pm    Post subject:

Reply with quote


Lokorin wrote:
I refined the pattern after testing with your log:

Code:
\((\d+)\)\[.*?\] (?:You loot|(\w+) loots) \\aITEM -?\d+ -?\d+:(.*?)\\/a from (?:the )?(?:Exquisite|Ornate) Chest.*

Code:
0|0|0|0|0|$1|$2!My name|$3|0



By "!MY name" I assume that you mean to replace that with my characters name?

I tried what you posted but it was only picking up what i looted, figured it out. When I loot an Item it is displayed in the logs as "from the Exquisite Chest." If another member loots it its "from Exquisite Chest."

So i made my Pattern like so:

Code:
\((\d+)\)\[.*?\] (?:You loot|(\w+) loots) \\aITEM -?\d+ -?\d+:(.*?)\\/a (?:from|from the) (?:Exquisite|Ornate) Chest.*


It works so I must have done something right Very Happy

Thanks for the Help Lokorin!

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