|
|
Author |
Message |
kassekrane
Joined: 26 Oct 2009 Posts: 3
|
Posted: Mon Oct 26, 2009 7:10 pm Post subject: [EQ2] Change item name |
|
|
Hi and Thanx for the DKPLP !!
My problem, when I parse item, I link item in the chat.
Exemple :
Kassekrane - \aITEM -1651017392 1711664321:Battleguard of Atrebe\/a - 50
in the Dkplp I want just Battleguard of Atrebe for the loot, how I can make this ?
Sorry for my bad english  |
|
Back to top |
|
 |
Ewen
Joined: 02 Nov 2009 Posts: 1
|
Posted: Wed Nov 04, 2009 6:23 pm Post subject: |
|
|
RegEx est ton ami
sans commande *Loot
| Code: |
| \((\d+)\)\[.*?\] You say, "(\w+) - \\aITEM -?\d+ -?\d+:(.*?)\\/a - (-?\d+(?:\.\d+)?)" |
Avec commande *Loot :
| Code: |
| \((\d+)\)\[.*?\] You say, "\*[Ll]oot (\w+) - \\aITEM -?\d+ -?\d+:(.*?)\\/a - (-?\d+(?:\.\d+)?)" |
Attention, Kassekrane - Battleguard of Atrebe - 50 ne retournera rien, il faut impérativement linker l'objet
Si tu veux que ca fonctionne avec ou sans le link il faut échapper les chaines de caractères, ce qui donne (avec la commande *Loot):
| Code: |
| \((\d+)\)\[.*?\] You say, "\*[Ll]oot (\w+) - (?:\\aITEM -?\d+ -?\d+:|)(.*?)(?:\\/a|) - (-?\d+(?:\.\d+)?)" |
@+ |
|
Back to top |
|
 |
kassekrane
Joined: 26 Oct 2009 Posts: 3
|
Posted: Tue Apr 20, 2010 6:54 am Post subject: |
|
|
Merci Ewen, je vas tester ça  |
|
Back to top |
|
 |
|