Ixlone
Posts: 5
|
2010-11-07 10:40 pm
If anyone wants to improve this, or make a better version to post, feel free to do so! :x
Zmud:
#CLASS {reagent_counter}
#ALIAS reagent_reset {
reag_eth = 0
reag_air = 0
reag_earth = 0
reag_fire = 0
reag_water = 0
reag_gem = 0
#t+ reagent_counter_resets
l in dream
l in trunk
l in silk
l in 2.silk
l in 3.silk
l in 4.silk
#wait 8000
#t- reagent_counter_resets
}
#ALIAS buy_air {
#if (@reag_air >= 230) {#t+ reagent_counters} {
#t- reagent_counters
shop buy 20 'A feather from a roc'
reag_air = @reag_air + 20
put all.reagent-air 'a yellow silk bag'
#wait 800
buy_air
}
}
#ALIAS buy_earth {
#if (@reag_earth >= 230) {#t+ reagent_counters} {
#t- reagent_counters
shop buy 20 'a browning mandrake leaf'
reag_earth = @reag_earth + 20
put all.reagent-earth 'a black silk bag'
#wait 800
buy_earth
}
}
#ALIAS buy_eth {
#if (@reag_eth >= 130) {#t+ reagent_counters} {
#t- reagent_counters
shop buy 20 'a sunstone'
reag_eth = @reag_eth + 20
put all.reagent-ethereal trunk
#wait 800
buy_eth
}
}
#ALIAS buy_gem {
#if (@reag_gem >= 130) {#t+ reagent_counters} {
#t- reagent_counters
shop buy 20 'a silver runestone'
reag_gem = @reag_gem + 20
put all.gem dream
#wait 800
buy_gem
}
}
#ALIAS buy_fire {
#if (@reag_fire >= 230) {#t+ reagent_counters} {
#t- reagent_counters
shop buy 20 'a pinch of sulfur'
reag_fire = @reag_fire + 20
put all.reagent-fire 'a red silk bag'
#wait 800
buy_fire
}
}
#ALIAS buy_water {
#if (@reag_water >= 155) {#t+ reagent_counters} {
#t- reagent_counters
shop buy 20 'a shimmering white fish scale'
reag_water = @reag_water + 20
put all.reagent-water 'a blue silk bag'
#wait 800
buy_water
}
}
#CLASS 0
#CLASS {reagent_counter|reagent_counter_resets}
#REGEX {\((.+)\) a browning mandrake leaf} {
reag_earth1 = %1
reag_earth1 = %trimleft( @reag_earth1)
reag_earth = @reag_earth1
}
#REGEX {\((.+)\) a feather from a roc} {
reag_air1 = %1
reag_air1 = %trimleft( @reag_air1)
reag_air = @reag_air1
}
#REGEX {\((.+)\) a pinch of sulfur} {
reag_fire1 = %1
reag_fire1 = %trimleft( @reag_fire1)
reag_fire = @reag_fire1
}
#REGEX {\((.+)\) a shimmering white fish scale} {
reag_water1 = %1
reag_water1 = %trimleft( @reag_water1)
reag_water = @reag_water1
}
#REGEX {\((.+)\) a silver runestone} {
reag_gem1 = %1
reag_gem1 = %trimleft( @reag_gem1)
reag_gem = @reag_gem1
}
#REGEX {\((.+)\) a sunstone} {
reag_eth1 = %1
reag_eth1 = %trimleft( @reag_eth1)
reag_eth = @reag_eth1
}
#CLASS 0
#CLASS {reagent_counter|reagent_uses}
#VAR air {feather from a roc}
#VAR earth {browning mandrake leaf}
#VAR eth {sunstone}
#VAR gem {silver runestone}
#VAR fire {pinch of sulfur}
#VAR water {shimmering white fish scale}
#VAR reag {shimmering white fish scale|browning mandrake leaf|feather from a roc|sunstone|pinch of sulfur|silver runestone}
#REGEX {A (@reag) flares brightly and vanishes!$} {
#if (%ismember( %1, @earth)) {#add reag_earth -1}
#if (%ismember( %1, @water)) {#add reag_water -1}
#if (%ismember( %1, @air)) {#add reag_air -1}
#if (%ismember( %1, @fire)) {#add reag_fire -1}
#if (%ismember( %1, @gem)) {#add reag_gem -1}
#if (%ismember( %1, @eth)) {#add reag_eth -1}
} "" {case}
#REGEX {A (@reag), a (@reag), a (@reag), a (@reag), a (@reag), a (@reag), and a (@reag) flare brightly and vanish!$} {
#if (%ismember( %1, @earth)) {#add reag_earth -1}
#if (%ismember( %2, @earth)) {#add reag_earth -1}
#if (%ismember( %3, @earth)) {#add reag_earth -1}
#if (%ismember( %4, @earth)) {#add reag_earth -1}
#if (%ismember( %5, @earth)) {#add reag_earth -1}
#if (%ismember( %6, @earth)) {#add reag_earth -1}
#if (%ismember( %7, @earth)) {#add reag_earth -1}
#if (%ismember( %1, @water)) {#add reag_water -1}
#if (%ismember( %2, @water)) {#add reag_water -1}
#if (%ismember( %3, @water)) {#add reag_water -1}
#if (%ismember( %4, @water)) {#add reag_water -1}
#if (%ismember( %5, @water)) {#add reag_water -1}
#if (%ismember( %6, @earth)) {#add reag_earth -1}
#if (%ismember( %7, @earth)) {#add reag_earth -1}
#if (%ismember( %1, @air)) {#add reag_air -1}
#if (%ismember( %2, @air)) {#add reag_air -1}
#if (%ismember( %3, @air)) {#add reag_air -1}
#if (%ismember( %4, @air)) {#add reag_air -1}
#if (%ismember( %5, @air)) {#add reag_air -1}
#if (%ismember( %6, @air)) {#add reag_air -1}
#if (%ismember( %7, @air)) {#add reag_air -1}
#if (%ismember( %1, @fire)) {#add reag_fire -1}
#if (%ismember( %2, @fire)) {#add reag_fire -1}
#if (%ismember( %3, @fire)) {#add reag_fire -1}
#if (%ismember( %4, @fire)) {#add reag_fire -1}
#if (%ismember( %5, @fire)) {#add reag_fire -1}
#if (%ismember( %6, @fire)) {#add reag_fire -1}
#if (%ismember( %7, @fire)) {#add reag_fire -1}
#if (%ismember( %1, @gem)) {#add reag_gem -1}
#if (%ismember( %2, @gem)) {#add reag_gem -1}
#if (%ismember( %3, @gem)) {#add reag_gem -1}
#if (%ismember( %4, @gem)) {#add reag_gem -1}
#if (%ismember( %5, @gem)) {#add reag_gem -1}
#if (%ismember( %6, @gem)) {#add reag_gem -1}
#if (%ismember( %7, @gem)) {#add reag_gem -1}
#if (%ismember( %1, @eth)) {#add reag_eth -1}
#if (%ismember( %2, @eth)) {#add reag_eth -1}
#if (%ismember( %3, @eth)) {#add reag_eth -1}
#if (%ismember( %4, @eth)) {#add reag_eth -1}
#if (%ismember( %5, @eth)) {#add reag_eth -1}
#if (%ismember( %6, @eth)) {#add reag_eth -1}
#if (%ismember( %7, @eth)) {#add reag_eth -1}
} "" {case}
#REGEX {A (@reag), a (@reag), a (@reag), a (@reag), a (@reag), a (@reag), a (@reag), and a (@reag) flare brightly and vanish!$} {
#if (%ismember( %1, @earth)) {#add reag_earth -1}
#if (%ismember( %2, @earth)) {#add reag_earth -1}
#if (%ismember( %3, @earth)) {#add reag_earth -1}
#if (%ismember( %4, @earth)) {#add reag_earth -1}
#if (%ismember( %5, @earth)) {#add reag_earth -1}
#if (%ismember( %6, @earth)) {#add reag_earth -1}
#if (%ismember( %7, @earth)) {#add reag_earth -1}
#if (%ismember( %8, @earth)) {#add reag_earth -1}
#if (%ismember( %1, @water)) {#add reag_water -1}
#if (%ismember( %2, @water)) {#add reag_water -1}
#if (%ismember( %3, @water)) {#add reag_water -1}
#if (%ismember( %4, @water)) {#add reag_water -1}
#if (%ismember( %5, @water)) {#add reag_water -1}
#if (%ismember( %6, @earth)) {#add reag_earth -1}
#if (%ismember( %7, @earth)) {#add reag_earth -1}
#if (%ismember( %8, @earth)) {#add reag_earth -1}
#if (%ismember( %1, @air)) {#add reag_air -1}
#if (%ismember( %2, @air)) {#add reag_air -1}
#if (%ismember( %3, @air)) {#add reag_air -1}
#if (%ismember( %4, @air)) {#add reag_air -1}
#if (%ismember( %5, @air)) {#add reag_air -1}
#if (%ismember( %6, @air)) {#add reag_air -1}
#if (%ismember( %7, @air)) {#add reag_air -1}
#if (%ismember( %8, @air)) {#add reag_air -1}
#if (%ismember( %1, @fire)) {#add reag_fire -1}
#if (%ismember( %2, @fire)) {#add reag_fire -1}
#if (%ismember( %3, @fire)) {#add reag_fire -1}
#if (%ismember( %4, @fire)) {#add reag_fire -1}
#if (%ismember( %5, @fire)) {#add reag_fire -1}
#if (%ismember( %6, @fire)) {#add reag_fire -1}
#if (%ismember( %7, @fire)) {#add reag_fire -1}
#if (%ismember( %8, @fire)) {#add reag_fire -1}
#if (%ismember( %1, @gem)) {#add reag_gem -1}
#if (%ismember( %2, @gem)) {#add reag_gem -1}
#if (%ismember( %3, @gem)) {#add reag_gem -1}
#if (%ismember( %4, @gem)) {#add reag_gem -1}
#if (%ismember( %5, @gem)) {#add reag_gem -1}
#if (%ismember( %6, @gem)) {#add reag_gem -1}
#if (%ismember( %7, @gem)) {#add reag_gem -1}
#if (%ismember( %8, @gem)) {#add reag_gem -1}
#if (%ismember( %1, @eth)) {#add reag_eth -1}
#if (%ismember( %2, @eth)) {#add reag_eth -1}
#if (%ismember( %3, @eth)) {#add reag_eth -1}
#if (%ismember( %4, @eth)) {#add reag_eth -1}
#if (%ismember( %5, @eth)) {#add reag_eth -1}
#if (%ismember( %6, @eth)) {#add reag_eth -1}
#if (%ismember( %7, @eth)) {#add reag_eth -1}
#if (%ismember( %8, @eth)) {#add reag_eth -1}
} "" {case}
#REGEX {A (@reag), a (@reag), a (@reag), a (@reag), a (@reag), and a (@reag) flare brightly and vanish!$} {
#if (%ismember( %1, @earth)) {#add reag_earth -1}
#if (%ismember( %2, @earth)) {#add reag_earth -1}
#if (%ismember( %3, @earth)) {#add reag_earth -1}
#if (%ismember( %4, @earth)) {#add reag_earth -1}
#if (%ismember( %5, @earth)) {#add reag_earth -1}
#if (%ismember( %6, @earth)) {#add reag_earth -1}
#if (%ismember( %1, @water)) {#add reag_water -1}
#if (%ismember( %2, @water)) {#add reag_water -1}
#if (%ismember( %3, @water)) {#add reag_water -1}
#if (%ismember( %4, @water)) {#add reag_water -1}
#if (%ismember( %5, @water)) {#add reag_water -1}
#if (%ismember( %6, @earth)) {#add reag_earth -1}
#if (%ismember( %1, @air)) {#add reag_air -1}
#if (%ismember( %2, @air)) {#add reag_air -1}
#if (%ismember( %3, @air)) {#add reag_air -1}
#if (%ismember( %4, @air)) {#add reag_air -1}
#if (%ismember( %5, @air)) {#add reag_air -1}
#if (%ismember( %6, @air)) {#add reag_air -1}
#if (%ismember( %1, @fire)) {#add reag_fire -1}
#if (%ismember( %2, @fire)) {#add reag_fire -1}
#if (%ismember( %3, @fire)) {#add reag_fire -1}
#if (%ismember( %4, @fire)) {#add reag_fire -1}
#if (%ismember( %5, @fire)) {#add reag_fire -1}
#if (%ismember( %6, @fire)) {#add reag_fire -1}
#if (%ismember( %1, @gem)) {#add reag_gem -1}
#if (%ismember( %2, @gem)) {#add reag_gem -1}
#if (%ismember( %3, @gem)) {#add reag_gem -1}
#if (%ismember( %4, @gem)) {#add reag_gem -1}
#if (%ismember( %5, @gem)) {#add reag_gem -1}
#if (%ismember( %6, @gem)) {#add reag_gem -1}
#if (%ismember( %1, @eth)) {#add reag_eth -1}
#if (%ismember( %2, @eth)) {#add reag_eth -1}
#if (%ismember( %3, @eth)) {#add reag_eth -1}
#if (%ismember( %4, @eth)) {#add reag_eth -1}
#if (%ismember( %5, @eth)) {#add reag_eth -1}
#if (%ismember( %6, @eth)) {#add reag_eth -1}
} "" {case}
#REGEX {A (@reag), a (@reag), a (@reag), a (@reag), and a (@reag) flare brightly and vanish!$} {
#if (%ismember( %1, @earth)) {#add reag_earth -1}
#if (%ismember( %2, @earth)) {#add reag_earth -1}
#if (%ismember( %3, @earth)) {#add reag_earth -1}
#if (%ismember( %4, @earth)) {#add reag_earth -1}
#if (%ismember( %5, @earth)) {#add reag_earth -1}
#if (%ismember( %1, @water)) {#add reag_water -1}
#if (%ismember( %2, @water)) {#add reag_water -1}
#if (%ismember( %3, @water)) {#add reag_water -1}
#if (%ismember( %4, @water)) {#add reag_water -1}
#if (%ismember( %5, @water)) {#add reag_water -1}
#if (%ismember( %1, @air)) {#add reag_air -1}
#if (%ismember( %2, @air)) {#add reag_air -1}
#if (%ismember( %3, @air)) {#add reag_air -1}
#if (%ismember( %4, @air)) {#add reag_air -1}
#if (%ismember( %5, @air)) {#add reag_air -1}
#if (%ismember( %1, @fire)) {#add reag_fire -1}
#if (%ismember( %2, @fire)) {#add reag_fire -1}
#if (%ismember( %3, @fire)) {#add reag_fire -1}
#if (%ismember( %4, @fire)) {#add reag_fire -1}
#if (%ismember( %5, @fire)) {#add reag_fire -1}
#if (%ismember( %1, @gem)) {#add reag_gem -1}
#if (%ismember( %2, @gem)) {#add reag_gem -1}
#if (%ismember( %3, @gem)) {#add reag_gem -1}
#if (%ismember( %4, @gem)) {#add reag_gem -1}
#if (%ismember( %5, @gem)) {#add reag_gem -1}
#if (%ismember( %1, @eth)) {#add reag_eth -1}
#if (%ismember( %2, @eth)) {#add reag_eth -1}
#if (%ismember( %3, @eth)) {#add reag_eth -1}
#if (%ismember( %4, @eth)) {#add reag_eth -1}
#if (%ismember( %5, @eth)) {#add reag_eth -1}
} "" {case}
#REGEX {A (@reag), a (@reag), a (@reag), and a (@reag) flare brightly and vanish!$} {
#if (%ismember( %1, @earth)) {#add reag_earth -1}
#if (%ismember( %2, @earth)) {#add reag_earth -1}
#if (%ismember( %3, @earth)) {#add reag_earth -1}
#if (%ismember( %4, @earth)) {#add reag_earth -1}
#if (%ismember( %1, @water)) {#add reag_water -1}
#if (%ismember( %2, @water)) {#add reag_water -1}
#if (%ismember( %3, @water)) {#add reag_water -1}
#if (%ismember( %4, @water)) {#add reag_water -1}
#if (%ismember( %1, @air)) {#add reag_air -1}
#if (%ismember( %2, @air)) {#add reag_air -1}
#if (%ismember( %3, @air)) {#add reag_air -1}
#if (%ismember( %4, @air)) {#add reag_air -1}
#if (%ismember( %1, @fire)) {#add reag_fire -1}
#if (%ismember( %2, @fire)) {#add reag_fire -1}
#if (%ismember( %3, @fire)) {#add reag_fire -1}
#if (%ismember( %4, @fire)) {#add reag_fire -1}
#if (%ismember( %1, @gem)) {#add reag_gem -1}
#if (%ismember( %2, @gem)) {#add reag_gem -1}
#if (%ismember( %3, @gem)) {#add reag_gem -1}
#if (%ismember( %4, @gem)) {#add reag_gem -1}
#if (%ismember( %1, @eth)) {#add reag_eth -1}
#if (%ismember( %2, @eth)) {#add reag_eth -1}
#if (%ismember( %3, @eth)) {#add reag_eth -1}
#if (%ismember( %4, @eth)) {#add reag_eth -1}
} "" {case}
#REGEX {A (@reag), a (@reag), and a (@reag) flare brightly and vanish!$} {
#if (%ismember( %1, @earth)) {#add reag_earth -1}
#if (%ismember( %2, @earth)) {#add reag_earth -1}
#if (%ismember( %3, @earth)) {#add reag_earth -1}
#if (%ismember( %1, @water)) {#add reag_water -1}
#if (%ismember( %2, @water)) {#add reag_water -1}
#if (%ismember( %3, @water)) {#add reag_water -1}
#if (%ismember( %1, @air)) {#add reag_air -1}
#if (%ismember( %2, @air)) {#add reag_air -1}
#if (%ismember( %3, @air)) {#add reag_air -1}
#if (%ismember( %1, @fire)) {#add reag_fire -1}
#if (%ismember( %2, @fire)) {#add reag_fire -1}
#if (%ismember( %3, @fire)) {#add reag_fire -1}
#if (%ismember( %1, @gem)) {#add reag_gem -1}
#if (%ismember( %2, @gem)) {#add reag_gem -1}
#if (%ismember( %3, @gem)) {#add reag_gem -1}
#if (%ismember( %1, @eth)) {#add reag_eth -1}
#if (%ismember( %2, @eth)) {#add reag_eth -1}
#if (%ismember( %3, @eth)) {#add reag_eth -1}
} "" {case}
#REGEX {A (@reag), and a (@reag) flare brightly and vanish!$} {
#if (%ismember( %1, @earth)) {#add reag_earth -1}
#if (%ismember( %2, @earth)) {#add reag_earth -1}
#if (%ismember( %1, @water)) {#add reag_water -1}
#if (%ismember( %2, @water)) {#add reag_water -1}
#if (%ismember( %1, @air)) {#add reag_air -1}
#if (%ismember( %2, @air)) {#add reag_air -1}
#if (%ismember( %1, @fire)) {#add reag_fire -1}
#if (%ismember( %2, @fire)) {#add reag_fire -1}
#if (%ismember( %1, @gem)) {#add reag_gem -1}
#if (%ismember( %2, @gem)) {#add reag_gem -1}
#if (%ismember( %1, @eth)) {#add reag_eth -1}
#if (%ismember( %2, @eth)) {#add reag_eth -1}
} "" {case}
#BUTTON 25 {Air: @reag_air} {buy_air} {} {} {@reag_air} {} {} {Size} {125} {15} {} {} {} {32864} {} {Gauge||4|250|50|7} {} "" {Explore|Inset} {} {}
#BUTTON 26 {Earth: @reag_earth} {buy_earth} {} {} {@reag_earth} {} {} {Size} {125} {15} {} {} {} {32800} {} {Gauge||4|250|50|7} {} "" {Explore|Inset} {} {}
#BUTTON 27 {Fire: @reag_fire} {buy_fire} {} {} {@reag_fire} {} {} {Size} {125} {15} {} {} {} {32832} {} {Gauge||4|250|50|7} {} "" {Explore|Inset} {} {}
#BUTTON 28 {Water: @reag_water} {buy_water} {} {} {@reag_water} {} {} {Size} {125} {15} {} {} {} {32816} {} {Gauge||4|250|50|7} {} "" {Explore|Inset} {} {}
#BUTTON 29 {Gem: @reag_gem} {buy_gem} {} {} {@reag_gem} {} {} {Size} {125} {15} {} {} {} {32880} {} {Gauge||4|150|50|7} {} "" {Explore|Inset} {} {}
#BUTTON 30 {Ethereal: @reag_eth} {buy_ethereal} {} {} {@reag_eth} {} {} {Size} {125} {15} {} {} {} {32848} {} {Gauge||4|150|50|7} {} "" {Explore|Inset} {} {}
#CLASS 0
Note: Zmud is fruity at importing colors on guages so they most likely wont import with color, or they will be all messed up. Easy to fix, just right click the bar, goto "gauge" tab, select guage color as the color you want it ie cyan for water reagent, the low color as say dark red, and the gauge color as grey, save and do the rest same way.
Cmud:
<class name="reagent_counter" id="1368">
<class name="reagent_uses" id="1369">
<var name="eth" id="1370">sunstone</var>
<var name="water" id="1371">shimmering white fish scale</var>
<var name="air" id="1372">feather from a roc</var>
<var name="gem" id="1373">silver runestone</var>
<var name="earth" id="1374">browning mandrake leaf</var>
<var name="astral" id="1375">beautiful crystal prism</var>
<var name="fire" id="1376">pinch of sulfur</var>
<var name="reag" type="StringList" id="2271">
<value>shimmering white fish scale|browning mandrake leaf|feather from a roc|sunstone|pinch of sulfur|silver runestone</value>
<json>["shimmering white fish scale","browning mandrake leaf","feather from a roc","sunstone","pinch of sulfur","silver runestone"]</json>
</var>
<trigger priority="22720" case="true" regex="true" id="2272">
<pattern>A (@reag), and a (@reag) flare brightly and vanish!$</pattern>
<value>#if (%ismember( %1, @earth)) {#add reag_earth -1}
#if (%ismember( %2, @earth)) {#add reag_earth -1}
#if (%ismember( %1, @water)) {#add reag_water -1}
#if (%ismember( %2, @water)) {#add reag_water -1}
#if (%ismember( %1, @air)) {#add reag_air -1}
#if (%ismember( %2, @air)) {#add reag_air -1}
#if (%ismember( %1, @fire)) {#add reag_fire -1}
#if (%ismember( %2, @fire)) {#add reag_fire -1}
#if (%ismember( %1, @gem)) {#add reag_gem -1}
#if (%ismember( %2, @gem)) {#add reag_gem -1}
#if (%ismember( %1, @eth)) {#add reag_eth -1}
#if (%ismember( %2, @eth)) {#add reag_eth -1}
</value>
</trigger>
<button type="Gauge" autosize="false" width="125" height="15" color="lime" gaugelowcol="maroon" gaugebackcol="silver" priority="22742" id="2274">
<caption>Earth: @reag_earth</caption>
<value>buy_earth</value>
<expr>@reag_earth</expr>
<gaugemax>250</gaugemax>
<gaugelow>50</gaugelow>
</button>
<var name="reag_earth" id="2275">187</var>
<button type="Gauge" autosize="false" width="125" height="15" color="aqua" gaugelowcol="maroon" gaugebackcol="silver" priority="22762" id="2276">
<caption>Water: @reag_water</caption>
<value>buy_water</value>
<expr>@reag_water</expr>
<gaugemax>250</gaugemax>
<gaugelow>50</gaugelow>
</button>
<var name="reag_water" id="2277">116</var>
<var name="reag_air" id="2278">197</var>
<var name="reag_fire" id="2279">145</var>
<var name="reag_eth" id="2280">93</var>
<var name="reag_gem" id="2281">78</var>
<button type="Gauge" autosize="false" width="125" height="15" color="yellow" gaugelowcol="maroon" gaugebackcol="silver" priority="22822" id="2282">
<caption>Air: @reag_air</caption>
<value>buy_air</value>
<expr>@reag_air</expr>
<gaugemax>250</gaugemax>
<gaugelow>50</gaugelow>
</button>
<button type="Gauge" autosize="false" width="125" height="15" color="red" gaugelowcol="maroon" gaugebackcol="silver" priority="22832" id="2283">
<caption>Fire: @reag_fire</caption>
<value>buy_fire</value>
<expr>@reag_fire</expr>
<gaugemax>250</gaugemax>
<gaugelow>50</gaugelow>
</button>
<button type="Gauge" autosize="false" width="125" height="15" color="fuchsia" gaugelowcol="maroon" gaugebackcol="silver" priority="22842" id="2284">
<caption>Ethereal: @reag_eth</caption>
<value>buy_eth</value>
<expr>@reag_eth</expr>
<gaugemax>150</gaugemax>
<gaugelow>35</gaugelow>
</button>
<button type="Gauge" autosize="false" width="125" height="15" color="white" gaugelowcol="maroon" gaugebackcol="silver" priority="22852" id="2285">
<caption>Gem: @reag_gem</caption>
<value>buy_gem</value>
<expr>@reag_gem</expr>
<gaugemax>150</gaugemax>
<gaugelow>35</gaugelow>
</button>
<trigger priority="22860" case="true" regex="true" id="2286">
<pattern>A (@reag) flares brightly and vanishes!$</pattern>
<value>#if (%ismember( %1, @earth)) {#add reag_earth -1}
#if (%ismember( %1, @water)) {#add reag_water -1}
#if (%ismember( %1, @air)) {#add reag_air -1}
#if (%ismember( %1, @fire)) {#add reag_fire -1}
#if (%ismember( %1, @gem)) {#add reag_gem -1}
#if (%ismember( %1, @eth)) {#add reag_eth -1}
</value>
</trigger>
<trigger priority="22870" case="true" regex="true" id="2287">
<pattern>A (@reag), a (@reag), and a (@reag) flare brightly and vanish!$</pattern>
<value>#if (%ismember( %1, @earth)) {#add reag_earth -1}
#if (%ismember( %2, @earth)) {#add reag_earth -1}
#if (%ismember( %3, @earth)) {#add reag_earth -1}
#if (%ismember( %1, @water)) {#add reag_water -1}
#if (%ismember( %2, @water)) {#add reag_water -1}
#if (%ismember( %3, @water)) {#add reag_water -1}
#if (%ismember( %1, @air)) {#add reag_air -1}
#if (%ismember( %2, @air)) {#add reag_air -1}
#if (%ismember( %3, @air)) {#add reag_air -1}
#if (%ismember( %1, @fire)) {#add reag_fire -1}
#if (%ismember( %2, @fire)) {#add reag_fire -1}
#if (%ismember( %3, @fire)) {#add reag_fire -1}
#if (%ismember( %1, @gem)) {#add reag_gem -1}
#if (%ismember( %2, @gem)) {#add reag_gem -1}
#if (%ismember( %3, @gem)) {#add reag_gem -1}
#if (%ismember( %1, @eth)) {#add reag_eth -1}
#if (%ismember( %2, @eth)) {#add reag_eth -1}
#if (%ismember( %3, @eth)) {#add reag_eth -1}</value>
</trigger>
<trigger priority="22880" case="true" regex="true" id="2288">
<pattern>A (@reag), a (@reag), a (@reag), and a (@reag) flare brightly and vanish!$</pattern>
<value>#if (%ismember( %1, @earth)) {#add reag_earth -1}
#if (%ismember( %2, @earth)) {#add reag_earth -1}
#if (%ismember( %3, @earth)) {#add reag_earth -1}
#if (%ismember( %4, @earth)) {#add reag_earth -1}
#if (%ismember( %1, @water)) {#add reag_water -1}
#if (%ismember( %2, @water)) {#add reag_water -1}
#if (%ismember( %3, @water)) {#add reag_water -1}
#if (%ismember( %4, @water)) {#add reag_water -1}
#if (%ismember( %1, @air)) {#add reag_air -1}
#if (%ismember( %2, @air)) {#add reag_air -1}
#if (%ismember( %3, @air)) {#add reag_air -1}
#if (%ismember( %4, @air)) {#add reag_air -1}
#if (%ismember( %1, @fire)) {#add reag_fire -1}
#if (%ismember( %2, @fire)) {#add reag_fire -1}
#if (%ismember( %3, @fire)) {#add reag_fire -1}
#if (%ismember( %4, @fire)) {#add reag_fire -1}
#if (%ismember( %1, @gem)) {#add reag_gem -1}
#if (%ismember( %2, @gem)) {#add reag_gem -1}
#if (%ismember( %3, @gem)) {#add reag_gem -1}
#if (%ismember( %4, @gem)) {#add reag_gem -1}
#if (%ismember( %1, @eth)) {#add reag_eth -1}
#if (%ismember( %2, @eth)) {#add reag_eth -1}
#if (%ismember( %3, @eth)) {#add reag_eth -1}
#if (%ismember( %4, @eth)) {#add reag_eth -1}</value>
</trigger>
<trigger priority="22890" case="true" regex="true" id="2289">
<pattern>A (@reag), a (@reag), a (@reag), a (@reag), and a (@reag) flare brightly and vanish!$</pattern>
<value>#if (%ismember( %1, @earth)) {#add reag_earth -1}
#if (%ismember( %2, @earth)) {#add reag_earth -1}
#if (%ismember( %3, @earth)) {#add reag_earth -1}
#if (%ismember( %4, @earth)) {#add reag_earth -1}
#if (%ismember( %5, @earth)) {#add reag_earth -1}
#if (%ismember( %1, @water)) {#add reag_water -1}
#if (%ismember( %2, @water)) {#add reag_water -1}
#if (%ismember( %3, @water)) {#add reag_water -1}
#if (%ismember( %4, @water)) {#add reag_water -1}
#if (%ismember( %5, @water)) {#add reag_water -1}
#if (%ismember( %1, @air)) {#add reag_air -1}
#if (%ismember( %2, @air)) {#add reag_air -1}
#if (%ismember( %3, @air)) {#add reag_air -1}
#if (%ismember( %4, @air)) {#add reag_air -1}
#if (%ismember( %5, @air)) {#add reag_air -1}
#if (%ismember( %1, @fire)) {#add reag_fire -1}
#if (%ismember( %2, @fire)) {#add reag_fire -1}
#if (%ismember( %3, @fire)) {#add reag_fire -1}
#if (%ismember( %4, @fire)) {#add reag_fire -1}
#if (%ismember( %5, @fire)) {#add reag_fire -1}
#if (%ismember( %1, @gem)) {#add reag_gem -1}
#if (%ismember( %2, @gem)) {#add reag_gem -1}
#if (%ismember( %3, @gem)) {#add reag_gem -1}
#if (%ismember( %4, @gem)) {#add reag_gem -1}
#if (%ismember( %5, @gem)) {#add reag_gem -1}
#if (%ismember( %1, @eth)) {#add reag_eth -1}
#if (%ismember( %2, @eth)) {#add reag_eth -1}
#if (%ismember( %3, @eth)) {#add reag_eth -1}
#if (%ismember( %4, @eth)) {#add reag_eth -1}
#if (%ismember( %5, @eth)) {#add reag_eth -1}</value>
</trigger>
<trigger priority="22900" case="true" regex="true" id="2290">
<pattern>A (@reag), a (@reag), a (@reag), a (@reag), a (@reag), and a (@reag) flare brightly and vanish!$</pattern>
<value>#if (%ismember( %1, @earth)) {#add reag_earth -1}
#if (%ismember( %2, @earth)) {#add reag_earth -1}
#if (%ismember( %3, @earth)) {#add reag_earth -1}
#if (%ismember( %4, @earth)) {#add reag_earth -1}
#if (%ismember( %5, @earth)) {#add reag_earth -1}
#if (%ismember( %6, @earth)) {#add reag_earth -1}
#if (%ismember( %1, @water)) {#add reag_water -1}
#if (%ismember( %2, @water)) {#add reag_water -1}
#if (%ismember( %3, @water)) {#add reag_water -1}
#if (%ismember( %4, @water)) {#add reag_water -1}
#if (%ismember( %5, @water)) {#add reag_water -1}
#if (%ismember( %6, @earth)) {#add reag_earth -1}
#if (%ismember( %1, @air)) {#add reag_air -1}
#if (%ismember( %2, @air)) {#add reag_air -1}
#if (%ismember( %3, @air)) {#add reag_air -1}
#if (%ismember( %4, @air)) {#add reag_air -1}
#if (%ismember( %5, @air)) {#add reag_air -1}
#if (%ismember( %6, @air)) {#add reag_air -1}
#if (%ismember( %1, @fire)) {#add reag_fire -1}
#if (%ismember( %2, @fire)) {#add reag_fire -1}
#if (%ismember( %3, @fire)) {#add reag_fire -1}
#if (%ismember( %4, @fire)) {#add reag_fire -1}
#if (%ismember( %5, @fire)) {#add reag_fire -1}
#if (%ismember( %6, @fire)) {#add reag_fire -1}
#if (%ismember( %1, @gem)) {#add reag_gem -1}
#if (%ismember( %2, @gem)) {#add reag_gem -1}
#if (%ismember( %3, @gem)) {#add reag_gem -1}
#if (%ismember( %4, @gem)) {#add reag_gem -1}
#if (%ismember( %5, @gem)) {#add reag_gem -1}
#if (%ismember( %6, @gem)) {#add reag_gem -1}
#if (%ismember( %1, @eth)) {#add reag_eth -1}
#if (%ismember( %2, @eth)) {#add reag_eth -1}
#if (%ismember( %3, @eth)) {#add reag_eth -1}
#if (%ismember( %4, @eth)) {#add reag_eth -1}
#if (%ismember( %5, @eth)) {#add reag_eth -1}
#if (%ismember( %6, @eth)) {#add reag_eth -1}</value>
</trigger>
<trigger priority="22910" case="true" regex="true" id="2291">
<pattern>A (@reag), a (@reag), a (@reag), a (@reag), a (@reag), a (@reag), and a (@reag) flare brightly and vanish!$</pattern>
<value>#if (%ismember( %1, @earth)) {#add reag_earth -1}
#if (%ismember( %2, @earth)) {#add reag_earth -1}
#if (%ismember( %3, @earth)) {#add reag_earth -1}
#if (%ismember( %4, @earth)) {#add reag_earth -1}
#if (%ismember( %5, @earth)) {#add reag_earth -1}
#if (%ismember( %6, @earth)) {#add reag_earth -1}
#if (%ismember( %7, @earth)) {#add reag_earth -1}
#if (%ismember( %1, @water)) {#add reag_water -1}
#if (%ismember( %2, @water)) {#add reag_water -1}
#if (%ismember( %3, @water)) {#add reag_water -1}
#if (%ismember( %4, @water)) {#add reag_water -1}
#if (%ismember( %5, @water)) {#add reag_water -1}
#if (%ismember( %6, @earth)) {#add reag_earth -1}
#if (%ismember( %7, @earth)) {#add reag_earth -1}
#if (%ismember( %1, @air)) {#add reag_air -1}
#if (%ismember( %2, @air)) {#add reag_air -1}
#if (%ismember( %3, @air)) {#add reag_air -1}
#if (%ismember( %4, @air)) {#add reag_air -1}
#if (%ismember( %5, @air)) {#add reag_air -1}
#if (%ismember( %6, @air)) {#add reag_air -1}
#if (%ismember( %7, @air)) {#add reag_air -1}
#if (%ismember( %1, @fire)) {#add reag_fire -1}
#if (%ismember( %2, @fire)) {#add reag_fire -1}
#if (%ismember( %3, @fire)) {#add reag_fire -1}
#if (%ismember( %4, @fire)) {#add reag_fire -1}
#if (%ismember( %5, @fire)) {#add reag_fire -1}
#if (%ismember( %6, @fire)) {#add reag_fire -1}
#if (%ismember( %7, @fire)) {#add reag_fire -1}
#if (%ismember( %1, @gem)) {#add reag_gem -1}
#if (%ismember( %2, @gem)) {#add reag_gem -1}
#if (%ismember( %3, @gem)) {#add reag_gem -1}
#if (%ismember( %4, @gem)) {#add reag_gem -1}
#if (%ismember( %5, @gem)) {#add reag_gem -1}
#if (%ismember( %6, @gem)) {#add reag_gem -1}
#if (%ismember( %7, @gem)) {#add reag_gem -1}
#if (%ismember( %1, @eth)) {#add reag_eth -1}
#if (%ismember( %2, @eth)) {#add reag_eth -1}
#if (%ismember( %3, @eth)) {#add reag_eth -1}
#if (%ismember( %4, @eth)) {#add reag_eth -1}
#if (%ismember( %5, @eth)) {#add reag_eth -1}
#if (%ismember( %6, @eth)) {#add reag_eth -1}
#if (%ismember( %7, @eth)) {#add reag_eth -1}</value>
</trigger>
<trigger priority="22920" case="true" regex="true" id="2292">
<pattern>A (@reag), a (@reag), a (@reag), a (@reag), a (@reag), a (@reag), a (@reag), and a (@reag) flare brightly and vanish!$</pattern>
<value>#if (%ismember( %1, @earth)) {#add reag_earth -1}
#if (%ismember( %2, @earth)) {#add reag_earth -1}
#if (%ismember( %3, @earth)) {#add reag_earth -1}
#if (%ismember( %4, @earth)) {#add reag_earth -1}
#if (%ismember( %5, @earth)) {#add reag_earth -1}
#if (%ismember( %6, @earth)) {#add reag_earth -1}
#if (%ismember( %7, @earth)) {#add reag_earth -1}
#if (%ismember( %8, @earth)) {#add reag_earth -1}
#if (%ismember( %1, @water)) {#add reag_water -1}
#if (%ismember( %2, @water)) {#add reag_water -1}
#if (%ismember( %3, @water)) {#add reag_water -1}
#if (%ismember( %4, @water)) {#add reag_water -1}
#if (%ismember( %5, @water)) {#add reag_water -1}
#if (%ismember( %6, @earth)) {#add reag_earth -1}
#if (%ismember( %7, @earth)) {#add reag_earth -1}
#if (%ismember( %8, @earth)) {#add reag_earth -1}
#if (%ismember( %1, @air)) {#add reag_air -1}
#if (%ismember( %2, @air)) {#add reag_air -1}
#if (%ismember( %3, @air)) {#add reag_air -1}
#if (%ismember( %4, @air)) {#add reag_air -1}
#if (%ismember( %5, @air)) {#add reag_air -1}
#if (%ismember( %6, @air)) {#add reag_air -1}
#if (%ismember( %7, @air)) {#add reag_air -1}
#if (%ismember( %8, @air)) {#add reag_air -1}
#if (%ismember( %1, @fire)) {#add reag_fire -1}
#if (%ismember( %2, @fire)) {#add reag_fire -1}
#if (%ismember( %3, @fire)) {#add reag_fire -1}
#if (%ismember( %4, @fire)) {#add reag_fire -1}
#if (%ismember( %5, @fire)) {#add reag_fire -1}
#if (%ismember( %6, @fire)) {#add reag_fire -1}
#if (%ismember( %7, @fire)) {#add reag_fire -1}
#if (%ismember( %8, @fire)) {#add reag_fire -1}
#if (%ismember( %1, @gem)) {#add reag_gem -1}
#if (%ismember( %2, @gem)) {#add reag_gem -1}
#if (%ismember( %3, @gem)) {#add reag_gem -1}
#if (%ismember( %4, @gem)) {#add reag_gem -1}
#if (%ismember( %5, @gem)) {#add reag_gem -1}
#if (%ismember( %6, @gem)) {#add reag_gem -1}
#if (%ismember( %7, @gem)) {#add reag_gem -1}
#if (%ismember( %8, @gem)) {#add reag_gem -1}
#if (%ismember( %1, @eth)) {#add reag_eth -1}
#if (%ismember( %2, @eth)) {#add reag_eth -1}
#if (%ismember( %3, @eth)) {#add reag_eth -1}
#if (%ismember( %4, @eth)) {#add reag_eth -1}
#if (%ismember( %5, @eth)) {#add reag_eth -1}
#if (%ismember( %6, @eth)) {#add reag_eth -1}
#if (%ismember( %7, @eth)) {#add reag_eth -1}
#if (%ismember( %8, @eth)) {#add reag_eth -1}</value>
</trigger>
</class>
<class name="reagent_counter_resets" enabled="false" id="1387">
<trigger priority="51770" regex="true" id="1399">
<pattern>\((.+)\) a silver runestone</pattern>
<value>reag_gem1 = %1
reag_gem1 = %trimleft(@reag_gem1)
reag_gem = @reag_gem + @reag_gem1</value>
</trigger>
<trigger priority="12260" regex="true" id="1400">
<pattern>\((.+)\) a sunstone</pattern>
<value>reag_eth1 = %1
reag_eth1 = %trimleft(@reag_eth1)
reag_eth = @reag_eth + @reag_eth1</value>
</trigger>
<trigger priority="22930" regex="true" id="2293">
<pattern>\((.+)\) a browning mandrake leaf</pattern>
<value>reag_earth1 = %1
reag_earth1 = %trimleft(@reag_earth1)
reag_earth = @reag_earth + @reag_earth1</value>
</trigger>
<trigger priority="22940" regex="true" id="2294">
<pattern>\((.+)\) a shimmering white fish scale</pattern>
<value>reag_water1 = %1
reag_water1 = %trimleft(@reag_water1)
reag_water = @reag_water + @reag_water1</value>
</trigger>
<trigger priority="22950" regex="true" id="2295">
<pattern>\((.+)\) a feather from a roc</pattern>
<value>reag_air1 = %1
reag_air1 = %trimleft(@reag_air1)
reag_air = @reag_air + @reag_air1</value>
</trigger>
<trigger priority="22960" regex="true" id="2296">
<pattern>\((.+)\) a pinch of sulfur</pattern>
<value>reag_fire1 = %1
reag_fire1 = %trimleft(@reag_fire1)
reag_fire = @reag_fire + @reag_fire1</value>
</trigger>
</class>
<class name="reagent_counters" id="1402">
<trigger priority="10200" regex="true" id="1403">
<pattern>You put (\d+) of a browning mandrake leaf in a black silk bag\.</pattern>
<value>#add reag_earth %1</value>
</trigger>
<trigger priority="10210" regex="true" id="1404">
<pattern>You put (\d+) of a feather from a roc in a yellow silk bag\.</pattern>
<value>#add reag_air %1</value>
</trigger>
<trigger priority="10220" regex="true" id="1405">
<pattern>You put (\d+) of a pinch of sulfur in a red silk bag\.</pattern>
<value>#add reag_fire %1</value>
</trigger>
<trigger priority="10230" regex="true" id="1406">
<pattern>You put (\d+) of a shimmering white fish scale in a blue silk bag\.</pattern>
<value>#add reag_water %1</value>
</trigger>
<trigger priority="10240" regex="true" id="1407">
<pattern>You put (\d+) of a silver runestone in (Vandemaar's Trunk|a dream cloud)\.</pattern>
<value>#add reag_gem %1</value>
</trigger>
<trigger priority="10250" regex="true" id="1408">
<pattern>You put (\d+) of a sunstone in (Vandemaar's Trunk|a dream cloud)\.</pattern>
<value>#add reag_eth %1</value>
</trigger>
<trigger priority="10260" regex="true" id="1409">
<pattern>You put a browning mandrake leaf in a black silk bag\.</pattern>
<value>#add reag_earth 1</value>
</trigger>
<trigger priority="10270" regex="true" id="1410">
<pattern>You put a feather from a roc in a yellow silk bag\.</pattern>
<value>#add reag_air 1</value>
</trigger>
<trigger priority="10280" regex="true" id="1411">
<pattern>You put a pinch of sulfur in a red silk bag\.</pattern>
<value>#add reag_fire 1</value>
</trigger>
<trigger priority="10290" regex="true" id="1412">
<pattern>You put a shimmering white fish scale in a blue silk bag\.</pattern>
<value>#add reag_water 1</value>
</trigger>
<trigger priority="10300" regex="true" id="1413">
<pattern>You put a silver runestone in (Vandemaar's Trunk|a dream cloud)\.</pattern>
<value>#add reag_gem 1</value>
</trigger>
<trigger priority="10310" regex="true" id="1414">
<pattern>You put a sunstone in (Vandemaar's Trunk|a dream cloud)\.</pattern>
<value>#add reag_eth 1</value>
</trigger>
</class>
<alias name="reagent_reset" autoappend="true" id="1419">
<value>reag_eth = 0
reag_air = 0
reag_earth = 0
reag_fire = 0
reag_water = 0
reag_gem = 0
#t+ reagent_counter_resets
l in dream
l in trunk
l in silk
l in 2.silk
l in 3.silk
l in 4.silk
#wait 8000
#t- reagent_counter_resets</value>
</alias>
<alias name="buy_air" id="1427">
<value>#if (@reag_air >= 230) {#t+ reagent_counters} {
#t- reagent_counters
shop buy 20 'A feather from a roc'
reag_air = @reag_air + 20
put all.reagent-air 'a yellow silk bag'
#wait 550
buy_air}</value>
</alias>
<alias name="buy_earth" id="1428">
<value>#if (@reag_earth >= 230) {#t+ reagent_counters} {
#t- reagent_counters
shop buy 20 'a browning mandrake leaf'
reag_earth = @reag_earth + 20
put all.reagent-earth 'a black silk bag'
#wait 550
buy_earth}</value>
</alias>
<alias name="buy_eth" id="1429">
<value>#if (@reag_eth >= 130) {#t+ reagent_counters} {
#t- reagent_counters
shop buy 20 'a sunstone'
reag_eth = @reag_eth + 20
put all.reagent-ethereal trunk
#wait 550
buy_eth}</value>
</alias>
<alias name="buy_fire" id="1430">
<value>#if (@reag_fire >= 230) {#t+ reagent_counters} {
#t- reagent_counters
shop buy 20 'a pinch of sulfur'
reag_fire = @reag_fire + 20
put all.reagent-fire 'a red silk bag'
#wait 550
buy_fire}</value>
</alias>
<alias name="buy_gem" id="1431">
<value>#if (@reag_gem > 129) {#t+ reagent_counters} {
#t- reagent_counters
shop buy 20 'a silver runestone'
reag_gem = @reag_gem + 20
put all.gem dream
#wait 550
buy_gem}</value>
</alias>
<alias name="buy_water" id="1432">
<value>#if (@reag_water > 229) {#t+ reagent_counters} {
#t- reagent_counters
shop buy 20 'a shimmering white fish scale'
reag_water = @reag_water + 20
put all.reagent-water 'a blue silk bag'
#wait 550
buy_water}</value>
</alias>
</class>
Usage:
reagent_reset - Reset reagents in bags.
Script is currently set up for the 6 generic reagents, mandrake leafs, feathers, sunstones, runstones, sulfurs and scales. You can however add more types by adding the reagent name to the variable called reag the reagent needs to have the "a" or "an" etc removed to match the ones already stored in the variable. Example "a magic pebble" would be added as "magic pebble". You then need to add the same reagent to the variable of its reagent type, to add a second gem reagent you would locate the variable gem in the reagent_uses folder and click the drop down menu in the variable so that it is set as string list then add the new reagent to the list.
It is set up for 4 silks, 1 dream cloud and 1.trunk, this can be changed by editing the reagent_reset alias to the containers you use. I would not recommend using this script without silk bags as you will need to edit a few things.
Casting spells will cause the bars to go down as you use reagents and they will switch to dark red bars when you get low on that type of reagent. Visiting a shop that sells standard reagents and clicking on the bar you are low on, will tell it to refill that reagent type.
Crappy example pics at:
http://bayimg.com/oaaipAADG - cmud
http://bayimg.com/PAaibaaDG - zmud |
Lyneirari
Posts: 7
|
2012-01-19 06:36 pm
This is updated version of the reagent tracking. added in the yellow, blue, black, red silk bags, and also woven gold, and silver bags.
#CLASS {reagent_counter}
#ALIAS reagent_reset {
reag_eth = 0
reag_air = 0
reag_earth = 0
reag_fire = 0
reag_water = 0
reag_gem = 0
#t+ reagent_counter_resets
l in 'a woven gold bag'
l in 'a woven silver bag'
l in 'a blue silk bag'
l in 'a yellow silk bag'
l in 'a black silk bag'
l in 'a red silk bag'
#wait 8000
#t- reagent_counter_resets
}
#ALIAS buy_air {
#if (@reag_air >= 250) {#t+ reagent_counters} {
#t- reagent_counters
shop buy 20 'a feather from a roc'
reag_air = @reag_air + 20
put all.reagent-air 'a yellow silk bag'
#wait 800
buy_air
}
}
#ALIAS buy_earth {
#if (@reag_earth >= 250) {#t+ reagent_counters} {
#t- reagent_counters
shop buy 20 'a browning mandrake leaf'
reag_earth = @reag_earth + 20
put all.reagent-earth 'a black silk bag'
#wait 800
buy_earth
}
}
#ALIAS buy_eth {
#if (@reag_eth >= 197) {#t+ reagent_counters} {
#t- reagent_counters
shop buy 20 'a sunstone'
reag_eth = @reag_eth + 20
put all.reagent-ethereal 'a woven gold bag'
#wait 800
buy_eth
}
}
#ALIAS buy_gem {
#if (@reag_gem >= 197) {#t+ reagent_counters} {
#t- reagent_counters
shop buy 20 'a silver runestone'
reag_gem = @reag_gem + 20
put all.gem 'a woven silver bag'
#wait 800
buy_gem
}
}
#ALIAS buy_fire {
#if (@reag_fire >= 250) {#t+ reagent_counters} {
#t- reagent_counters
shop buy 20 'a pinch of sulfur'
reag_fire = @reag_fire + 20
put all.reagent-fire 'a red silk bag'
#wait 800
buy_fire
}
}
#ALIAS buy_water {
#if (@reag_water >= 250) {#t+ reagent_counters} {
#t- reagent_counters
shop buy 20 'a shimmering white fish scale'
reag_water = @reag_water + 20
put all.reagent-water 'a blue silk bag'
#wait 800
buy_water
}
}
#CLASS 0
#CLASS {reagent_counter|reagent_counter_resets}
#REGEX {\((.+)\) a browning mandrake leaf} {
reag_earth1 = %1
reag_earth1 = %trimleft( @reag_earth1)
reag_earth = @reag_earth1
}
#REGEX {\((.+)\) a feather from a roc} {
reag_air1 = %1
reag_air1 = %trimleft( @reag_air1)
reag_air = @reag_air1
}
#REGEX {\((.+)\) a pinch of sulfur} {
reag_fire1 = %1
reag_fire1 = %trimleft( @reag_fire1)
reag_fire = @reag_fire1
}
#REGEX {\((.+)\) a shimmering white fish scale} {
reag_water1 = %1
reag_water1 = %trimleft( @reag_water1)
reag_water = @reag_water1
}
#REGEX {\((.+)\) a silver runestone} {
reag_gem1 = %1
reag_gem1 = %trimleft( @reag_gem1)
reag_gem = @reag_gem1
}
#REGEX {\((.+)\) a sunstone} {
reag_eth1 = %1
reag_eth1 = %trimleft( @reag_eth1)
reag_eth = @reag_eth1
}
#CLASS 0
#CLASS {reagent_counter|reagent_uses}
#VAR air {feather from a roc}
#VAR earth {browning mandrake leaf}
#VAR eth {sunstone}
#VAR gem {silver runestone}
#VAR fire {pinch of sulfur}
#VAR water {shimmering white fish scale}
#VAR reag {shimmering white fish scale|browning mandrake leaf|feather from a roc|sunstone|pinch of sulfur|silver runestone}
#REGEX {A (@reag) flares brightly and vanishes!$} {
#if (%ismember( %1, @earth)) {#add reag_earth -1}
#if (%ismember( %1, @water)) {#add reag_water -1}
#if (%ismember( %1, @air)) {#add reag_air -1}
#if (%ismember( %1, @fire)) {#add reag_fire -1}
#if (%ismember( %1, @gem)) {#add reag_gem -1}
#if (%ismember( %1, @eth)) {#add reag_eth -1}
} "" {case}
#REGEX {A (@reag), a (@reag), a (@reag), a (@reag), a (@reag), a (@reag), and a (@reag) flare brightly and vanish!$} {
#if (%ismember( %1, @earth)) {#add reag_earth -1}
#if (%ismember( %2, @earth)) {#add reag_earth -1}
#if (%ismember( %3, @earth)) {#add reag_earth -1}
#if (%ismember( %4, @earth)) {#add reag_earth -1}
#if (%ismember( %5, @earth)) {#add reag_earth -1}
#if (%ismember( %6, @earth)) {#add reag_earth -1}
#if (%ismember( %7, @earth)) {#add reag_earth -1}
#if (%ismember( %1, @water)) {#add reag_water -1}
#if (%ismember( %2, @water)) {#add reag_water -1}
#if (%ismember( %3, @water)) {#add reag_water -1}
#if (%ismember( %4, @water)) {#add reag_water -1}
#if (%ismember( %5, @water)) {#add reag_water -1}
#if (%ismember( %6, @earth)) {#add reag_earth -1}
#if (%ismember( %7, @earth)) {#add reag_earth -1}
#if (%ismember( %1, @air)) {#add reag_air -1}
#if (%ismember( %2, @air)) {#add reag_air -1}
#if (%ismember( %3, @air)) {#add reag_air -1}
#if (%ismember( %4, @air)) {#add reag_air -1}
#if (%ismember( %5, @air)) {#add reag_air -1}
#if (%ismember( %6, @air)) {#add reag_air -1}
#if (%ismember( %7, @air)) {#add reag_air -1}
#if (%ismember( %1, @fire)) {#add reag_fire -1}
#if (%ismember( %2, @fire)) {#add reag_fire -1}
#if (%ismember( %3, @fire)) {#add reag_fire -1}
#if (%ismember( %4, @fire)) {#add reag_fire -1}
#if (%ismember( %5, @fire)) {#add reag_fire -1}
#if (%ismember( %6, @fire)) {#add reag_fire -1}
#if (%ismember( %7, @fire)) {#add reag_fire -1}
#if (%ismember( %1, @gem)) {#add reag_gem -1}
#if (%ismember( %2, @gem)) {#add reag_gem -1}
#if (%ismember( %3, @gem)) {#add reag_gem -1}
#if (%ismember( %4, @gem)) {#add reag_gem -1}
#if (%ismember( %5, @gem)) {#add reag_gem -1}
#if (%ismember( %6, @gem)) {#add reag_gem -1}
#if (%ismember( %7, @gem)) {#add reag_gem -1}
#if (%ismember( %1, @eth)) {#add reag_eth -1}
#if (%ismember( %2, @eth)) {#add reag_eth -1}
#if (%ismember( %3, @eth)) {#add reag_eth -1}
#if (%ismember( %4, @eth)) {#add reag_eth -1}
#if (%ismember( %5, @eth)) {#add reag_eth -1}
#if (%ismember( %6, @eth)) {#add reag_eth -1}
#if (%ismember( %7, @eth)) {#add reag_eth -1}
} "" {case}
#REGEX {A (@reag), a (@reag), a (@reag), a (@reag), a (@reag), a (@reag), a (@reag), and a (@reag) flare brightly and vanish!$} {
#if (%ismember( %1, @earth)) {#add reag_earth -1}
#if (%ismember( %2, @earth)) {#add reag_earth -1}
#if (%ismember( %3, @earth)) {#add reag_earth -1}
#if (%ismember( %4, @earth)) {#add reag_earth -1}
#if (%ismember( %5, @earth)) {#add reag_earth -1}
#if (%ismember( %6, @earth)) {#add reag_earth -1}
#if (%ismember( %7, @earth)) {#add reag_earth -1}
#if (%ismember( %8, @earth)) {#add reag_earth -1}
#if (%ismember( %1, @water)) {#add reag_water -1}
#if (%ismember( %2, @water)) {#add reag_water -1}
#if (%ismember( %3, @water)) {#add reag_water -1}
#if (%ismember( %4, @water)) {#add reag_water -1}
#if (%ismember( %5, @water)) {#add reag_water -1}
#if (%ismember( %6, @earth)) {#add reag_earth -1}
#if (%ismember( %7, @earth)) {#add reag_earth -1}
#if (%ismember( %8, @earth)) {#add reag_earth -1}
#if (%ismember( %1, @air)) {#add reag_air -1}
#if (%ismember( %2, @air)) {#add reag_air -1}
#if (%ismember( %3, @air)) {#add reag_air -1}
#if (%ismember( %4, @air)) {#add reag_air -1}
#if (%ismember( %5, @air)) {#add reag_air -1}
#if (%ismember( %6, @air)) {#add reag_air -1}
#if (%ismember( %7, @air)) {#add reag_air -1}
#if (%ismember( %8, @air)) {#add reag_air -1}
#if (%ismember( %1, @fire)) {#add reag_fire -1}
#if (%ismember( %2, @fire)) {#add reag_fire -1}
#if (%ismember( %3, @fire)) {#add reag_fire -1}
#if (%ismember( %4, @fire)) {#add reag_fire -1}
#if (%ismember( %5, @fire)) {#add reag_fire -1}
#if (%ismember( %6, @fire)) {#add reag_fire -1}
#if (%ismember( %7, @fire)) {#add reag_fire -1}
#if (%ismember( %8, @fire)) {#add reag_fire -1}
#if (%ismember( %1, @gem)) {#add reag_gem -1}
#if (%ismember( %2, @gem)) {#add reag_gem -1}
#if (%ismember( %3, @gem)) {#add reag_gem -1}
#if (%ismember( %4, @gem)) {#add reag_gem -1}
#if (%ismember( %5, @gem)) {#add reag_gem -1}
#if (%ismember( %6, @gem)) {#add reag_gem -1}
#if (%ismember( %7, @gem)) {#add reag_gem -1}
#if (%ismember( %8, @gem)) {#add reag_gem -1}
#if (%ismember( %1, @eth)) {#add reag_eth -1}
#if (%ismember( %2, @eth)) {#add reag_eth -1}
#if (%ismember( %3, @eth)) {#add reag_eth -1}
#if (%ismember( %4, @eth)) {#add reag_eth -1}
#if (%ismember( %5, @eth)) {#add reag_eth -1}
#if (%ismember( %6, @eth)) {#add reag_eth -1}
#if (%ismember( %7, @eth)) {#add reag_eth -1}
#if (%ismember( %8, @eth)) {#add reag_eth -1}
} "" {case}
#REGEX {A (@reag), a (@reag), a (@reag), a (@reag), a (@reag), and a (@reag) flare brightly and vanish!$} {
#if (%ismember( %1, @earth)) {#add reag_earth -1}
#if (%ismember( %2, @earth)) {#add reag_earth -1}
#if (%ismember( %3, @earth)) {#add reag_earth -1}
#if (%ismember( %4, @earth)) {#add reag_earth -1}
#if (%ismember( %5, @earth)) {#add reag_earth -1}
#if (%ismember( %6, @earth)) {#add reag_earth -1}
#if (%ismember( %1, @water)) {#add reag_water -1}
#if (%ismember( %2, @water)) {#add reag_water -1}
#if (%ismember( %3, @water)) {#add reag_water -1}
#if (%ismember( %4, @water)) {#add reag_water -1}
#if (%ismember( %5, @water)) {#add reag_water -1}
#if (%ismember( %6, @earth)) {#add reag_earth -1}
#if (%ismember( %1, @air)) {#add reag_air -1}
#if (%ismember( %2, @air)) {#add reag_air -1}
#if (%ismember( %3, @air)) {#add reag_air -1}
#if (%ismember( %4, @air)) {#add reag_air -1}
#if (%ismember( %5, @air)) {#add reag_air -1}
#if (%ismember( %6, @air)) {#add reag_air -1}
#if (%ismember( %1, @fire)) {#add reag_fire -1}
#if (%ismember( %2, @fire)) {#add reag_fire -1}
#if (%ismember( %3, @fire)) {#add reag_fire -1}
#if (%ismember( %4, @fire)) {#add reag_fire -1}
#if (%ismember( %5, @fire)) {#add reag_fire -1}
#if (%ismember( %6, @fire)) {#add reag_fire -1}
#if (%ismember( %1, @gem)) {#add reag_gem -1}
#if (%ismember( %2, @gem)) {#add reag_gem -1}
#if (%ismember( %3, @gem)) {#add reag_gem -1}
#if (%ismember( %4, @gem)) {#add reag_gem -1}
#if (%ismember( %5, @gem)) {#add reag_gem -1}
#if (%ismember( %6, @gem)) {#add reag_gem -1}
#if (%ismember( %1, @eth)) {#add reag_eth -1}
#if (%ismember( %2, @eth)) {#add reag_eth -1}
#if (%ismember( %3, @eth)) {#add reag_eth -1}
#if (%ismember( %4, @eth)) {#add reag_eth -1}
#if (%ismember( %5, @eth)) {#add reag_eth -1}
#if (%ismember( %6, @eth)) {#add reag_eth -1}
} "" {case}
#REGEX {A (@reag), a (@reag), a (@reag), a (@reag), and a (@reag) flare brightly and vanish!$} {
#if (%ismember( %1, @earth)) {#add reag_earth -1}
#if (%ismember( %2, @earth)) {#add reag_earth -1}
#if (%ismember( %3, @earth)) {#add reag_earth -1}
#if (%ismember( %4, @earth)) {#add reag_earth -1}
#if (%ismember( %5, @earth)) {#add reag_earth -1}
#if (%ismember( %1, @water)) {#add reag_water -1}
#if (%ismember( %2, @water)) {#add reag_water -1}
#if (%ismember( %3, @water)) {#add reag_water -1}
#if (%ismember( %4, @water)) {#add reag_water -1}
#if (%ismember( %5, @water)) {#add reag_water -1}
#if (%ismember( %1, @air)) {#add reag_air -1}
#if (%ismember( %2, @air)) {#add reag_air -1}
#if (%ismember( %3, @air)) {#add reag_air -1}
#if (%ismember( %4, @air)) {#add reag_air -1}
#if (%ismember( %5, @air)) {#add reag_air -1}
#if (%ismember( %1, @fire)) {#add reag_fire -1}
#if (%ismember( %2, @fire)) {#add reag_fire -1}
#if (%ismember( %3, @fire)) {#add reag_fire -1}
#if (%ismember( %4, @fire)) {#add reag_fire -1}
#if (%ismember( %5, @fire)) {#add reag_fire -1}
#if (%ismember( %1, @gem)) {#add reag_gem -1}
#if (%ismember( %2, @gem)) {#add reag_gem -1}
#if (%ismember( %3, @gem)) {#add reag_gem -1}
#if (%ismember( %4, @gem)) {#add reag_gem -1}
#if (%ismember( %5, @gem)) {#add reag_gem -1}
#if (%ismember( %1, @eth)) {#add reag_eth -1}
#if (%ismember( %2, @eth)) {#add reag_eth -1}
#if (%ismember( %3, @eth)) {#add reag_eth -1}
#if (%ismember( %4, @eth)) {#add reag_eth -1}
#if (%ismember( %5, @eth)) {#add reag_eth -1}
} "" {case}
#REGEX {A (@reag), a (@reag), a (@reag), and a (@reag) flare brightly and vanish!$} {
#if (%ismember( %1, @earth)) {#add reag_earth -1}
#if (%ismember( %2, @earth)) {#add reag_earth -1}
#if (%ismember( %3, @earth)) {#add reag_earth -1}
#if (%ismember( %4, @earth)) {#add reag_earth -1}
#if (%ismember( %1, @water)) {#add reag_water -1}
#if (%ismember( %2, @water)) {#add reag_water -1}
#if (%ismember( %3, @water)) {#add reag_water -1}
#if (%ismember( %4, @water)) {#add reag_water -1}
#if (%ismember( %1, @air)) {#add reag_air -1}
#if (%ismember( %2, @air)) {#add reag_air -1}
#if (%ismember( %3, @air)) {#add reag_air -1}
#if (%ismember( %4, @air)) {#add reag_air -1}
#if (%ismember( %1, @fire)) {#add reag_fire -1}
#if (%ismember( %2, @fire)) {#add reag_fire -1}
#if (%ismember( %3, @fire)) {#add reag_fire -1}
#if (%ismember( %4, @fire)) {#add reag_fire -1}
#if (%ismember( %1, @gem)) {#add reag_gem -1}
#if (%ismember( %2, @gem)) {#add reag_gem -1}
#if (%ismember( %3, @gem)) {#add reag_gem -1}
#if (%ismember( %4, @gem)) {#add reag_gem -1}
#if (%ismember( %1, @eth)) {#add reag_eth -1}
#if (%ismember( %2, @eth)) {#add reag_eth -1}
#if (%ismember( %3, @eth)) {#add reag_eth -1}
#if (%ismember( %4, @eth)) {#add reag_eth -1}
} "" {case}
#REGEX {A (@reag), a (@reag), and a (@reag) flare brightly and vanish!$} {
#if (%ismember( %1, @earth)) {#add reag_earth -1}
#if (%ismember( %2, @earth)) {#add reag_earth -1}
#if (%ismember( %3, @earth)) {#add reag_earth -1}
#if (%ismember( %1, @water)) {#add reag_water -1}
#if (%ismember( %2, @water)) {#add reag_water -1}
#if (%ismember( %3, @water)) {#add reag_water -1}
#if (%ismember( %1, @air)) {#add reag_air -1}
#if (%ismember( %2, @air)) {#add reag_air -1}
#if (%ismember( %3, @air)) {#add reag_air -1}
#if (%ismember( %1, @fire)) {#add reag_fire -1}
#if (%ismember( %2, @fire)) {#add reag_fire -1}
#if (%ismember( %3, @fire)) {#add reag_fire -1}
#if (%ismember( %1, @gem)) {#add reag_gem -1}
#if (%ismember( %2, @gem)) {#add reag_gem -1}
#if (%ismember( %3, @gem)) {#add reag_gem -1}
#if (%ismember( %1, @eth)) {#add reag_eth -1}
#if (%ismember( %2, @eth)) {#add reag_eth -1}
#if (%ismember( %3, @eth)) {#add reag_eth -1}
} "" {case}
#REGEX {A (@reag), and a (@reag) flare brightly and vanish!$} {
#if (%ismember( %1, @earth)) {#add reag_earth -1}
#if (%ismember( %2, @earth)) {#add reag_earth -1}
#if (%ismember( %1, @water)) {#add reag_water -1}
#if (%ismember( %2, @water)) {#add reag_water -1}
#if (%ismember( %1, @air)) {#add reag_air -1}
#if (%ismember( %2, @air)) {#add reag_air -1}
#if (%ismember( %1, @fire)) {#add reag_fire -1}
#if (%ismember( %2, @fire)) {#add reag_fire -1}
#if (%ismember( %1, @gem)) {#add reag_gem -1}
#if (%ismember( %2, @gem)) {#add reag_gem -1}
#if (%ismember( %1, @eth)) {#add reag_eth -1}
#if (%ismember( %2, @eth)) {#add reag_eth -1}
} "" {case}
#BUTTON 25 {Air: @reag_air} {buy_air} {} {} {@reag_air} {} {} {Size} {125} {25} {} {} {} {32864} {} {Gauge||2|250|50|7} {} "" {Explore|Inset} {} {}
#BUTTON 26 {Earth: @reag_earth} {buy_earth} {} {} {@reag_earth} {} {} {Size} {125} {25} {} {} {} {32800} {} {Gauge||2|250|50|7} {} "" {Explore|Inset} {} {}
#BUTTON 27 {Fire: @reag_fire} {buy_fire} {} {} {@reag_fire} {} {} {Size} {125} {25} {} {} {} {32832} {} {Gauge||2|250|50|7} {} "" {Explore|Inset} {} {}
#BUTTON 28 {Water: @reag_water} {buy_water} {} {} {@reag_water} {} {} {Size} {125} {25} {} {} {} {32816} {} {Gauge||2|250|50|7} {} "" {Explore|Inset} {} {}
#BUTTON 29 {Gem: @reag_gem} {buy_gem} {} {} {@reag_gem} {} {} {Size} {125} {25} {} {} {} {32880} {} {Gauge||2|150|50|7} {} "" {Explore|Inset} {} {}
#BUTTON 30 {Ethereal: @reag_eth} {buy_ethereal} {} {} {@reag_eth} {} {} {Size} {125} {25} {} {} {} {32848} {} {Gauge||2|150|50|7} {} "" {Explore|Inset} {} {}
#CLASS 0
|