Munsia2008-03-30 16:29:02
I'm lazy... I was wondering if anyone has a code for recharging off of magiclist? Like it grabs the numbers and recharges from them?
I know I could manually make an alias but since my items change alot it's such a hassle
I know I could manually make an alias but since my items change alot it's such a hassle
Acrune2008-03-30 16:44:32
Here is all the zmud code I had for my enchantments. Don't feel like filtering it down to only what you asked for, but I'm sure you can figure it out. Not all of the enchants are in there, but its easy enough to add more. Grabs the numbers off magiclist, CHARGE recharges everything.
#CLASS {enchants}
#ALIAS enchants {#if (@mercyAmt>1) {rub @mercyNumber;#MATH newValue @mercyAmt-1;#var mercyAmt @newValue} {#SA "Not enough mercy charges"};#if (@perfectionAmt>1) {rub @perfectionNumber;#MATH newValue @perfectionAmt-1;#var perfectionAmt @newValue} {#SA "Not enough perfection charges"};#if (@kingdomAmt>1) {rub @kingdomNumber;#MATH newValue @kingdomAmt-1;#var kingdomAmt @newValue} {#SA "Not enough kingdom charges"};#if (@beautyAmt>1) {rub @beautyNumber;#MATH newValue @beautyAmt-1;#var beautyAmt @newValue} {#SA "Not enough beauty charges"}}
#ALIAS charge {recharge @healNumber from cube;recharge @mercyNumber from cube;recharge @perfectionNumber from cube;recharge @kingdomNumber from cube;recharge @protNumber from cube;recharge @beautyNumber from cube;recharge @acquisitioNumber from cube;recharge @wwalkNumber from cube;recharge @scryNumber from cube;recharge @diminishNumber from cube;recharge 47900 from cube;recharge 171419 from cube}
#ALIAS acqui {#if (@acquisitioAmt>1) {rub @acquisitioNumber;#MATH newValue @acquisitioAmt-1;#var acquisitioAmt @newValue} {#SA "Not enough acquisitio charges"}}
#ALIAS wwalk {#if (@wwalkAmt>1) {rub @wwalkNumber;#MATH newValue @wwalkAmt-1;#var wwalkAmt @newValue} {#SA "Not enough waterwalk charges"}}
#ALIAS dimi {#if (@diminishAmt>1) {rub @diminishNumber;#MATH newValue @diminishAmt-1;#var diminishAmt @newValue} {#SA "Not enough diminish charges"}}
#ALIAS scry {#if (@scryAmt>1) {rub @scryNumber %1;#MATH newValue @diminishAmt-1;#var scryAmt @newValue} {#SA "Not enough scry charges"}}
#ALIAS waterbreathe {#if (@waterbreatheAmt>1) {rub @waterbreatheNumber;#MATH newValue @waterbreatheAmt-1;#var waterbreatheAmt @newValue} {#SA "Not enough waterbreathe charges"}}
#VAR healNumber {161296}
#VAR protNumber {75966}
#VAR healAmt {50}
#VAR beautyAmt {9}
#VAR protAmt {50}
#VAR wwalkAmt {10}
#VAR acquisitioAmt {}
#VAR healScrollBalance {1} {1}
#VAR mercyNumber {82332}
#VAR perfectionNumber {103431}
#VAR beautyNumber {103541}
#VAR kingdomNumber {109744}
#VAR acquisitioNumber {}
#VAR wwalkNumber {135460}
#VAR scryAmt {19}
#VAR diminishAmt {20}
#VAR waterbreatheAmt {10}
#VAR scryNumber {83648}
#VAR diminishNumber {140414}
#VAR waterbreatheNumber {171419}
#VAR mercyAmt {9}
#VAR kingdomAmt {29}
#VAR perfectionAmt {9}
#TRIGGER {(%d)(%s)a Scroll of Healing(%s)scroll(%s)healing sc (%d)} {#var healNumber %1;#var healAmt %5}
#TRIGGER {(%d)(*)worn(%s)mercy(%s)(%d)} {#var mercyNumber %1;#var mercyAmt %5}
#TRIGGER {(%d)(*)worn(%s)beauty(%s)(%d)} {#var beautyNumber %1;#var beautyAmt %5}
#TRIGGER {(%d)(*)worn(%s)perfection(%s)(%d)} {#var perfectionNumber %1;#var perfectionAmt %5}
#TRIGGER {(%d)(*)worn(%s)kingdom(%s)(%d)} {#var kingdomNumber %1;#var kingdomAmt %5}
#TRIGGER {(%d)(*)worn(%s)waterwalk(%s)(%d)} {#var wwalkNumber %1;#var wwalkAmt %5}
#TRIGGER {(%d)(*)worn(%s)acquisitio(%s)(%d)} {#var acquisitioNumber %1;#var acquisitioAmt %5}
#TRIGGER {(%d)(*)worn(%s)scry(%s)(%d)} {#var scryNumber %1;#var scryAmt %5}
#TRIGGER {(%d)(*)worn(%s)diminish(%s)(%d)} {#var diminishNumber %1;#var diminishAmt %5}
#TRIGGER {(%d)(*)worn(%s)waterbreat(%s)(%d)} {#var waterbreatheNumber %1;#var waterbreatheAmt %5}
#TRIGGER {(%d)(%s)a Scroll of Protection(%s)scroll(%s)protection (%d)} {#var protNumber %1;#var protAmt %5}
#CLASS 0
#CLASS {enchants}
#ALIAS enchants {#if (@mercyAmt>1) {rub @mercyNumber;#MATH newValue @mercyAmt-1;#var mercyAmt @newValue} {#SA "Not enough mercy charges"};#if (@perfectionAmt>1) {rub @perfectionNumber;#MATH newValue @perfectionAmt-1;#var perfectionAmt @newValue} {#SA "Not enough perfection charges"};#if (@kingdomAmt>1) {rub @kingdomNumber;#MATH newValue @kingdomAmt-1;#var kingdomAmt @newValue} {#SA "Not enough kingdom charges"};#if (@beautyAmt>1) {rub @beautyNumber;#MATH newValue @beautyAmt-1;#var beautyAmt @newValue} {#SA "Not enough beauty charges"}}
#ALIAS charge {recharge @healNumber from cube;recharge @mercyNumber from cube;recharge @perfectionNumber from cube;recharge @kingdomNumber from cube;recharge @protNumber from cube;recharge @beautyNumber from cube;recharge @acquisitioNumber from cube;recharge @wwalkNumber from cube;recharge @scryNumber from cube;recharge @diminishNumber from cube;recharge 47900 from cube;recharge 171419 from cube}
#ALIAS acqui {#if (@acquisitioAmt>1) {rub @acquisitioNumber;#MATH newValue @acquisitioAmt-1;#var acquisitioAmt @newValue} {#SA "Not enough acquisitio charges"}}
#ALIAS wwalk {#if (@wwalkAmt>1) {rub @wwalkNumber;#MATH newValue @wwalkAmt-1;#var wwalkAmt @newValue} {#SA "Not enough waterwalk charges"}}
#ALIAS dimi {#if (@diminishAmt>1) {rub @diminishNumber;#MATH newValue @diminishAmt-1;#var diminishAmt @newValue} {#SA "Not enough diminish charges"}}
#ALIAS scry {#if (@scryAmt>1) {rub @scryNumber %1;#MATH newValue @diminishAmt-1;#var scryAmt @newValue} {#SA "Not enough scry charges"}}
#ALIAS waterbreathe {#if (@waterbreatheAmt>1) {rub @waterbreatheNumber;#MATH newValue @waterbreatheAmt-1;#var waterbreatheAmt @newValue} {#SA "Not enough waterbreathe charges"}}
#VAR healNumber {161296}
#VAR protNumber {75966}
#VAR healAmt {50}
#VAR beautyAmt {9}
#VAR protAmt {50}
#VAR wwalkAmt {10}
#VAR acquisitioAmt {}
#VAR healScrollBalance {1} {1}
#VAR mercyNumber {82332}
#VAR perfectionNumber {103431}
#VAR beautyNumber {103541}
#VAR kingdomNumber {109744}
#VAR acquisitioNumber {}
#VAR wwalkNumber {135460}
#VAR scryAmt {19}
#VAR diminishAmt {20}
#VAR waterbreatheAmt {10}
#VAR scryNumber {83648}
#VAR diminishNumber {140414}
#VAR waterbreatheNumber {171419}
#VAR mercyAmt {9}
#VAR kingdomAmt {29}
#VAR perfectionAmt {9}
#TRIGGER {(%d)(%s)a Scroll of Healing(%s)scroll(%s)healing sc (%d)} {#var healNumber %1;#var healAmt %5}
#TRIGGER {(%d)(*)worn(%s)mercy(%s)(%d)} {#var mercyNumber %1;#var mercyAmt %5}
#TRIGGER {(%d)(*)worn(%s)beauty(%s)(%d)} {#var beautyNumber %1;#var beautyAmt %5}
#TRIGGER {(%d)(*)worn(%s)perfection(%s)(%d)} {#var perfectionNumber %1;#var perfectionAmt %5}
#TRIGGER {(%d)(*)worn(%s)kingdom(%s)(%d)} {#var kingdomNumber %1;#var kingdomAmt %5}
#TRIGGER {(%d)(*)worn(%s)waterwalk(%s)(%d)} {#var wwalkNumber %1;#var wwalkAmt %5}
#TRIGGER {(%d)(*)worn(%s)acquisitio(%s)(%d)} {#var acquisitioNumber %1;#var acquisitioAmt %5}
#TRIGGER {(%d)(*)worn(%s)scry(%s)(%d)} {#var scryNumber %1;#var scryAmt %5}
#TRIGGER {(%d)(*)worn(%s)diminish(%s)(%d)} {#var diminishNumber %1;#var diminishAmt %5}
#TRIGGER {(%d)(*)worn(%s)waterbreat(%s)(%d)} {#var waterbreatheNumber %1;#var waterbreatheAmt %5}
#TRIGGER {(%d)(%s)a Scroll of Protection(%s)scroll(%s)protection (%d)} {#var protNumber %1;#var protAmt %5}
#CLASS 0
Munsia2008-03-30 17:11:03
Works great actually.. I figured out how to add and remove!
Pentu2008-04-02 12:16:19
You can just do "recharge kingdom from cube" etc now, anyway.
Ryleth2008-04-02 12:27:35
Good god! Pentu is alive?!?!