Exslims / MercuryTrade

An overlay application for Path of Exile(Tracking, Trading, Chat, etc)
MIT License
497 stars 168 forks source link

Support message format for poeapp.com #54

Closed poeapp closed 7 years ago

poeapp commented 7 years ago

Message format: wtb {{item}} in {{league}} (stash "{{stash}}"; left {{x}}, top {{y}})

If the item has a price then {{item}} is appended with: listed for {{amount}} {{currency}}

Currency Names (these currency names are also used in my poe trade equivalent message)

Blessed Orb
Cartographers Chisel
Chaos Orb
Chromatic Orb
Divine Orb
Eternal Orb
Exalted Orb
Gemcutters Prism
Jewellers Orb
Mirror of Kalandra
Orb of Alchemy
Orb of Alteration
Orb of Augmentation
Orb of Chance
Orb of Fusing
Orb of Regret
Orb of Scouring
Orb of Transmutation
Portal Scroll
Regal Orb
Scroll of Wisdom
Vaal Orb
Perandus Coins

Examples:
@WielkiCymbaw wtb Shavronne's Wrappings Occultist's Vestment listed for 7.5 Exalted Orbs in legacy (stash ">=10c"; left 11, top 5)
@FireBallszzzz wtb Shavronne's Wrappings Occultist's Vestment in legacy (stash "crafting"; left 11, top 10)

Gems have a ({{level}}/{{quality}}%) following the name:
@BoomBoomiee wtb Molten Strike (1/0%) listed for 1 Orb of Alteration in legacy (stash "Gems"; left 2, top 5)

Exslims commented 7 years ago

@poeapp sorry for the long absence, in the templates nothing has changed?

poeapp commented 7 years ago

No worries and yes, the templates are still the same.

Exslims commented 7 years ago

@poeapp maybe you have regexp patterns? to me not to waste time)

poeapp commented 7 years ago

Maybe something like this will get you most of the way there:

/wtb\s+?(.+?)\s+?in\s+?(.+?)\s+?\(stash\s+?"(.*?)";\s+?left\s+?(\d+?),\s+?top\s+(\d+?)\)(?:\s+?listed for\s+?([\d\.]+?)\s+?(.+))?/
Exslims commented 7 years ago

@poeapp thx

Exslims commented 7 years ago

@poeapp added in 1.0.1.6