Zmud Potion List - Keep track of your stock

by Rauros

Back to Mechanic's Corner.

Rauros2006-01-09 08:35:35
CODE
#CLASS {Potions List} {enable}
#ALIAS chpl {
 #var healing_sips 0
 #var healing_potions 0
 #var mana_sips 0
 #var mana_potions 0
 #var bromide_sips 0
 #var bromide_potions 0
 #var healing_lowlife 0
 #var mana_lowlife 0
 #var bromide_lowlife 0
 #var healing_lowsips 0
 #var mana_lowsips 0
 #var bromide_lowsips 0
 config pagelength 150
 pl
 config pagelength 30
 }
#ALIAS print {
 #echo ==========================================================
 #echo ==== Your stock of potions currently contains:
 #echo ==== @healing_potions healing with @healing_sips sips.
 #echo ==== @mana_potions mana with @mana_sips sips.
 #echo ==== @bromide_potions bromides with @bromide_sips sips.
 #echo ====
 #if (@healing_lowlife>0) {#echo ==== @healing_lowlife health vials containing @healing_lowsips sips are about to decay.}
 #if (@mana_lowlife>0) {#echo ==== @mana_lowlife mana vials containing @mana_lowsips sips are about to decay.}
 #if (@bromide_lowlife>0) {#echo ==== @bromide_lowlife bromide vials containing @bromide_lowsips sips are about to decay.}
 #echo ===========================================================
 }
#VAR mana_sips {0}
#VAR mana_potions {0}
#VAR bromide_sips {0}
#VAR bromide_potions {0}
#VAR healing_sips {0}
#VAR healing_potions {0}
#VAR healing_lowlife {0}
#VAR mana_lowlife {0}
#VAR bromide_lowlife {0}
#VAR mana_lowsips {0}
#VAR healing_lowsips {0}
#VAR bromide_lowsips {0}
#TRIGGER {a potion of bromides%s(%d)%s(%d)} {
 #add bromide_sips %1
 #add bromide_potions 1
 #if (%2<50) {
   #add bromide_lowlife 1
   #add bromide_lowsips %1
   }
 }
#TRIGGER {a potion of healing%s(%d)%s(%d)} {
 #ADD healing_sips %1
 #ADD healing_potions 1
 #if (%2<50) {
   #add healing_lowlife 1
   #add healing_lowsips %1
   }
 }
#TRIGGER {a potion of mana%s(%d)%s(%d)} {
 #ADD mana_sips %1
 #ADD mana_potions 1
 #if (%2<50) {
   #add mana_lowlife 1
   #add mana_lowsips %1
   }
 }
#CLASS 0


This is just a fun little script I came up with to keep track of my potions, how many, how many sips are left, and if any are about to decay so I know whether or not to make more vials. It's customized for my own use, but it should be simple enough to adapt to your own style.

Some notes before you use this:
1. The number of months the script checks to see if its about to decay is set at 50. You will have to adjust that number if you think it should be higher or lower.
2. The two aliases to use this script are CHPL and PRINT. You must have the PotionList skill in Discernment for this to work. Use CHPL first, then PRINT.
3. This script assumes you use a 30 size pagelength with default linewidth (80). I don't know what affect it will have if your linewidth is different. If you use a different pagelength, you'll have to change it to whatever you use.
4. If I could edit the title I would, but I forgot to mention this is for ZMUD.

I hope someone finds this useful.
Unknown2006-01-09 21:07:41
I would do much thanking and rejoicing for this script if it was for MC.
Rauros2006-01-11 13:48:57
I'm afraid I know too little about MC, but if I can, I will.
Unknown2006-01-11 20:07:16
Avator made one, too. Thanks to both. smile.gif
Munsia2006-01-13 08:45:16
This script is relativly useless to most.. it only shows the three potions and none others
Shiri2006-01-13 09:50:42
QUOTE(munsia @ Jan 13 2006, 08:45 AM)
This script is relativly useless to most.. it only shows the three potions and none others
246065



Which means it's useful for people that want to bash and influence, if not fight. It's not really useless at all.
Unknown2006-01-13 10:40:21
I've meant to make a full potionlist script for some time, but lacking the actual skill (and the funds for all vials at this point) I can't. If someone provides me with exact lines for all the potions then I could whip something up. It'll be for Mushclient only, but you could warm yourself with knowing that you did something good and selfless maybe?
Xenthos2006-01-13 15:41:11
It's not exactly pretty or anything, and doesn't count vitae potions or poisons (poisons have been on the "to-add" list for some considerable time). The potionlist folder should be disabled at all times, doing the PL alias (you can rename it if you want) enables it for the duration of the script, after which it is disabled again. If you keep PL for the quick count, you can still use PotionList to check each individual vial and decay time.

I'm not so good at extracting my scripts for some reason, something nearly always goes wrong, so let me know if I screwed up yet again. Was thinking of selling this at some point (so didn't post it earlier) but meh. Can't be bothered, and as I said it's not all that pretty. Just make sure that the PL alias is not in the PotionList folder. And yes, it's for zMud.

#CLASS {My Scripts|PotionList}
#ALIAS ResetPotions {#var healingvials 0;#var manavials 0;#var bromidesvials 0;#var allhealevials 0;#var melancholicvials 0;#var cholericvials 0;#var phlegmaticvials 0;#var regenerationvials 0;#var mendingvials 0;#var frostvials 0;#var firevials 0;#var sanguinevials 0;#var quicksilvervials 0;#var antidotevials 0;#var lovevials 0;#var antidotevials 0;#var linimentvials 0;#var emptyvials 0;#var healingsips 0;#var manasips 0;#var bromidessips 0;#var allhealesips 0;#var melancholicsips 0;#var cholericsips 0;#var phlegmaticsips 0;#var regenerationsips 0;#var mendingsips 0;#var frostsips 0;#var firesips 0;#var sanguinesips 0;#var quicksilversips 0;#var antidotesips 0;#var lovesips 0;#var antidotesips 0;#var linimentsips 0}
#ALIAS ListPotions {#say Healing Vials: @healingvials Sips: @healingsips;#say Mana Vials: @manavials Sips: @manasips;#say Bromide Vials: @bromidesvials Sips: @bromidessips;#say Allheale Vials: @allhealevials Sips: @allhealesips;#say Melancholic Vials: @melancholicvials Sips: @melancholicsips;#say Choleric Vials: @cholericvials Sips: @cholericsips;#say Phlegmatic Vials: @phlegmaticvials Sips: @phlegmaticsips;#say Reneration Vials: @regenerationvials Sips: @regenerationsips;#say Mending Vials: @mendingvials Sips: @mendingsips;#say Frost Vials: @frostvials Sips: @frostsips;#say Fire Vials: @firevials Sips: @firesips;#say Sanguine Vials: @sanguinevials Sips: @sanguinesips;#say Quicksilver Vials: @quicksilvervials Sips: @quicksilversips;#say Antidote Vials: @antidotevials Sips: @antidotesips;#say Love Vials: @Lovevials Sips: @lovesips;#say Liniment Vials: @linimentvials Sips: @linimentsips;#say Empty Vials: @emptyvials}
#VAR healingvials {0} {0}
#VAR manavials {0} {0}
#VAR bromidesvials {0} {0}
#VAR allhealevials {0} {0}
#VAR melancholicvials {0} {0}
#VAR cholericvials {0} {0}
#VAR phlegmaticvials {0} {0}
#VAR regenerationvials {0} {0}
#VAR mendingvials {0} {0}
#VAR frostvials {0} {0}
#VAR firevials {0} {0}
#VAR sanguinevials {0} {0}
#VAR quicksilvervials {0} {0}
#VAR antidotevials {0} {0}
#VAR lovevials {0} {0}
#VAR emptyvials {0}
#VAR linimentvials {0}
#VAR healingsips {0} {0}
#VAR manasips {0} {0}
#VAR bromidessips {0} {0}
#VAR allhealesips {0} {0}
#VAR melancholicsips {0} {0}
#VAR cholericsips {0} {0}
#VAR phlegmaticsips {0} {0}
#VAR regenerationsips {0} {0}
#VAR mendingsips {0} {0}
#VAR frostsips {0} {0}
#VAR firesips {0} {0}
#VAR sanguinesips {0} {0}
#VAR quicksilversips {0} {0}
#VAR antidotevsips {0} {0}
#VAR lovesips {0} {0}
#VAR emptysips {0}
#VAR linimentsips {0}
#TRIGGER {Type MORE to continue reading.} {more}
#TRIGGER {Total Vials:} {ListPotions;#t- PotionList}
#REGEX {^(\\d+)\\s*a? (\\w+) vial\\s+(\\w+) (\\w+) (\\w+)\\s+(\\d+)\\s+(\\d+)$} {#add %4vials 1;#gag;#add %4sips %6}
#REGEX {^(\\d+)\\s*a? (\\w+) vial\\s+(\\w+) (\\w+) (\\w+) (\\w+)\\s+(\\d+)\\s+(\\d+)$} {#add %6vials 1;#gag;#add %6sips %7}
#REGEX {^(\\d+)\\s*a? (\\w+) vial\\s+(\\w+)\\s+(\\d+)\\s+(\\d+)$} {#add %3vials 1;#gag;#add %3sips %4}
#CLASS 0

#ALIAS pl {#t+ PotionList;resetpotions;#send pl} "My Scripts"
Unknown2006-01-13 20:37:27
I won't be play much for the next week or so, and all of my vails are soon to decay. If you want, Avator, you can have 'em. It was everything that is on the healing list. I haven't checked recently, so I not sure what's left. But its still a good number of them.
Unknown2006-01-13 21:45:03
The vials won't help much since I still don't have potionlist anyways. And I can't guarantee that they won't decay on me either, my next week schedule provides some grounds for hope, but my hopes for slacking off have a tendency to not come true. Monday will decide whether I'll be digging dirt again or kicking back, playing Lusternia, and drinking beer in front of a TV, in other words - simulating wild professional activity. tongue.gif
Munsia2006-01-14 00:47:31
QUOTE(Xenthos @ Jan 13 2006, 11:41 AM)
It's not exactly pretty or anything, and doesn't count vitae potions or poisons (poisons have been on the "to-add" list for some considerable time).  The potionlist folder should be disabled at all times, doing the PL alias (you can rename it if you want) enables it for the duration of the script, after which it is disabled again.  If you keep PL for the quick count, you can still use PotionList to check each individual vial and decay time.

I'm not so good at extracting my scripts for some reason, something nearly always goes wrong, so let me know if I screwed up yet again.  Was thinking of selling this at some point (so didn't post it earlier) but meh.  Can't be bothered, and as I said it's not all that pretty.  Just make sure that the PL alias is not in the PotionList folder.  And yes, it's for zMud.

#CLASS {My Scripts|PotionList}
#ALIAS ResetPotions {#var healingvials 0;#var manavials 0;#var bromidesvials 0;#var allhealevials 0;#var melancholicvials 0;#var cholericvials 0;#var phlegmaticvials 0;#var regenerationvials 0;#var mendingvials 0;#var frostvials 0;#var firevials 0;#var sanguinevials 0;#var quicksilvervials 0;#var antidotevials 0;#var lovevials 0;#var antidotevials 0;#var linimentvials 0;#var emptyvials 0;#var healingsips 0;#var manasips 0;#var bromidessips 0;#var allhealesips 0;#var melancholicsips 0;#var cholericsips 0;#var phlegmaticsips 0;#var regenerationsips 0;#var mendingsips 0;#var frostsips 0;#var firesips 0;#var sanguinesips 0;#var quicksilversips 0;#var antidotesips 0;#var lovesips 0;#var antidotesips 0;#var linimentsips 0}
#ALIAS ListPotions {#say Healing Vials: @healingvials Sips: @healingsips;#say Mana Vials: @manavials Sips: @manasips;#say Bromide Vials: @bromidesvials Sips: @bromidessips;#say Allheale Vials: @allhealevials Sips: @allhealesips;#say Melancholic Vials: @melancholicvials Sips: @melancholicsips;#say Choleric Vials: @cholericvials Sips: @cholericsips;#say Phlegmatic Vials: @phlegmaticvials Sips: @phlegmaticsips;#say Reneration Vials: @regenerationvials Sips: @regenerationsips;#say Mending Vials: @mendingvials Sips: @mendingsips;#say Frost Vials: @frostvials Sips: @frostsips;#say Fire Vials: @firevials Sips: @firesips;#say Sanguine Vials: @sanguinevials Sips: @sanguinesips;#say Quicksilver Vials: @quicksilvervials Sips: @quicksilversips;#say Antidote Vials: @antidotevials Sips: @antidotesips;#say Love Vials: @Lovevials Sips: @lovesips;#say Liniment Vials: @linimentvials Sips: @linimentsips;#say Empty Vials: @emptyvials}
#VAR healingvials {0} {0}
#VAR manavials {0} {0}
#VAR bromidesvials {0} {0}
#VAR allhealevials {0} {0}
#VAR melancholicvials {0} {0}
#VAR cholericvials {0} {0}
#VAR phlegmaticvials {0} {0}
#VAR regenerationvials {0} {0}
#VAR mendingvials {0} {0}
#VAR frostvials {0} {0}
#VAR firevials {0} {0}
#VAR sanguinevials {0} {0}
#VAR quicksilvervials {0} {0}
#VAR antidotevials {0} {0}
#VAR lovevials {0} {0}
#VAR emptyvials {0}
#VAR linimentvials {0}
#VAR healingsips {0} {0}
#VAR manasips {0} {0}
#VAR bromidessips {0} {0}
#VAR allhealesips {0} {0}
#VAR melancholicsips {0} {0}
#VAR cholericsips {0} {0}
#VAR phlegmaticsips {0} {0}
#VAR regenerationsips {0} {0}
#VAR mendingsips {0} {0}
#VAR frostsips {0} {0}
#VAR firesips {0} {0}
#VAR sanguinesips {0} {0}
#VAR quicksilversips {0} {0}
#VAR antidotevsips {0} {0}
#VAR lovesips {0} {0}
#VAR emptysips {0}
#VAR linimentsips {0}
#TRIGGER {Type MORE to continue reading.} {more}
#TRIGGER {Total Vials:} {ListPotions;#t- PotionList}
#REGEX {^(\\d+)\\s*a? (\\w+) vial\\s+(\\w+) (\\w+) (\\w+)\\s+(\\d+)\\s+(\\d+)$} {#add %4vials 1;#gag;#add %4sips %6}
#REGEX {^(\\d+)\\s*a? (\\w+) vial\\s+(\\w+) (\\w+) (\\w+) (\\w+)\\s+(\\d+)\\s+(\\d+)$} {#add %6vials 1;#gag;#add %6sips %7}
#REGEX {^(\\d+)\\s*a? (\\w+) vial\\s+(\\w+)\\s+(\\d+)\\s+(\\d+)$} {#add %3vials 1;#gag;#add %3sips %4}
#CLASS 0

#ALIAS pl {#t+ PotionList;resetpotions;#send pl} "My Scripts"
246118


Tell me when you add poisons biggrin.gif
Xenthos2006-01-14 00:54:09
QUOTE(munsia @ Jan 13 2006, 08:47 PM)
Tell me when you add poisons  biggrin.gif
246228



At least someone likes it... unsure.gif
Munsia2006-01-14 00:57:15
QUOTE(Xenthos @ Jan 13 2006, 08:54 PM)
At least someone likes it...  unsure.gif
246230


eyepoke.gif get to work
Xenthos2006-01-14 01:57:07
Okay, try this. PL still does the old potionlist, PPL does a poison and potion list.

#ALIAS pl {#t+ PotionList;resetpotions;#send pl} "My Scripts"
#ALIAS ppl {#t+ PotionList;resetpotions;#var poisonlist 1;#send pl} "My Scripts"

#CLASS {My Scripts|PotionList}
#ALIAS ResetPotions {#var healingvials 0;#var manavials 0;#var bromidesvials 0;#var allhealevials 0;#var melancholicvials 0;#var cholericvials 0;#var phlegmaticvials 0;#var regenerationvials 0;#var mendingvials 0;#var frostvials 0;#var firevials 0;#var sanguinevials 0;#var quicksilvervials 0;#var antidotevials 0;#var lovevials 0;#var antidotevials 0;#var linimentvials 0;#var emptyvials 0;#var healingsips 0;#var manasips 0;#var bromidessips 0;#var allhealesips 0;#var melancholicsips 0;#var cholericsips 0;#var phlegmaticsips 0;#var regenerationsips 0;#var mendingsips 0;#var frostsips 0;#var firesips 0;#var sanguinesips 0;#var quicksilversips 0;#var antidotesips 0;#var lovesips 0;#var antidotesips 0;#var linimentsips 0;#var Aleutiansips 0;#var Anatinesips 0;#var Anerodsips 0;#var Botulinumsips 0;#var Calcisesips 0;#var Chansusips 0;#var Charybdonsips 0;#var Contortrinsips 0;#var Crotaminesips 0;#var Dendroxinsips 0;#var Dulaksips 0;#var Escozulsips 0;#var Hadrudinsips 0;#var Ibululusips 0;#var Inyokasips 0;#var Mactanssips 0;#var Mantakayasips 0;#var Mellitinsips 0;#var Morphitesips 0;#var Niricolsips 0;#var Saxitinsips 0;#var Sensosips 0;#var Tetrodinsips 0;#var Aleutianvials 0;#var Anatinevials 0;#var Anerodvials 0;#var Botulinumvials 0;#var Calcisevials 0;#var Chansuvials 0;#var Charybdonvials 0;#var Contortrinvials 0;#var Crotaminevials 0;#var Dendroxinvials 0;#var Dulakvials 0;#var Escozulvials 0;#var Hadrudinvials 0;#var Ibululuvials 0;#var Inyokavials 0;#var Mactansvials 0;#var Mantakayavials 0;#var Mellitinvials 0;#var Morphitevials 0;#var Niricolvials 0;#var Saxitinvials 0;#var Sensovials 0;#var Tetrodinvials 0}
#ALIAS ListPotions {#say --------------------------------------------;#say Potions;#say --------------------------------------------;#say Healing Vials: @healingvials Sips: @healingsips;#say Mana Vials: @manavials Sips: @manasips;#say Bromide Vials: @bromidesvials Sips: @bromidessips;#say Allheale Vials: @allhealevials Sips: @allhealesips;#say Melancholic Vials: @melancholicvials Sips: @melancholicsips;#say Choleric Vials: @cholericvials Sips: @cholericsips;#say Phlegmatic Vials: @phlegmaticvials Sips: @phlegmaticsips;#say Reneration Vials: @regenerationvials Sips: @regenerationsips;#say Mending Vials: @mendingvials Sips: @mendingsips;#say Frost Vials: @frostvials Sips: @frostsips;#say Fire Vials: @firevials Sips: @firesips;#say Sanguine Vials: @sanguinevials Sips: @sanguinesips;#say Quicksilver Vials: @quicksilvervials Sips: @quicksilversips;#say Antidote Vials: @antidotevials Sips: @antidotesips;#say Love Vials: @Lovevials Sips: @lovesips;#say Liniment Vials: @linimentvials Sips: @linimentsips;#say Empty Vials: @emptyvials}
#ALIAS Poisonlist {#say --------------------------------------------;#say Poisons;#say --------------------------------------------;#say Aleutian Vials: @Aleutianvials Applications: @Aleutiansips;#say Anatine Vials: @Anatinevials Applications: @Anatinesips;#say Botulinum Vials: @Botulinumvials Applications: @Botulinumsips;#say Calcise Vials: @Calcisevials Applications: @Calcisesips;#say Chansu Vials: @Chansuvials Applications: @Chansusips;#say Charybdon Vials: @Charybdonvials Applications: @Charybdonsips;#say Contortrin Vials: @Contortrinvials Applications: @Contortrinsips;#say Crotamine Vials: @Crotaminevials Applications: @Crotaminesips;#say Dendroxin Vials: @Dendroxinvials Applications: @Dendroxinsips;#say Dulak Vials: @Dulakvials Applications: @Dulaksips;#say Escozul Vials: @Escozulvials Applications: @Escozulsips;#say Hadrudin Vials: @Hadrudinvials Applications: @Hadrudinsips;#say Ibululu Vials: @Ibululuvials Applications: @Ibululusips;#say Inyoka Vials: @Inyokavials Applications: @Inyokasips;#say Mactans Vials: @Mactansvials Applications: @Mactanssips;#say Mantakaya Vials: @Mantakayavials Applications: @Mantakayasips;#say Mellitin Vials: @Mellitinvials Applications: @Mellitinsips;#say Morphite Vials: @Morphitevials Applications: @Morphitesips;#say Niricol Vials: @Niricolvials Applications: @Niricolsips;#say Saxitin Vials: @Saxitinvials Applications: @Saxitinsips;#say Senso Vials: @Sensovials Applications: @Sensosips;#say Tetrodin Vials: @Tetrodinvials Applications: @Tetrodinsips;#var poisonlist 0}
#VAR poisonlist {0} {0}
#VAR healingvials {0} {0}
#VAR manavials {0} {0}
#VAR bromidesvials {0} {0}
#VAR allhealevials {0} {0}
#VAR melancholicvials {0} {0}
#VAR cholericvials {0} {0}
#VAR phlegmaticvials {0} {0}
#VAR regenerationvials {0} {0}
#VAR mendingvials {0} {0}
#VAR frostvials {0} {0}
#VAR firevials {0} {0}
#VAR sanguinevials {0} {0}
#VAR quicksilvervials {0} {0}
#VAR antidotevials {0} {0}
#VAR lovevials {0} {0}
#VAR emptyvials {0} {0}
#VAR linimentvials {0} {0}
#VAR healingsips {0} {0}
#VAR manasips {0} {0}
#VAR bromidessips {0} {0}
#VAR allhealesips {0} {0}
#VAR melancholicsips {0} {0}
#VAR cholericsips {0} {0}
#VAR phlegmaticsips {0} {0}
#VAR regenerationsips {0} {0}
#VAR mendingsips {0} {0}
#VAR frostsips {0} {0}
#VAR firesips {0} {0}
#VAR sanguinesips {0} {0}
#VAR quicksilversips {0} {0}
#VAR antidotevsips {0} {0}
#VAR lovesips {0} {0}
#VAR emptysips {0} {0}
#VAR linimentsips {0} {0}
#VAR aleutianvials {0} {0}
#VAR anatinevials {0} {0}
#VAR anerodvials {0} {0}
#VAR botulinumvials {0} {0}
#VAR calcisevials {0} {0}
#VAR chansuvials {0} {0}
#VAR charybdonvials {0} {0}
#VAR contortrinvials {0} {0}
#VAR crotaminevials {0} {0}
#VAR dendroxinvials {0} {0}
#VAR dulakvials {0} {0}
#VAR escozulvials {0} {0}
#VAR hadrudinvials {0} {0}
#VAR ibululuvials {0} {0}
#VAR inyokavials {0} {0}
#VAR mactansvials {0} {0}
#VAR mantakayavials {0} {0}
#VAR mellitinvials {0} {0}
#VAR morphitevials {0} {0}
#VAR niricolvials {0} {0}
#VAR saxitinvials {0} {0}
#VAR sensovials {0} {0}
#VAR tetrodinvials {0} {0}
#VAR aleutiansips {0} {0}
#VAR anatinesips {0} {0}
#VAR anerodsips {0} {0}
#VAR botulinumsips {0} {0}
#VAR calcisesips {0} {0}
#VAR chansusips {0} {0}
#VAR charybdonsips {0} {0}
#VAR contortrinsips {0} {0}
#VAR crotaminesips {0} {0}
#VAR dendroxinsips {0} {0}
#VAR dulaksips {0} {0}
#VAR escozulsips {0} {0}
#VAR hadrudinsips {0} {0}
#VAR ibululusips {0} {0}
#VAR inyokasips {0} {0}
#VAR mactanssips {0} {0}
#VAR mantakayasips {0} {0}
#VAR mellitinsips {0} {0}
#VAR morphitesips {0} {0}
#VAR niricolsips {0} {0}
#VAR saxitinsips {0} {0}
#VAR sensosips {0} {0}
#VAR tetrodinsips {0} {0}
#TRIGGER {Type MORE to continue reading.} {more}
#TRIGGER {Total Vials:} {ListPotions;#if (@poisonlist) {poisonlist};#t- PotionList}
#REGEX {^(\\d+)\\s*a? (\\w+) vial\\s+(\\w+) (\\w+) (\\w+)\\s+(\\d+)\\s+(\\d+)$} {#add %4vials 1;#gag;#add %4sips %6}
#REGEX {^(\\d+)\\s*a? (\\w+) vial\\s+(\\w+) (\\w+) (\\w+) (\\w+)\\s+(\\d+)\\s+(\\d+)$} {#add %6vials 1;#gag;#add %6sips %7}
#REGEX {^(\\d+)\\s*a? (\\w+) vial\\s+(\\w+)\\s+(\\d+)\\s+(\\d+)$} {#add %3vials 1;#gag;#add %3sips %4}
#REGEX {^(\\d+)\\s*a? (\\w+) vial\\s+the\\s+poison\\s+(\\w+)\\s+(\\d+)\\s+(\\d+)$} {#add %3vials 1;#gag;#add %3sips %4}
#CLASS 0
Munsia2006-01-14 02:00:47
too... spammy...
You should make it so they are side by side
Xenthos2006-01-14 02:19:53
It might wrap and look pretty ugly. I can give it a shot, or I could just make another alias to only check for poisons (would be pretty easy). Hmm...
Unknown2006-01-14 04:33:16
And Xenthos told me today that he couldn't script. Shyea, uh huh.

(Wait maybe that was Serrin)

Uh...this only works if you have that discernment skill?
Xenthos2006-01-14 04:54:02
QUOTE(PercivalEdmundChang @ Jan 14 2006, 12:33 AM)
And Xenthos told me today that he couldn't script. Shyea, uh huh.

(Wait maybe that was Serrin)

Uh...this only works if you have that discernment skill?
246335



Yeah, the discernment skill is the only way to check how much is in each vial.

Besides, I thought I told you yesterday that I could code... so it must have been Serrin today... unsure.gif
Xenthos2006-01-14 19:00:52
Okay, one more shot at it! The poison / potion list is much prettier now. smile.gif
WARNING: It will not work if you're using a font that doesn't have all characters of equal sizes, it'll look quite nasty and horrid I'm sure! I also don't know if it'll work on wrapwidth of 80. Feel free to give it a go, and let me know, I'll see if it can be touched up any more. I'll probably line up the vial numbers / sips at some point too.

It's starting to get a little big. ohmy.gif Edit: I just made it smaller by removing the "OldPoisonList" alias. It wasn't used anywhere, I just had it so I could save it if I messed up.
Edit2: Actually, it will be somewhat off depending on how many sips each has anyways, so it's not perfect. Sorry, but at least it's a little less spammy.

#ALIAS pl {#t+ PotionList;resetpotions;#send pl} "My Scripts"
#ALIAS ppl {#t+ PotionList;resetpotions;#var poisonlist 1;#send pl} "My Scripts"

#CLASS {My Scripts|PotionList}
#ALIAS ResetPotions {#var healingvials 0;#var manavials 0;#var bromidesvials 0;#var allhealevials 0;#var melancholicvials 0;#var cholericvials 0;#var phlegmaticvials 0;#var regenerationvials 0;#var mendingvials 0;#var frostvials 0;#var firevials 0;#var sanguinevials 0;#var quicksilvervials 0;#var antidotevials 0;#var lovevials 0;#var antidotevials 0;#var linimentvials 0;#var emptyvials 0;#var healingsips 0;#var manasips 0;#var bromidessips 0;#var allhealesips 0;#var melancholicsips 0;#var cholericsips 0;#var phlegmaticsips 0;#var regenerationsips 0;#var mendingsips 0;#var frostsips 0;#var firesips 0;#var sanguinesips 0;#var quicksilversips 0;#var antidotesips 0;#var lovesips 0;#var antidotesips 0;#var linimentsips 0;#var Aleutiansips 0;#var Anatinesips 0;#var Anerodsips 0;#var Botulinumsips 0;#var Calcisesips 0;#var Chansusips 0;#var Charybdonsips 0;#var Contortrinsips 0;#var Crotaminesips 0;#var Dendroxinsips 0;#var Dulaksips 0;#var Escozulsips 0;#var Hadrudinsips 0;#var Ibululusips 0;#var Inyokasips 0;#var Mactanssips 0;#var Mantakayasips 0;#var Mellitinsips 0;#var Morphitesips 0;#var Niricolsips 0;#var Saxitinsips 0;#var Sensosips 0;#var Tetrodinsips 0;#var Aleutianvials 0;#var Anatinevials 0;#var Anerodvials 0;#var Botulinumvials 0;#var Calcisevials 0;#var Chansuvials 0;#var Charybdonvials 0;#var Contortrinvials 0;#var Crotaminevials 0;#var Dendroxinvials 0;#var Dulakvials 0;#var Escozulvials 0;#var Hadrudinvials 0;#var Ibululuvials 0;#var Inyokavials 0;#var Mactansvials 0;#var Mantakayavials 0;#var Mellitinvials 0;#var Morphitevials 0;#var Niricolvials 0;#var Saxitinvials 0;#var Sensovials 0;#var Tetrodinvials 0}
#ALIAS ListPotions {#say --------------------------------------------;#say Potions;#say --------------------------------------------;#say Healing Vials: @healingvials Sips: @healingsips;#say Mana Vials: @manavials Sips: @manasips;#say Bromide Vials: @bromidesvials Sips: @bromidessips;#say Allheale Vials: @allhealevials Sips: @allhealesips;#say Melancholic Vials: @melancholicvials Sips: @melancholicsips;#say Choleric Vials: @cholericvials Sips: @cholericsips;#say Phlegmatic Vials: @phlegmaticvials Sips: @phlegmaticsips;#say Reneration Vials: @regenerationvials Sips: @regenerationsips;#say Mending Vials: @mendingvials Sips: @mendingsips;#say Frost Vials: @frostvials Sips: @frostsips;#say Fire Vials: @firevials Sips: @firesips;#say Sanguine Vials: @sanguinevials Sips: @sanguinesips;#say Quicksilver Vials: @quicksilvervials Sips: @quicksilversips;#say Antidote Vials: @antidotevials Sips: @antidotesips;#say Love Vials: @Lovevials Sips: @lovesips;#say Liniment Vials: @linimentvials Sips: @linimentsips;#say Empty Vials: @emptyvials}
#ALIAS Poisonlist {#say ---------------------------------------------------------------------;#say Potions ------------------------|Poisons;#say ---------------------------------------------------------------------;#say Healing Vials: @healingvials Sips: @healingsips -------|Aleutian Vials: @Aleutianvials Applications: @Aleutiansips;#say Mana Vials: @manavials Sips: @manasips ---------|Anatine Vials: @Anatinevials Applications: @Anatinesips;#say Bromide Vials: @bromidesvials Sips: @bromidessips ------|Botulinum Vials: @Botulinumvials Applications: @Botulinumsips;#say Allheale Vials: @allhealevials Sips: @allhealesips ----|Calcise Vials: @Calcisevials Applications: @Calcisesips;#say Melancholic Vials: @melancholicvials Sips: @melancholicsips -|Chansu Vials: @Chansuvials Applications: @Chansusips;#say Choleric Vials: @cholericvials Sips: @cholericsips ----|Charybdon Vials: @Charybdonvials Applications: @Charybdonsips;#say Phlegmatic Vials: @phlegmaticvials Sips: @phlegmaticsips --|Contortrin Vials: @Contortrinvials Applications: @Contortrinsips;#say Reneration Vials: @regenerationvials Sips: @regenerationsips --|Crotamine Vials: @Crotaminevials Applications: @Crotaminesips;#say Mending Vials: @mendingvials Sips: @mendingsips -----|Dendroxin Vials: @Dendroxinvials Applications: @Dendroxinsips;#say Frost Vials: @frostvials Sips: @frostsips -------|Dulak Vials: @Dulakvials Applications: @Dulaksips;#say Fire Vials: @firevials Sips: @firesips --------|Escozul Vials: @Escozulvials Applications: @Escozulsips;#say Sanguine Vials: @sanguinevials Sips: @sanguinesips -----|Hadrudin Vials: @Hadrudinvials Applications: @Hadrudinsips;#say Quicksilver Vials: @quicksilvervials Sips: @quicksilversips --|Ibululu Vials: @Ibululuvials Applications: @Ibululusips;#say Antidote Vials: @antidotevials Sips: @antidotesips ----|Inyoka Vials: @Inyokavials Applications: @Inyokasips;#say Love Vials: @Lovevials Sips: @lovesips --------|Mactans Vials: @Mactansvials Applications: @Mactanssips;#say Liniment Vials: @linimentvials Sips: @linimentsips ----|Mantakaya Vials: @Mantakayavials Applications: @Mantakayasips;#say Empty Vials: @emptyvials -----------------|Mellitin Vials: @Mellitinvials Applications: @Mellitinsips;#say --------------------------------|Morphite Vials: @Morphitevials Applications: @Morphitesips;#say --------------------------------|Niricol Vials: @Niricolvials Applications: @Niricolsips;#say --------------------------------|Saxitin Vials: @Saxitinvials Applications: @Saxitinsips;#say --------------------------------|Senso Vials: @Sensovials Applications: @Sensosips;#say --------------------------------|Tetrodin Vials: @Tetrodinvials Applications: @Tetrodinsips;#var poisonlist 0}
#VAR poisonlist {0} {0}
#VAR healingvials {0} {0}
#VAR manavials {0} {0}
#VAR bromidesvials {0} {0}
#VAR allhealevials {0} {0}
#VAR melancholicvials {0} {0}
#VAR cholericvials {0} {0}
#VAR phlegmaticvials {0} {0}
#VAR regenerationvials {0} {0}
#VAR mendingvials {0} {0}
#VAR frostvials {0} {0}
#VAR firevials {0} {0}
#VAR sanguinevials {0} {0}
#VAR quicksilvervials {0} {0}
#VAR antidotevials {0} {0}
#VAR lovevials {0} {0}
#VAR emptyvials {0} {0}
#VAR linimentvials {0} {0}
#VAR healingsips {0} {0}
#VAR manasips {0} {0}
#VAR bromidessips {0} {0}
#VAR allhealesips {0} {0}
#VAR melancholicsips {0} {0}
#VAR cholericsips {0} {0}
#VAR phlegmaticsips {0} {0}
#VAR regenerationsips {0} {0}
#VAR mendingsips {0} {0}
#VAR frostsips {0} {0}
#VAR firesips {0} {0}
#VAR sanguinesips {0} {0}
#VAR quicksilversips {0} {0}
#VAR antidotevsips {0} {0}
#VAR lovesips {0} {0}
#VAR emptysips {0} {0}
#VAR linimentsips {0} {0}
#VAR aleutianvials {0} {0}
#VAR anatinevials {0} {0}
#VAR anerodvials {0} {0}
#VAR botulinumvials {0} {0}
#VAR calcisevials {0} {0}
#VAR chansuvials {0} {0}
#VAR charybdonvials {0} {0}
#VAR contortrinvials {0} {0}
#VAR crotaminevials {0} {0}
#VAR dendroxinvials {0} {0}
#VAR dulakvials {0} {0}
#VAR escozulvials {0} {0}
#VAR hadrudinvials {0} {0}
#VAR ibululuvials {0} {0}
#VAR inyokavials {0} {0}
#VAR mactansvials {0} {0}
#VAR mantakayavials {0} {0}
#VAR mellitinvials {0} {0}
#VAR morphitevials {0} {0}
#VAR niricolvials {0} {0}
#VAR saxitinvials {0} {0}
#VAR sensovials {0} {0}
#VAR tetrodinvials {0} {0}
#VAR aleutiansips {0} {0}
#VAR anatinesips {0} {0}
#VAR anerodsips {0} {0}
#VAR botulinumsips {0} {0}
#VAR calcisesips {0} {0}
#VAR chansusips {0} {0}
#VAR charybdonsips {0} {0}
#VAR contortrinsips {0} {0}
#VAR crotaminesips {0} {0}
#VAR dendroxinsips {0} {0}
#VAR dulaksips {0} {0}
#VAR escozulsips {0} {0}
#VAR hadrudinsips {0} {0}
#VAR ibululusips {0} {0}
#VAR inyokasips {0} {0}
#VAR mactanssips {0} {0}
#VAR mantakayasips {0} {0}
#VAR mellitinsips {0} {0}
#VAR morphitesips {0} {0}
#VAR niricolsips {0} {0}
#VAR saxitinsips {0} {0}
#VAR sensosips {0} {0}
#VAR tetrodinsips {0} {0}
#TRIGGER {Type MORE to continue reading.} {more}
#TRIGGER {Total Vials:} {#if (@poisonlist) {poisonlist} {ListPotions};#t- PotionList}
#REGEX {^(\\d+)\\s*a? (\\w+) vial\\s+(\\w+) (\\w+) (\\w+)\\s+(\\d+)\\s+(\\d+)$} {#add %4vials 1;#gag;#add %4sips %6}
#REGEX {^(\\d+)\\s*a? (\\w+) vial\\s+(\\w+) (\\w+) (\\w+) (\\w+)\\s+(\\d+)\\s+(\\d+)$} {#add %6vials 1;#gag;#add %6sips %7}
#REGEX {^(\\d+)\\s*a? (\\w+) vial\\s+(\\w+)\\s+(\\d+)\\s+(\\d+)$} {#add %3vials 1;#gag;#add %3sips %4}
#REGEX {^(\\d+)\\s*a? (\\w+) vial\\s+the\\s+poison\\s+(\\w+)\\s+(\\d+)\\s+(\\d+)$} {#add %3vials 1;#gag;#add %3sips %4}
#CLASS 0
Munsia2006-01-15 21:41:14
None of that goes into the same class btw.
edit: okay SOME of it doesnt go into the same class like the 'more' thing