Help - Search - Members - Calendar
Full Version: Another Mxp Script
Achaea's Forums > Off-Topic > Tech Support > Curing Systems and Scripts
Jonathin
CODE
#CLASS {Elist2}
#ALIAS echeck {~elist2;#t+ elist2trigger;#t+ elist2alarm}
#ALIAS switch {pour @vial1 into @vial2;#va vial1 {};#va vial2 {}}
#ALIAS setvial {#if (@vial1) {#va vial2 %1} {#va vial1 %1}}
#VAR vial1 {}
#VAR vial2 {}
#ALARM "elist2alarm" {*2} {#t- elist2trigger;#t- elist2alarm} "" {disable}
#REGEX "elist2trigger" {^Vial(\d+)(\s+)(.+?)(\s+)(\d+)(\s+)(\d+)$} {#sub {Vial%1%2<send "setvial %1|give %1 to humgii|Put %2 in pack|Drop %1" "Set vials|Humgii it|Put it in your pack|Drop it">%3</send>%4%5%6%7}} "" {disable}
#CLASS 0


Just ECHECK, then the first click sets the first vial, second click sets the second vial.

I.e.

CODE
Via111111               empty                      0       132
Vial222222               an elixir of frost       177       132
                               ^--click this one first, it'll set @vial1 to 222222

Vial333333               empty      0         138
                             ^click this one second, it'll set @vial2 to 333333
Vial444444               an elixir of health      200       138
Vial555555               an elixir of health       20       138


Then just type SWITCH and it'll pour the first clicked vial, into the second clicked vial.


It's really not as complicated as I'm making it sound.


Right click for more options.

Also, it's a timer because I'm too lazy to make it something else.
SlyViolin
Ohhhhhhhhhhhhhhh....

smile.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.