Imbuements CMUD triggers

Need some help with your MUD client? Forgot your password? Get help here.
Forum rules
- Use common sense and be respectful towards each other at all times, even when disagreeing.
- Do not reveal sensitive game information. Guild secrets, player seconds are examples of things not allowed.
Jooli
Adept
Posts: 100
Joined: 14 Jun 2011 16:01

Imbuements CMUD triggers

Post by Jooli » 13 Oct 2012 11:15

As I spend too much time looking up the imbuements, I made a script to display the effects of the imbuements. I like sharing.

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>

Last edited by Jooli on 19 Oct 2012 17:37, edited 6 times in total.

User avatar
gorboth
Site Admin
Posts: 2352
Joined: 03 Mar 2010 20:51
Location: Some old coffin

Re: Imbuements CMUD triggers

Post by gorboth » 13 Oct 2012 17:14

Good stuff, Jooli! I'd use this with my own mortal if I had time to play one. ;-)

G.
Mmmmmm ... pie ...

Draugor
Myth
Posts: 1815
Joined: 06 Mar 2012 00:14

Re: Imbuements CMUD triggers

Post by Draugor » 14 Oct 2012 10:31

Haha, holy crap!

Draugor
Myth
Posts: 1815
Joined: 06 Mar 2012 00:14

Re: Imbuements CMUD triggers

Post by Draugor » 14 Oct 2012 10:31

gorboth wrote:Good stuff, Jooli! I'd use this with my own mortal if I had time to play one. ;-)

G.


Get a mortal then! I need something to hunt! :twisted:

Bromen
Champion
Posts: 678
Joined: 04 Mar 2010 06:29

Re: Imbuements CMUD triggers

Post by Bromen » 14 Oct 2012 23:55

forgive the retarded question...

how do I put this into my Cmud?

Jooli
Adept
Posts: 100
Joined: 14 Jun 2011 16:01

Re: Imbuements CMUD triggers

Post by Jooli » 15 Oct 2012 14:14

copy the code above to a text editor, save as imbuements.xml

Press triggers in CMUD, and choose import xml from the file menu. Import the file.

User avatar
Aimee
Wanderer
Posts: 55
Joined: 11 Mar 2010 19:22
Location: Winnipeg

Re: Imbuements CMUD triggers

Post by Aimee » 15 Oct 2012 16:30

This is awesome,

For someone who is trigger inept, is there a thread, or could their be, with useful triggers?

Aimee
vita aeterna

Arcon

Re: Imbuements CMUD triggers

Post by Arcon » 15 Oct 2012 18:13

Aimee wrote:This is awesome,

For someone who is trigger inept, is there a thread, or could their be, with useful triggers?

Aimee
This might help.

http://www.genesismud.org/forums/viewto ... =14&t=1293

Bromen
Champion
Posts: 678
Joined: 04 Mar 2010 06:29

Re: Imbuements CMUD triggers

Post by Bromen » 16 Oct 2012 10:47

Works like a charm.

Thanks Jooli!

-B

Jooli
Adept
Posts: 100
Joined: 14 Jun 2011 16:01

Re: Imbuements CMUD triggers

Post by Jooli » 17 Oct 2012 19:49

Pinging the thread to show the update. Please note that auction house doesnt work for peculiar and exotic items yet.

Post Reply
http://tworzymyatmosfere.pl/przescieradla-jedwabne-z-gumka/