Edit:
- New version with added auction house support. note it will spam your aulist command the first time.
- Fixed auction house for peculiar and exotic.
Code: Select all
<class name="imbuements" id="321">
<var name="itmp" id="323">14187</var>
<var name="icount" type="Integer" id="324">19</var>
<var name="imbuements" type="Record" id="325">
<value>feeling of calm=resist fire|clusters of frost cling=cold damage|aura of a lion=sword|aura of a boar=club|Onyx formations=fire-slay goblin|Ivory formations=fire-slay minotaur|hissing sound=heat damage|aura of well-being=extra AC|urge to sneeze=resist poison|gleam of mithril coat=increased durability|aura of a stallion=polearm|odor of decay=death damage|ringing in your ears=resist air|feeling of unease=resist life|brown tint=earth spells|feeling of nausea=resist death|aura of crimson energy=spellcraft|azure tint=air spells|aura of light=light|aura of darkness=darkness|tickle in your throat=resist water|smell of lavender=intelligence|silvery aura=two handed combat|itching sensation=resist acid|clicking sound=blindfighting|emitting a purring sound=hide and sneak|enveloped by white flames=elemental damage|opalesque tint=water spells|whine is coming=speed|drone issues from this=slow opponent|fluctuation in % colour=earth damage|goosebumps being around=resist cold|feeling of security emanates=heals the user|drops of faintly green moisture=poison damage|orange glow=awareness|aura of a monkey=unarmed combat|Peridot formations=fire-slay gnome|aura of a spider=knife|grey tint=death spells|Granite formations=fire-slay ogre|smell of cinnamon=dexterity|smell of vanilla=discipline|smell of sage=wisdom|smell of musk=strength|Topaz formations=fire-slay troll|Quartz formations=fire-slay halfling|purple gleam=parry|Mithril formations=fire-slay dwarf|dull feeling=resist magic|smell of alcohol=condition|acid sheen=acid damage|Bone formations=fire-slay undead|Diamond formations=fire-slay dragon|ripples of blue electricty=elecricity damage|Beryl formations=fire-slay elf|disturbance in the air=air-bolts damage|Sapphire formations=fire-slay human|sparkle bewitches your senses=darkvision|hair-raising sensation=resist electricity|rose tint=fire spells|aura of malevolence=increased weapon-damage|swirling bands of yellow energy=defence|aura of a badger=axe|aura of viciousness=increased weapon-acc|feeling of drowsiness=resist earth|blue tint=life spells</value>
<json>{"feeling of calm":"resist fire","clusters of frost cling":"cold damage","aura of a lion":"sword","aura of a boar":"club","Onyx formations":"fire-slay goblin","Ivory formations":"fire-slay minotaur","hissing sound":"heat damage","aura of well-being":"extra AC","urge to sneeze":"resist poison","gleam of mithril coat":"increased durability","aura of a stallion":"polearm","odor of decay":"death damage","ringing in your ears":"resist air","feeling of unease":"resist life","brown tint":"earth spells","feeling of nausea":"resist death","aura of crimson energy":"spellcraft","azure tint":"air spells","aura of light":"light","aura of darkness":"darkness","tickle in your throat":"resist water","smell of lavender":"intelligence","silvery aura":"two handed combat","itching sensation":"resist acid","clicking sound":"blindfighting","emitting a purring sound":"hide and sneak","enveloped by white flames":"elemental damage","opalesque tint":"water spells","whine is coming":"speed","drone issues from this":"slow opponent","fluctuation in % colour":"earth damage","goosebumps being around":"resist cold","feeling of security emanates":"heals the user","drops of faintly green moisture":"poison damage","orange glow":"awareness","aura of a monkey":"unarmed combat","Peridot formations":"fire-slay gnome","aura of a spider":"knife","grey tint":"death spells","Granite formations":"fire-slay ogre","smell of cinnamon":"dexterity","smell of vanilla":"discipline","smell of sage":"wisdom","smell of musk":"strength","Topaz formations":"fire-slay troll","Quartz formations":"fire-slay halfling","purple gleam":"parry","Mithril formations":"fire-slay dwarf","dull feeling":"resist magic","smell of alcohol":"condition","acid sheen":"acid damage","Bone formations":"fire-slay undead","Diamond formations":"fire-slay dragon","ripples of blue electricty":"elecricity damage","Beryl formations":"fire-slay elf","disturbance in the air":"air-bolts damage","Sapphire formations":"fire-slay human","sparkle bewitches your senses":"darkvision","hair-raising sensation":"resist electricity","rose tint":"fire spells","aura of malevolence":"increased weapon-damage","swirling bands of yellow energy":"defence","aura of a badger":"axe","aura of viciousness":"increased weapon-acc","feeling of drowsiness":"resist earth","blue tint":"life spells"}</json>
</var>
<var name="ilist" type="Record" id="326">
<value>0|14150= resist magic|14152= awareness|14153= resist earth|14157= knife, fire-slay dwarf|14167= fire-slay dwarf|14169= fire-slay gnome|14171= two handed combat|14172= water spells|14173= life spells, axe|14174= unarmed combat|14175= |14178= resist life|14179= resist cold|14180= fire-slay dragon|14181= fire spells|14184= fire-slay gnome|14185= fire-slay undead|14186= awareness|14187= earth spells</value>
<json>{"14187":" earth spells","14186":" awareness","14185":" fire-slay undead","14184":" fire-slay gnome","14181":" fire spells","14180":" fire-slay dragon","14179":" resist cold","14178":" resist life","14175":" ","14174":" unarmed combat","14173":" life spells, axe","14172":" water spells","14171":" two handed combat","14169":" fire-slay gnome","14167":" fire-slay dwarf","14157":" knife, fire-slay dwarf","14153":" resist earth","14152":" awareness","14150":" resist magic","0":""}</json>
</var>
<var name="iunusual" id="327">earth spells</var>
<var name="iexotic" type="Literal" id="328"/>
<var name="ipeculiar" type="Literal" id="329"/>
<trigger priority="14" id="330">
<pattern>^($anum:%d) ?{exotic|peculiar|unusual}</pattern>
<value>$temp = 0
#LOOPDB @ilist {#IF (%regex(%key, $anum)) {$temp = %val}}
#IF ($temp) {#ECHO $temp} {#addkey ilist $anum "";!aulist $anum}</value>
<arglist>$anum</arglist>
</trigger>
<trigger priority="21" regex="true" id="331">
<pattern>@imbuements</pattern>
<value>#LOOPDB @imbuements {#IF (%regex(%line(0), %key)) {#ECHO %val}}</value>
</trigger>
<trigger priority="2820" trigontrig="false" id="332">
<pattern>Auction number ($anum:%d)</pattern>
<value>#VAR iunusual ""
#VAR ipeculiar ""
#VAR iexotic ""
#VAR itmp $anum</value>
<arglist>$anum</arglist>
<trigger name="iunusual" type="Within Lines" param="40" trigontrig="false" regex="true">
<pattern>Store Price</pattern>
<value>#LOOPDB @imbuements {#IF (%regex(%line(9), %key)) {#VAR iexotic {%val,}}}
#LOOPDB @imbuements {#IF (%regex(%line(7), %key)) {#VAR ipeculiar {%val,}}}
#LOOPDB @imbuements {#IF (%regex(%line(5), %key)) {#VAR iunusual %val}}
#IF !(@iunusual) {#LOOPDB @imbuements {#IF (%regex(%line(6), %key)) {#VAR iunusual %val}}}
#ADDKEY ilist @itmp {@iexotic @ipeculiar @iunusual}</value>
</trigger>
</trigger>
</class>