|
|
Author |
Message |
SuprSurfr
Joined: 24 May 2007 Posts: 21
|
Posted: Sun May 27, 2007 6:19 am Post subject: Pattern For the person taking the logs not showing loot |
|
|
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
|
Posted: Tue May 29, 2007 7:03 pm Post subject: Re: Pattern For the person taking the logs not showing loot |
|
|
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
|
Posted: Wed May 30, 2007 8:53 pm Post subject: |
|
|
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
|
Posted: Thu May 31, 2007 11:52 pm Post subject: |
|
|
| 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
Thanks for the Help Lokorin! |
|
Back to top |
|
 |
|