Anarias2005-08-24 06:53:05
So, since I have next to no time to do this myself these days, is there anyone out there who can script me a refilling program? I just became an alchemist yesterday but I need to make the amalgamation process go lots faster.
Nayl2005-08-24 06:55:22
#CLASS {main|Alchemy}
#ALIAS make {nrefills = %1;type = %2;customer = %4;flush alembic;#if (@type = fire) {#loo @nrefills {addfire}} {#if (@type = mana) {#loo @nrefills {addmana}} {#if (@type = health) {#loo @nrefills {addhealth}} {#if (@type = liniment) {#loo @nrefills {addliniment}} {#if (@type = mending) {#loo @nrefills {addmending}} {#if (@type = frost) {#loo @nrefills {addfrost}} {#if (@type = sanguine) {#loo @nrefills {addsanguine}} {#if (@type = choleric) {#loo @nrefills {addcholeric}} {#if (@type = antidote) {#loo @nrefills {addantidote}} {#if (@type = quicksilver) {#loo @nrefills {addquicksilver}} {#if (@type = phlegmatic) {#loo @nrefills {addphlegmatic}} {#if (@type = bromide) {#loo @nrefills {addbromide}} {#if (@type = absinthe) {#loo @nrefills {addabsinthe}} {#if (@type = ink) {#loo @nrefills {addink}} {#if (@type = love) {#loo @nrefills {addlove}} {#if (@type = melancholic) {#loo @nrefills {addmelancholic}}}}}}}}}}}}}}}}}}
#ALIAS gv {fill empty;give %1 to @customer}
#CLASS 0
#CLASS {main|Alchemy|Add}
#ALIAS addfire {outr 2 myrtle;#2 ~add myrtle;outr 2 kafe;#2 ~add kafe;outr 3 horehound;#3 ~add horehound;outr coltsfoot;~add coltsfoot;outr 2 sage;#2 ~add sage}
#ALIAS addmana {outr 6 marjoram;#6 ~add marjoram;outr 4 flax;#4 ~add flax;outr reishi;~add reishi;outr kafe;~add kafe}
#ALIAS addhealth {outr 8 galingale;#8 ~add galingale;outr 2 sargassum;#2 ~add sargassum;outr juniper;~add juniper;outr yarrow;~add yarrow}
#ALIAS addliniment {outr 4 arnica;#4 ~add arnica;outr 2 chervil;#2 ~add chervil;outr 2 yarrow;#2 ~add yarrow;outr horehound;~add horehound;outr 2 flax;#2 ~add flax}
#ALIAS addmending {outr 5 arnica;#5 ~add arnica;outr 5 coltsfoot;#5 ~add coltsfoot;outr 5 juniper;#5 ~add juniper;outr 3 rosehips;#3 ~add rosehips}
#ALIAS addsanguine {outr 5 chervil;#5 ~add chervil;outr 5 yarrow;#5 ~add yarrow}
#ALIAS addfrost {outr 4 merbloom;#4 ~add merbloom;outr 2 juniper;#2 ~add juniper;outr kombu;~add kombu;outr mistletoe;~add mistletoe;outr sargassum;~add sargassum}
#ALIAS addantidote {outr 6 reishi;#6 ~add reishi;outr 6 wormwood;#6 ~add wormwood;outr 2 myrtle;#2 ~add myrtle}
#ALIAS addquicksilver {outr 4 kafe;#4 ~add kafe;outr 4 pennyroyal;#4 ~add pennyroyal;outr 4 sage;#4 ~add sage;outr mercury;~add mercury}
#ALIAS addcholeric {outr 5 pennyroyal;#5 ~add pennyroyal;outr 5 sage;#5 ~add sage}
#ALIAS addphlegmatic {outr 5 kombu;outr 5 horehound;#5 ~add kombu;#5 ~add horehound}
#ALIAS addbromide {outr 3 rosehips;#3 ~add rosehips;outr 3 marjoram;#3 ~add marjoram;outr 3 weed;#3 ~add weed;outr 2 calamus;#2 ~add calamus;outr 2 reishi;#2 ~add reishi}
#ALIAS addabsinthe {outr 5 wormwood;#5 ~add wormwood;outr 3 faeleaf;#3 ~add faeleaf;outr 3 mistletoe;#3 ~add mistletoe;outr 2 reishi;#2 ~add reishi;~add dreamleech}
#ALIAS addink {outr 10 goldtint;#10 ~add goldtint;outr 10 sparkleberry;#10 ~add sparkleberry}
#ALIAS addlove {outr 5 rosehips;#5 ~add rosehips;outr 5 weed;#5 ~add weed;outr 3 marjoram;#3 ~add marjoram;outr 3 coltsfoot;#3 ~add coltsfoot;outr faeleaf;~add faeleaf}
#ALIAS addmelancholic {outr 5 myrtle;#5 ~add myrtle;outr 5 galingale;#5 ~add galingale}
#CLASS 0
#ALIAS make {nrefills = %1;type = %2;customer = %4;flush alembic;#if (@type = fire) {#loo @nrefills {addfire}} {#if (@type = mana) {#loo @nrefills {addmana}} {#if (@type = health) {#loo @nrefills {addhealth}} {#if (@type = liniment) {#loo @nrefills {addliniment}} {#if (@type = mending) {#loo @nrefills {addmending}} {#if (@type = frost) {#loo @nrefills {addfrost}} {#if (@type = sanguine) {#loo @nrefills {addsanguine}} {#if (@type = choleric) {#loo @nrefills {addcholeric}} {#if (@type = antidote) {#loo @nrefills {addantidote}} {#if (@type = quicksilver) {#loo @nrefills {addquicksilver}} {#if (@type = phlegmatic) {#loo @nrefills {addphlegmatic}} {#if (@type = bromide) {#loo @nrefills {addbromide}} {#if (@type = absinthe) {#loo @nrefills {addabsinthe}} {#if (@type = ink) {#loo @nrefills {addink}} {#if (@type = love) {#loo @nrefills {addlove}} {#if (@type = melancholic) {#loo @nrefills {addmelancholic}}}}}}}}}}}}}}}}}}
#ALIAS gv {fill empty;give %1 to @customer}
#CLASS 0
#CLASS {main|Alchemy|Add}
#ALIAS addfire {outr 2 myrtle;#2 ~add myrtle;outr 2 kafe;#2 ~add kafe;outr 3 horehound;#3 ~add horehound;outr coltsfoot;~add coltsfoot;outr 2 sage;#2 ~add sage}
#ALIAS addmana {outr 6 marjoram;#6 ~add marjoram;outr 4 flax;#4 ~add flax;outr reishi;~add reishi;outr kafe;~add kafe}
#ALIAS addhealth {outr 8 galingale;#8 ~add galingale;outr 2 sargassum;#2 ~add sargassum;outr juniper;~add juniper;outr yarrow;~add yarrow}
#ALIAS addliniment {outr 4 arnica;#4 ~add arnica;outr 2 chervil;#2 ~add chervil;outr 2 yarrow;#2 ~add yarrow;outr horehound;~add horehound;outr 2 flax;#2 ~add flax}
#ALIAS addmending {outr 5 arnica;#5 ~add arnica;outr 5 coltsfoot;#5 ~add coltsfoot;outr 5 juniper;#5 ~add juniper;outr 3 rosehips;#3 ~add rosehips}
#ALIAS addsanguine {outr 5 chervil;#5 ~add chervil;outr 5 yarrow;#5 ~add yarrow}
#ALIAS addfrost {outr 4 merbloom;#4 ~add merbloom;outr 2 juniper;#2 ~add juniper;outr kombu;~add kombu;outr mistletoe;~add mistletoe;outr sargassum;~add sargassum}
#ALIAS addantidote {outr 6 reishi;#6 ~add reishi;outr 6 wormwood;#6 ~add wormwood;outr 2 myrtle;#2 ~add myrtle}
#ALIAS addquicksilver {outr 4 kafe;#4 ~add kafe;outr 4 pennyroyal;#4 ~add pennyroyal;outr 4 sage;#4 ~add sage;outr mercury;~add mercury}
#ALIAS addcholeric {outr 5 pennyroyal;#5 ~add pennyroyal;outr 5 sage;#5 ~add sage}
#ALIAS addphlegmatic {outr 5 kombu;outr 5 horehound;#5 ~add kombu;#5 ~add horehound}
#ALIAS addbromide {outr 3 rosehips;#3 ~add rosehips;outr 3 marjoram;#3 ~add marjoram;outr 3 weed;#3 ~add weed;outr 2 calamus;#2 ~add calamus;outr 2 reishi;#2 ~add reishi}
#ALIAS addabsinthe {outr 5 wormwood;#5 ~add wormwood;outr 3 faeleaf;#3 ~add faeleaf;outr 3 mistletoe;#3 ~add mistletoe;outr 2 reishi;#2 ~add reishi;~add dreamleech}
#ALIAS addink {outr 10 goldtint;#10 ~add goldtint;outr 10 sparkleberry;#10 ~add sparkleberry}
#ALIAS addlove {outr 5 rosehips;#5 ~add rosehips;outr 5 weed;#5 ~add weed;outr 3 marjoram;#3 ~add marjoram;outr 3 coltsfoot;#3 ~add coltsfoot;outr faeleaf;~add faeleaf}
#ALIAS addmelancholic {outr 5 myrtle;#5 ~add myrtle;outr 5 galingale;#5 ~add galingale}
#CLASS 0
Nayl2005-08-24 06:56:27
That's up to Melancholic, but, it should be easy to work out how to add more.
Anarias2005-08-24 07:20:42
Thanks Nayl!
Nayl2005-08-24 07:50:12
See, more love to hoard.
Unknown2005-08-24 10:59:53
You could simplify and generalize the script by combining your parameter to make the call to the proper alias:
You might also want to put sanity checks in to ensure proper syntaxes. Make sure there are four parameters, parameter one is a number, and parameter two is a member of the list of potions you can fill. If any of the checks fails, you should print out the proper syntax and remind yourself.
CODE
#ALIAS make {nrefills = %1;type = %2;customer = %4;flush alembic;#loop @nrefills {add%2}}
You might also want to put sanity checks in to ensure proper syntaxes. Make sure there are four parameters, parameter one is a number, and parameter two is a member of the list of potions you can fill. If any of the checks fails, you should print out the proper syntax and remind yourself.
Nayl2005-08-24 11:11:07
Good point, I'll get right on that.
Next time I get a new potion
Next time I get a new potion
Unknown2005-08-24 12:20:05
And, since you don't seem to use the nrefills or type anywhere else, you could just skip that part.
CODE
#ALIAS make {customer = %4;flush alembic;#loop %1 {add%2}}
Sylvanis2009-02-17 15:14:05
does this still work??
Unknown2009-02-17 15:27:33
You try it and tell us?
Sylvanis2009-02-17 15:34:46
once put in, what command actually activates this?
I see that the Alias make, it create a potion by type
so is it make ? and then it goes through the adding process and then amalgamation?
I see that the Alias make, it create a potion by type
so is it make
Everiine2009-02-17 16:05:39
Necrooooooooooooo
Sylvanis2009-02-17 19:34:17
Nope this code pulls up an error when inputting it, I pressed save and it said Line 1: Expected '<' but got '#'
Rakor2009-02-17 21:05:58
Good lord. I'd forgotten about Nayl.