Mush Client Reagent Buying Plugin

Order Of Chaos Alliance Wiki | RecentChanges | Visiting as a guest. Login for full access.
This plugin allows you to refill your reagent containers automatically.

The following aliases are available:

container-<reagent> <container> - to set default container for a given reagent
                                  for example: container-fire a red silk bag
                                  DON'T use quotes in the container description
                                  the plugin will handle that on its own

reagents-refill                 - to automatically probe inventory/containers
                                  and purchase/fill them accordingly

reagents-timer <seconds>        - to set the wait time between each command
                                  the default is set to 1 second

reagents-demo                   - to toggle the 'demo' mode where no actual
                                  commands are sent but are shown instead

reagents-shopid                 - to toggle shop identification and load the
                                  correct reagents set for a given shop
                                  (this feature is still experimental!)

reagents_mm:help                - to bring up this help text

reagents_mm:test <lua code>     - to tinker with it while it's loaded


Known issues and limitations:

- The plugin works for default (Rune-like) reagents only at the moment, if you
  need it to work for other shops (like Sigil) try reagents-shopid to enable
  the shop identification feature.

- The plugin handles only one container for a given reagent type, if you happen
  to use two containers then you'll need to set an outside alias to define two
  sets of containers.

  example alias: containerset1
  script: Execute("container-air a yellow silk bag")
          Execute("container-water a blue silk bag")
  ... etc.

  example alias: containerset2
  script: Execute("container-air 2.a yellow silk bag")
          Execute("container-water 2.a blue silk bag")
  ... etc.

  Make sure to have 'Script' selected in the 'Send To' box for Execute() to
  work properly.

- This plugin attempts to fill a container -completely- there is no way to
  define partial limits, it just assumes a given container is dedicated to
  holding a specific type of reagent only.

- This plugin is not *squeaky clean* per se, it does not check for encumberance
  due to weight or if a shop is closed/out of stock or if you're out of money.
  In either cases, you're likely to be spammed by the shopkeeper in bright red.

- If you happen to be using relatively indexed containers like bag, 2.bag etc.
  you should ensure there is no other bag present in the room itself or the
  plugin will attempt to fill that bag instead. It's a problem with how the
  game prioritises item indexing. If you do find a bag/whatever dropped at
  a reagent shop, you're well in your right to find out whoever dropped it
  and rend them apart limb by limb, slowly.

- If you get an error like this:

    attempt to perform arithmetic on field 'maxi' (a nil value)

  then it probably means one of the capture triggers failed to record a
  container's contents. I'm still tracking down why that happens, however,
  reinstalling and reattempting the same action seems to work in most
  cases. Increasing the wait time between each command (reagents-timer)
  might help as well.

- On that note, if you set the wait period between commands too low it may
  not work as expected. A value between 0.5 to 1 seconds is recommended.

Plugin be here: Reagents_MM


The shop identification is not complete yet because I haven't tested it with all the shops available. If you'd like to help fill out the missing bits, please give it a try and have a look at the reagents table on my profile.

Sample Output (with shop identification enabled):
Reagents_MM: Probing which shop you're at, please wait...
 The Xaventry Magic Shoppe                              -      -      -
Reagents_MM: Shop identified to be at: Xaventry
(-------------------------------------------------)     - <---(M)---> -
                                                        -      #      -
  This is the only shop in town dedicated to the arcane art of magic.  This
place has everything that the sorcerer may need, ranging from empty scrolls
to magical reagents.  There is a wide variety of spell books here, as the
paper needed to make them is very easily found.  The clerk behind the desk
happens to know a lot about how to bind those books together too.  
A guard of Vandyne's followers paces around.
[Shop] An old sage sits here counting the coins he's earned.
[*]<3120hp 3222sp 1212st> 
Reagents_MM: Probing your current inventory space, please wait...
You are carrying:
     a wooden cane (new)
     a non-existent payroll stub with a scribbled '100,000' at the bottom
     a small bronze bell
     a non-existent payroll stub with a scribbled '200,000' at the bottom
     a non-existent payroll stub with a scribbled '500,000' at the bottom
(  3) a bag embroidered with a sunburst insignia (new)
(  3) a gnomish miner's bag (new)
     a brass divination tray (new)
     Le Trunk! (new)
A total of 13 items weighing 14 stones, 88 pebbles (0pb gold weight)
You may carry a maximum of 58 items weighing up to 21 st, 0 pb.
[*]<3120hp 3222sp 1212st> 
Reagents_MM: Probing your current containers, please wait...
A gnomish miner's bag contains:
( 49) a silver runestone
A total of 49 (75 max) items weighing 0 sts, 98 pbs (12 sts, 50 pbs max).
[*]<3120hp 3222sp 1212st> 
A bag embroidered with a sunburst insignia contains:
(  3) a charred brick
( 71) a pinch of sulfur
A total of 74 (100 max) items weighing 0 sts, 6 pbs (1 st, 50 pbs max).
[*]<3120hp 3222sp 1212st> 
A gnomish miner's bag contains:
( 75) a shimmering white fish scale
A total of 75 (75 max) items weighing 0 sts, 0 pbs (12 sts, 50 pbs max).
[*]<3120hp 3222sp 1212st> 
A bag embroidered with a sunburst insignia contains:
( 10) a quartz stone
( 64) a browning mandrake leaf
A total of 74 (100 max) items weighing 0 sts, 10 pbs (1 st, 50 pbs max).
[*]<3120hp 3252sp 1482st> (0|30|270)
A bag embroidered with a sunburst insignia contains:
( 11) a sylph in a bottle
( 41) a feather from a roc
     a tail feather (new)
A total of 53 (100 max) items weighing 0 sts, 23 pbs (1 st, 50 pbs max).
[*]<3120hp 3252sp 1482st> 
A gnomish miner's bag contains:
( 14) a white sapphire
( 34) a sunstone
A total of 48 (75 max) items weighing 1 st, 44 pbs (12 sts, 50 pbs max).
[*]<3120hp 3252sp 1482st> 
Reagents_MM: Buying and filling your current containers, please wait...
You pay an old sage 1,406 gp from your gold on hand, 1,584 gp from your account at New Rigel Bank 
and Trust.
An old sage hands you 26 of a small sparkling diamond.
[*]<3120hp 3252sp 1482st> 
You put 26 of a small sparkling diamond in a gnomish miner's bag.
[*]<3120hp 3252sp 1482st> 
You pay an old sage 1,300 gp from your account at New Rigel Bank and Trust.
An old sage hands you 26 of a charred brick.
[*]<3120hp 3252sp 1482st> 
You put 26 of a charred brick in a bag embroidered with a sunburst insignia.
[*]<3120hp 3252sp 1482st> 
You pay an old sage 1,040 gp from your account at New Rigel Bank and Trust.
An old sage hands you 26 of a quartz stone.
[*]<3120hp 3252sp 1482st> 
You put 26 of a quartz stone in a bag embroidered with a sunburst insignia.
[*]<3120hp 3252sp 1482st> 
You pay an old sage 2,475 gp from your account at New Rigel Bank and Trust.
An old sage hands you 45 of a sylph in a bottle.
[*]<3120hp 3252sp 1482st> 
You put 45 of a sylph in a bottle in a bag embroidered with a sunburst insignia.
[*]<3120hp 3252sp 1482st> 
You pay an old sage 110 gp from your account at New Rigel Bank and Trust.
An old sage hands you 2 of a sylph in a bottle.
[*]<3120hp 3252sp 1482st> 
You put 2 of a sylph in a bottle in a bag embroidered with a sunburst insignia.
[*]<3120hp 3252sp 1482st> 
You pay an old sage 4,455 gp from your account at New Rigel Bank and Trust.
An old sage hands you 27 of a white sapphire.
[*]<3120hp 3252sp 1482st> 
You put 27 of a white sapphire in a gnomish miner's bag.
[*]<3120hp 3252sp 1482st> 
Reagents_MM: Done!


Please report bugs to Enelya.

Order Of Chaos Alliance Wiki | RecentChanges | Visiting as a guest. Login for full access.
This page is read-only.
Last edited June 15, 2011 3:30 pm by Enelya (diff)
Search: