DKP Log Parser Forum Index
 Forum FAQ   Search   Register   Log in 
 About   Download   Forum   Wiki   Development
How to parse a standard loot string from eq2 user log

 
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

Sterich



Joined: 14 Sep 2006
Posts: 6

PostPosted: Thu Sep 14, 2006 6:07 am    Post subject: How to parse a standard loot string from eq2 user log

Reply with quote


Not familiar with regex and reading up on it makes my head spin on the more complex matching

I'd like to simply pull the loot item and the person who grabbed it.

(1158205514)[Wed Sep 13 20:45:14 2006] playerName looted the Fabled \aITEM 1035204894 1244422770:Essence Band of Fear\/a.

We don't use the DKP system as it was intented to be used. More of a Roster and who got what.

Thanks!
-Sterich

Back to top

Lokorin
Site Admin


Joined: 03 Apr 2006
Posts: 697

PostPosted: Sat Sep 16, 2006 9:17 am    Post subject:

Reply with quote


Quote:
(1158205514)[Wed Sep 13 20:45:14 2006] playerName looted the Fabled \aITEM 1035204894 1244422770:Essence Band of Fear\/a.


Loot pattern:
Code:
\((\d+)\)\[.*?\] (\w+) looted the Fabled \\aITEM -?\d+ -?\d+:(.*?)\\/a\.

Loot format:
Code:
0|0|0|0|0|$1|$2|$3|0


If you want additional item types such as Legendary then you can modify it like this.

Code:
\((\d+)\)\[.*?\] (\w+) looted the (?:Fabled|Legendary) \\aITEM -?\d+ -?\d+:(.*?)\\/a\.

Back to top

Sterich



Joined: 14 Sep 2006
Posts: 6

PostPosted: Sat Sep 16, 2006 10:30 pm    Post subject:

Reply with quote


Hi Lokorin,

Some reason, the items are not showing up. Maybe I need to understand the logic on how the code determines when to parse the items.

Because the log files don't have the key commands to tell the parser when a raid starts and when a raid ends, does the parser then not look for the items awarded?

--Sterich

Back to top

Lokorin
Site Admin


Joined: 03 Apr 2006
Posts: 697

PostPosted: Sun Sep 17, 2006 10:44 am    Post subject:

Reply with quote


Sterich wrote:
Because the log files don't have the key commands to tell the parser when a raid starts and when a raid ends, does the parser then not look for the items awarded?


Yes, that might be it. If you only want it to display the items, not any participation, then you could use the following.

Log member pattern:
Code:
\((\d+)\)\[.*?\] (\w+) looted the (?:Fabled|Legendary) \\aITEM -?\d+ -?\d+:.*?\\/a\.

Log member format:
Code:
0|0|0|0|0|$1|$2


That will make it so that whenever somebody loots an item they are considered to be present, which has the side effect of starting and ending the raid when the first and last items are bought. It will however mean that the participation is off, but if you only want it to list the loot items then that's not a problem. Make sure to uncheck the "upload reward intervals with reward equal to 0" checkbox, that way the reward intervals will be ignored (assuming that you have already set the zero sum distribution mode to "off"). As a result only one raid with reward 0 will be created in EQDKP to hold the items, it will list everyone who bought at least one item as participants.

Back to top

SuprSurfr



Joined: 24 May 2007
Posts: 21

PostPosted: Sun May 27, 2007 4:26 am    Post subject:

Reply with quote


How would I make the parser pick up Relic Items as well? Relic items are Fabled items but they dont trigger a guild event.

Here is a snippet of the log.
Code:
(1180223744)[Sat May 26 19:55:44 2007] Probed loots \aITEM 1949175607 818550813:Relic Chain Boots\/a from Exquisite Chest.

Back to top

Lokorin
Site Admin


Joined: 03 Apr 2006
Posts: 697

PostPosted: Tue May 29, 2007 7:08 pm    Post subject:

Reply with quote


SuprSurfr wrote:
How would I make the parser pick up Relic Items as well? Relic items are Fabled items but they dont trigger a guild event.

Here is a snippet of the log.
Code:
(1180223744)[Sat May 26 19:55:44 2007] Probed loots \aITEM 1949175607 818550813:Relic Chain Boots\/a from Exquisite Chest.


That snippet is slightly different from the previous one posted in the thread, do you want a pattern that picks up both types of log snippets?

Back to top

SuprSurfr



Joined: 24 May 2007
Posts: 21

PostPosted: Tue May 29, 2007 11:50 pm    Post subject:

Reply with quote


Yes, I would like to know when someone loots anything that comes from an Ornate or Exquisite chest.

Back to top

Lokorin
Site Admin


Joined: 03 Apr 2006
Posts: 697

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

Reply with quote


SuprSurfr wrote:
Yes, I would like to know when someone loots anything that comes from an Ornate or Exquisite chest.


Does the pattern posted in the other thread do everything you want, or was there something more you wanted it to do?

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