Vesar2008-02-28 23:16:31
Would it be possible to have our potion list be sorted and grouped by type of vial?
Xenthos2008-02-28 23:18:43
QUOTE(Vesar @ Feb 28 2008, 06:16 PM) 489939
Would it be possible to have our potion list be sorted and grouped by type of vial?
Or type of content, or time left to decay? (Type of vial doesn't actually seem the most useful sorting... all of my potions are in the same type of vial, actually, and sometimes when refilling empty it just goes whereever).
Shurimaru2008-02-29 19:12:30
QUOTE(Xenthos @ Feb 28 2008, 05:18 PM) 489940
Or type of content, or time left to decay? (Type of vial doesn't actually seem the most useful sorting... all of my potions are in the same type of vial, actually, and sometimes when refilling empty it just goes whereever).
^^^
QFT
Vesar2008-02-29 19:26:21
I meant type of content, not vial.
So all health vials grouped together, etc.
So all health vials grouped together, etc.
Gwylifar2008-02-29 20:47:13
PL sorted by vial type for zMUD. Copy and paste into your zMUD command line to install, then type sortpl for a PL sorted by vial type. (Mods, feel free to move this thread to Mechanic's Corner if desired.)
CODE
#CLASS {Equipment|Vials}
#ALIAS sortpl {lSortedVialTypes = "";dSortedVialLines = "";#t+ "tSortPLItem";#tr "tSortPLMore" {^Type MORE to continue reading.} {#gag;#send "more"};#temp {^Total Vials: (%d)} {#gag;#t- "tSortPLItem";#untr "tSortPLMore";lSortedVialTypes = %sort( @lSortedVialTypes);#forall @lSortedVialTypes {sVialNumber = %word( %i, 2);#show %concat( %left( %concat( @sVialNumber, %repeat( " ", 10)), 10), %db( @dSortedVialLines, @sVialNumber))};#show "*******************************************************************************";#show You have %%1 vials.};pl}
#VAR dPLVialTypes {}
#ADDKEY dPLVialTypes {a phlegmatic purgati} {phlegmatic}
#ADDKEY dPLVialTypes {a potion of allheale} {allheale}
#ADDKEY dPLVialTypes {a potion of bromides} {bromides}
#ADDKEY dPLVialTypes {a potion of fire} {fire}
#ADDKEY dPLVialTypes {a potion of frost} {frost}
#ADDKEY dPLVialTypes {a potion of healing} {healing}
#ADDKEY dPLVialTypes {a potion of mana} {mana}
#ADDKEY dPLVialTypes {a regeneration salve} {regeneration}
#ADDKEY dPLVialTypes {a sanguine purgative} {sanguine}
#ADDKEY dPLVialTypes {an antidote potion} {antidote}
#ADDKEY dPLVialTypes {empty} {empty}
#ADDKEY dPLVialTypes {liniment} {liniment}
#ADDKEY dPLVialTypes {magical salt} {salt}
#ADDKEY dPLVialTypes {magical sulfur} {sulfur}
#ADDKEY dPLVialTypes {quicksilver} {quicksilver}
#ADDKEY dPLVialTypes {elixir vitae} {vitae}
#ADDKEY dPLVialTypes {a love potion} {love}
#ADDKEY dPLVialTypes {the poison aleutian} {aleutian}
#ADDKEY dPLVialTypes {the poison anatine} {anatine}
#ADDKEY dPLVialTypes {the poison anerod} {anerod}
#ADDKEY dPLVialTypes {the poison botulinum} {botulinum}
#ADDKEY dPLVialTypes {the poison calcise} {calcise}
#ADDKEY dPLVialTypes {the poison chansu} {chansu}
#ADDKEY dPLVialTypes {the poison charybdon} {charybdon}
#ADDKEY dPLVialTypes {the poison contortrin} {contortrin}
#ADDKEY dPLVialTypes {the poison crotamine} {crotamine}
#ADDKEY dPLVialTypes {the poison dendroxin} {dendroxin}
#ADDKEY dPLVialTypes {the poison dulak} {dulak}
#ADDKEY dPLVialTypes {the poison escozul} {escozul}
#ADDKEY dPLVialTypes {the poison hadrudin} {hadrudin}
#ADDKEY dPLVialTypes {the poison ibululu} {ibululu}
#ADDKEY dPLVialTypes {the poison inyoka} {inyoka}
#ADDKEY dPLVialTypes {the poison mactans} {mactans}
#ADDKEY dPLVialTypes {the poison mantakaya} {mantakaya}
#ADDKEY dPLVialTypes {the poison mellitin} {mellitin}
#ADDKEY dPLVialTypes {the poison morphite} {morphite}
#ADDKEY dPLVialTypes {the poison niricol} {niricol}
#ADDKEY dPLVialTypes {the poison saxitin} {saxitin}
#ADDKEY dPLVialTypes {the poison senso} {senso}
#ADDKEY dPLVialTypes {the poison tetrodin} {tetrodin}
#VAR lSortedVialTypes {}
#VAR dSortedVialLines {}
#VAR sVialNumber {}
#TRIGGER "tSortPLItem" {^(%d)%s(*)$} {#gag;#addkey dSortedVialLines %1 "%2";#additem lSortedVialTypes %concat( %left( %concat( %db( @dPLVialTypes, %trim( %copy( "%2", 32, 25))), %repeat( " ", 20)), 20), " ", %1)} "" {disable}
#CLASS 0
#ALIAS sortpl {lSortedVialTypes = "";dSortedVialLines = "";#t+ "tSortPLItem";#tr "tSortPLMore" {^Type MORE to continue reading.} {#gag;#send "more"};#temp {^Total Vials: (%d)} {#gag;#t- "tSortPLItem";#untr "tSortPLMore";lSortedVialTypes = %sort( @lSortedVialTypes);#forall @lSortedVialTypes {sVialNumber = %word( %i, 2);#show %concat( %left( %concat( @sVialNumber, %repeat( " ", 10)), 10), %db( @dSortedVialLines, @sVialNumber))};#show "*******************************************************************************";#show You have %%1 vials.};pl}
#VAR dPLVialTypes {}
#ADDKEY dPLVialTypes {a phlegmatic purgati} {phlegmatic}
#ADDKEY dPLVialTypes {a potion of allheale} {allheale}
#ADDKEY dPLVialTypes {a potion of bromides} {bromides}
#ADDKEY dPLVialTypes {a potion of fire} {fire}
#ADDKEY dPLVialTypes {a potion of frost} {frost}
#ADDKEY dPLVialTypes {a potion of healing} {healing}
#ADDKEY dPLVialTypes {a potion of mana} {mana}
#ADDKEY dPLVialTypes {a regeneration salve} {regeneration}
#ADDKEY dPLVialTypes {a sanguine purgative} {sanguine}
#ADDKEY dPLVialTypes {an antidote potion} {antidote}
#ADDKEY dPLVialTypes {empty} {empty}
#ADDKEY dPLVialTypes {liniment} {liniment}
#ADDKEY dPLVialTypes {magical salt} {salt}
#ADDKEY dPLVialTypes {magical sulfur} {sulfur}
#ADDKEY dPLVialTypes {quicksilver} {quicksilver}
#ADDKEY dPLVialTypes {elixir vitae} {vitae}
#ADDKEY dPLVialTypes {a love potion} {love}
#ADDKEY dPLVialTypes {the poison aleutian} {aleutian}
#ADDKEY dPLVialTypes {the poison anatine} {anatine}
#ADDKEY dPLVialTypes {the poison anerod} {anerod}
#ADDKEY dPLVialTypes {the poison botulinum} {botulinum}
#ADDKEY dPLVialTypes {the poison calcise} {calcise}
#ADDKEY dPLVialTypes {the poison chansu} {chansu}
#ADDKEY dPLVialTypes {the poison charybdon} {charybdon}
#ADDKEY dPLVialTypes {the poison contortrin} {contortrin}
#ADDKEY dPLVialTypes {the poison crotamine} {crotamine}
#ADDKEY dPLVialTypes {the poison dendroxin} {dendroxin}
#ADDKEY dPLVialTypes {the poison dulak} {dulak}
#ADDKEY dPLVialTypes {the poison escozul} {escozul}
#ADDKEY dPLVialTypes {the poison hadrudin} {hadrudin}
#ADDKEY dPLVialTypes {the poison ibululu} {ibululu}
#ADDKEY dPLVialTypes {the poison inyoka} {inyoka}
#ADDKEY dPLVialTypes {the poison mactans} {mactans}
#ADDKEY dPLVialTypes {the poison mantakaya} {mantakaya}
#ADDKEY dPLVialTypes {the poison mellitin} {mellitin}
#ADDKEY dPLVialTypes {the poison morphite} {morphite}
#ADDKEY dPLVialTypes {the poison niricol} {niricol}
#ADDKEY dPLVialTypes {the poison saxitin} {saxitin}
#ADDKEY dPLVialTypes {the poison senso} {senso}
#ADDKEY dPLVialTypes {the poison tetrodin} {tetrodin}
#VAR lSortedVialTypes {}
#VAR dSortedVialLines {}
#VAR sVialNumber {}
#TRIGGER "tSortPLItem" {^(%d)%s(*)$} {#gag;#addkey dSortedVialLines %1 "%2";#additem lSortedVialTypes %concat( %left( %concat( %db( @dPLVialTypes, %trim( %copy( "%2", 32, 25))), %repeat( " ", 20)), 20), " ", %1)} "" {disable}
#CLASS 0
Vionne2008-03-01 01:11:52
Thanks!