expression for rare crystals

Discussion on a variety of topics. Ask general Vtank questions here.
Dmdtt
Moderator
Posts: 271

expression for rare crystals

Post #1 »

working on an expression to detect rare crystals in inventory looking for a second opinion, so far this is what I have

wobjectfindininventorybynamerx[(\.\+\'\.\+Crystal\$\|\.\+\'\.\+Pearl\$\|\^Pearl\.\+\|\.\+\'\.\+Jewel\$)]

now this works to detect any of the possible rare crystals. what I am wondering however is if anyone can think of a non rare that it would also detect on accident?

User avatar
Immortalbob
Site Admin
Posts: 676
Contact:

Post #2 »

Shendolain Crystal Shield
Shendolain Crystal Bow
Shendolain Crystal Atlatl
Shendolain Crystal Orb
Shendolain Crystal Crossbow
Fenmalain Crystal Shield
Fenmalain Crystal Bow
Fenmalain Crystal Atlatl
Fenmalain Crystal Orb
Fenmalain Crystal Crossbow
Caulnalain Crystal Shield
Caulnalain Crystal Bow
Caulnalain Crystal Atlatl
Caulnalain Crystal Orb
Caulnalain Crystal Crossbow
Iolite Crystal
spectral crystals
Bottle of Crystal Champagne
Crystal Nodule
Crystal Sword
Enhanced Crystal Sword
West Gate Harmonic Crystal
East Gate Harmonic Crystal
North Gate Harmonic Crystal
Wand of the Frore Crystal
Whispering Venom crystal
Scintillating Crystal Ring
Crystal Ring of Protection
Elixir of Crystal Skin
Blighted Mana Crystal
Crystal Vase with Snowflower(s)
Crystal Vase with Sunflower(s)
Crystal Vase
Daichroic Crystal
Crystal of Perception
Small Pale Crystal
Pale Crystal
Large Pale Crystal
Crystal Shard Sample
Energy Crystal
Frozen Black Crystal
Empyrean Crystal
Crystal Shard
Idol of black Crystal
Imaging Crystal: Arcane Pedestal imprinted
Imaging Crystal
Hardened Blue Crystal
Bundle of Crystal Arrowheads
Crystal-tip Arrow
Crystal-tip Quarrel
Crystal-tip Atlatl Dart
Crystal of Frozen Elemental Essence
Elemental Progenitor Crystal
Combined Alkalemic Progenitor Crystal
Combined Thermal Progenitor Crystal
Force Progenitor Crystal
Shadow Progenitor Crystal
Prismatic Progenitor Crystal
Lightning Progenitor Crystal
Acidic Progenitor Crystal
Burning Progenitor Crystal
Chilling Progenitor Crystal
Whispering Venom crystal
Crystal Ring of Quickness
Whispering Venom Crystal Ring
Void Crystal
Crystal of Spectral Blood
Crystal of Fiery Elemental Essence
Dark Tree Crystal
Valara Crystal
An unknown crystal
Crystal of Electric Elemental Essence
Crystal
Faintly Glowing Data Crystal
Glowing Data Crystal
Brightly Glowing Data Crystal
Purple Energy Crystal
Orange Energy Crystal
Token of the Luminous Crystal of Surging Strength
Token of the Luminous Crystal of Towering Defense
Token of the Luminous Crystal of Vitality
Luminous Crystal of Surging Strength
Luminous Crystal of Towering Defense
Luminous Crystal of Vitality
Strange Purple Crystal from The Shadows
Amulet of the Green Crystal
Ancient Tablet of the Crystal Amulet (Level 180+)
Ancient Tablet of the Crystal Staff (Level 180+)
Ancient Tablet of the Crystal Sword (Level 180+)
Sword of White Crystal
Ancient Tablet of the Crystal Idol (Level 180+)
Sacred A'nakshay Crystal
Yellow Destabilizing Crystal
Red Destabilizing Crystal
Staff of Red Crystal



And a whole lot more...not even gonna start listing jewel/pearls....
Immortalbob of MT

Dmdtt
Moderator
Posts: 271

Post #3 »

well at least it wont match any of those so I am encouraged, the one I posted requires an apostrophe in the name. unless it starts with pearl so that is probably where it will find a false match.

Joeblow8579
Posts: 69

Post #4 »

A regex that looks for "\'s Crystal" or "\'s Jewel" will only match the rares. Pearls are tougher, but there aren't many of them so you could probably just match to them individually. Looking at the wiki, I can't see a regex that will only match the rare pearls and not others, such as the luminance consumables.

User avatar
Immortalbob
Site Admin
Posts: 676
Contact:

Post #5 »

Dmdtt wrote:well at least it wont match any of those so I am encouraged, the one I posted requires an apostrophe in the name. unless it starts with pearl so that is probably where it will find a false match.
lol i didnt even notice that...should be fine
Immortalbob of MT