Sanion Brewbot
Jump to navigation
Jump to search
Sanion Brewbot
Sanion's Brewbot Trigger Setup :
(Please read the below notes above each setting, and take any action as necessary)
prompt : <1275/1275hp> <1114/1114m> <610/610> <-H-> >
prompt set command : prompt &r<%h/%Hhp> &p<%m/%Mm> &g<%v/%V> &Y<-%A-> >
this is the prompt trigger
#TRIGGER {<&%d{HP}/&%d{MAXHP}hp> <&%d{MN}/&%d{MAXMN}m> <&%d{MV}/&%d{MAXMV}> <%x> >} {}
#CLASS {Brewing}
the restore trigger for trancing
#ALIAS mrestore {#math needtr ((@maxmn-@mn)/50)+1;#if (@needtr>20) {#loop 20 {trance};cough;#loop @needtr-20 {trance}} {#loop @needtr {trance}}}
the alias to start the brewing
#ALIAS brewup {get empty extra;hold empty;brew %1}
stops all the loops
#ALIAS stop {#var cycling 0;#var brewloop 0;#show Brewing has halted, completing last cycle.}
starts the script, use setup first
#ALIAS start {#Show beginning brewing program. Current settings indicate:;#if (@brewloop=true & @cycling=true) {#var counter 1;#var potion @item( @potlist, 1);#show Brewing the following in sets:;#show @potlist};#if (@brewloop=true & @cycling=false) {#show Brewing the single potion:;#show @potion};brewup @potion}
the setup alias
#ALIAS setup {#Show establishing brewing config:;#pr brewloop "Do you wish to loop the brewing? (0=false,1=true)";#pr cycling "Do you wish to brew a set of potions? (0=false,1=true)";#if (@brewloop=1 & @cycling=0) {#pr potion "What is the keyword of the potion you wish to brew?"};#if (@brewloop=1 & @cycling=1) {#pr "What is the list of potion keywords, seperating each with a '|'};#if (@brewloop=0) {#show looping is off, use brewup %potion to brew};#show brewing config complete.... type start to begin}
#VAR needtr {8}
#VAR brewloop {0}
#VAR potlist {iceshield|fireshield|shockshield}
#VAR potion {iceshield}
#VAR cycling {0}
#VAR counter {1}
#VAR sets {1}
#VAR brewloop {0}
#VAR cycling {0}
#VAR potion {eldritch}
the succeed trigger.
#TRIGGER {You brew up {an|a} (*) potion} {rem pot;put pot port;mrestore;#if (@cycling=true) {#math counter @counter+1;#if (@counter>%numitems( @potlist)) {#math sets @sets+1;#var counter 1};#var potion %item( @potlist, @counter)};#if (@brewloop=true) {brewup @potion}}
the failed trigger.
#TRIGGER {You failed.} {brew @potion}