PotionList Sorter

by Cahur

Back to Mechanic's Corner.

Cahur2007-03-26 06:32:03
A script I've used on a couple of other IRE games that makes my life SO much easier:

You can either save it to a text file and import it, or you might (should be able to) just C/P to the Zmud command line.

#CLASS {Utility}
#CLASS 0
#CLASS {Utility|Utility_Vials} {enable}
#ALIAS showvials {#GAGON;clearvials;#T+ "Utility|Utility_Vials|vials_details";config pagelength 250;potionlist;config pagelength 35;#GAGOFF}
#ALIAS clearvials {#VARIABLE vialHealing "";#VARIABLE vialEmpty "";#VARIABLE vialMana "";#VARIABLE vialRegeeneration "";#VARIABLE vialCholeric "";#VARIABLE vialSanguine "";#VARIABLE vialQuicksilver "";#VARIABLE vialMana "";#VARIABLE vialLove "";#VARIABLE vialMending "";#VARIABLE vialPhlegmatic "";#VARIABLE vialLiniment "";#VARIABLE vialAntidote "";#VARIABLE vialMelancholic "";#VARIABLE vialFire "";#VARIABLE sipsMelancholic 0;#VARIABLE sipsFire 0;#VARIABLE sipsAntidote 0;#VARIABLE sipsHealing 0;#VARIABLE sipsRegeneration 0;#VARIABLE sipsCholeric 0;#VARIABLE sipsMana 0;#VARIABLE sipsLove 0;#VARIABLE sipsMending 0;#VARIABLE sipsQuicksilver 0;#VARIABLE sipsFrost 0;#VARIABLE sipsliniment 0;#VARIABLE sipsphlegmatic 0;#VARIABLE sipssanguine 0}
#CLASS 0
#CLASS {Utility|Utility_Vials|vials_details} {disable}
#TRIGGER {(%d)%s%w%s%w%s%w%sa choleric purgative%s(%d)} {#ADDITEM VialCholeric %1;#ADD SipsCholeric %2}
#TRIGGER {(%d)%s%w%s%w%s%w%sa potion of fire%s(%d)} {#ADDITEM VialFire %1;#ADD SipsFire %2}
#TRIGGER {(%d)%s%w%s%w%s%w%sa potion of frost%s(%d)} {#ADDITEM VialFrost %1;#ADD SipsFrost %2}
#TRIGGER {(%d)%s%w%s%w%s%w%san antidote potion%s(%d)} {#ADDITEM VialAntidote %1;#ADD SipsAntidote %2}
#TRIGGER {(%d)%s%w%s%w%s%w%sa mending salve%s(%d)} {#ADDITEM VialMending %1;#ADD SipsMending %2}
#TRIGGER {(%d)%s%w%s%w%s%w%sa love potion%s(%d)} {#ADDITEM VialLove %1;#ADD SipsLove %2}
#TRIGGER {(%d)%s%w%s%w%s%w%sa regeneration salve%s(%d)} {#ADDITEM VialRegeneration %1;#ADD SipsRegeneration %2}
#TRIGGER {(%d)%s%w%s%w%s%w%squicksilver%s(%d)} {#ADDITEM VialQuicksilver %1;#ADD SipsQuicksilver %2}
#TRIGGER {(%d)%s%w%s%w%s%w%sa potion of healing%s(%d)} {#ADDITEM VialHealing %1;#ADD SipsHealing %2}
#TRIGGER {(%d)%s%w%s%w%s%w%sa potion of bromides%s(%d)} {#ADDITEM VialBromide %1;#ADD SipsBromide %2}
#TRIGGER {(%d)%s%w%s%w%s%w%sempty%s(%d)} {#ADDITEM vialEmpty %1} "" {prompt}
#TRIGGER {(%d)%s%w%s%w%s%w%sa potion of mana%s(%d)} {#ADDITEM VialMana %1;#ADD SipsMana %2}
#TRIGGER {(%d)%s%w%s%w%s%w%sa sanguine purgative%s(%d)} {#ADDITEM VialSanguine %1;#ADD SipsSanguine %2}
#TRIGGER {(%d)%s%w%s%w%s%w%sa phlegmatic purgati%s(%d)} {#ADDITEM VialPhlegmatic %1;#ADD SipsPhlegmatic %2}
#TRIGGER {(%d)%s%w%s%w%s%w%sa melancholic purgat%s(%d)} {#ADDITEM VialMelancholic %1;#ADD SipsMelancholic %2}
#TRIGGER {(%d)%s%w%s%w%s%w%sliniment%s(%d)} {#ADDITEM VialLiniment %1;#ADD SipsLiniment %2}
#TRIGGER {(*)h, (*)m, (*)e, (*)p (*)-} {#IF (%line2=~ "vial" | %line2=~ "~-~-~-") {#GAGOFF;#ECHO "";#ECHO "";#ECHO You currently possess these vials:;#ECHO %numitems( @vialHealing) health ~(@sipsHealing sips~);#ECHO %numitems( @vialMana) mana ~(@sipsmana sips~);#ECHO %numitems( @vialMending) mending ~(@sipsmending sips~);#ECHO %numitems( @vialRegeneration) regeneration ~(@sipsregeneration sips~);#ECHO %numitems( @vialCholeric) choleric ~(@sipscholeric sips~);#ECHO %numitems( @vialSanguine) sanguine ~(@sipssanguine sips~);#ECHO %numitems( @vialquicksilver) quicksilver ~(@sipsquicksilver sips~);#ECHO %numitems( @viallove) love ~(@sipslove sips~);#ECHO %numitems( @vialfire) fire ~(@sipsfire sips~);#ECHO %numitems( @vialphlegmatic) phlegmatic ~(@sipsphlegmatic sips~);#ECHO %numitems( @vialFrost) frost ~(@sipsfrost sips~);#ECHO %numitems( @vialmelancholic) melancholic ~(@sipsmelancholic sips~).;#ECHO %numitems( @vialliniment) liniment ~(@sipsliniment sips~).;#ECHO %numitems( @vialantidote) antidote ~(@sipsantidote sips~).;#ECHO "";#ECHO %numitems( @vialEmpty) vials are empty.;#T- "Utility|Utility_Vials|vials_details";""}} "" {prompt}
#CLASS 0
#CLASS {Utility|Utility_Vials|vial_lists} {enable}
#VAR vialCaloric {}
#VAR vialEmpty {75721|91233}
#VAR vialEpidermal {}
#VAR vialFrost {91453|25749}
#VAR vialHealth {}
#VAR vialImmunity {}
#VAR vialLevitation {}
#VAR vialMana {72295|71310}
#VAR vialMass {}
#VAR vialMending {96105|70605}
#VAR vialRestoration {}
#VAR vialSpeed {}
#VAR vialVenom {}
#VAR sipsCaloric {0}
#VAR sipsEpidermal {0}
#VAR sipsFrost {100}
#VAR sipsHealth {0}
#VAR sipsImmunity {0}
#VAR sipsLevitation {0}
#VAR sipsMana {100}
#VAR sipsMass {0}
#VAR sipsMending {90}
#VAR sipsRestoration {0}
#VAR sipsSpeed {0}
#VAR sipsVenom {0}
#VAR VialCholeric {75915}
#VAR SipsCholeric {50}
#VAR VialSanguine {75969|77175}
#VAR SipsSanguine {100}
#VAR VialPhlegmatic {77975|79359}
#VAR SipsPhlegmatic {100}
#VAR VialMelancholic {79415|79425}
#VAR SipsMelancholic {100}
#VAR VialLiniment {79481|48504}
#VAR SipsLiniment {100}
#VAR VialFire {83489|91258}
#VAR SipsFire {100}
#VAR VialAntidote {95560|95762}
#VAR SipsAntidote {100}
#VAR VialLove {95977|96723}
#VAR SipsLove {100}
#VAR VialRegeneration {97424|97886}
#VAR SipsRegeneration {100}
#VAR VialQuicksilver {68557|23189|73631}
#VAR SipsQuicksilver {150}
#VAR VialHealing {95444|51095}
#VAR SipsHealing {80}
#CLASS 0

The output is this:

CODE
You currently possess these vials:
2 health (80 sips)
2 mana (100 sips)
2 mending (90 sips)
2 regeneration (100 sips)
1 choleric (50 sips)
2 sanguine (100 sips)
3 quicksilver (150 sips)
2 love (100 sips)
2 fire (100 sips)
2 phlegmatic (100 sips)
2 frost (100 sips)
2 melancholic (100 sips).
2 liniment (100 sips).
2 antidote (100 sips).

2 vials are empty.
Korben2007-03-26 17:01:00
On a related note, does the vial order get periodically 'scrambled' in Potionlist over here ? That's a major source of annoyance on Achaea.
Cahur2007-03-26 20:07:41
I'm not sure, truthfully. With this script, though, it shouldn't matter because it's going to output. I also realized I left out bromides, but you can add it easily by duplicating the other triggers. Once I get a full set of venoms, I'll make up a 'ShowVenoms' script that does the same thing, if there's interest in it.
Neerth2007-03-27 15:57:38
QUOTE(Korben @ Mar 26 2007, 10:01 AM) 393832
On a related note, does the vial order get periodically 'scrambled' in Potionlist over here ? That's a major source of annoyance on Achaea.

Yes, every now and again They do something to the database, and my vials all line up in order of their ID#. Kind of annoying. Worse things could happen tho.
Tamarian2007-03-27 19:39:26
If there is a philatrophist Programming Maestro out there who can convert the script for MUSHclient, You will be showered with praise and gratitude from yours truly. smile.gif