Tfcrafting

Drop this in your file, /set afrag 1 and it will condense anything that can be condensed in your satchel! the top trigger also invokes a stashlist when a fragment or essence is found.

/def -mregexp -t"   What luck!  You have found a(?:n|) ([a-z]+) ([a-z]+) of ([a-z\s]+)!" afrag = /if (afrag) %;/let quality=%P1%;/let size=%P2%;/let type=%P3%;!stashlist $[tolower({size})] of $[replace("_", " ", tolower(replace(" ", "_", {type})))]%;/endif
/def -mregexp -t"(Fragment|Essence|Heart) Of (Ascension|Blasting|Compassion|Damnation|Destruction|Knowledge|Light|Might|Rage|Rejuvenation|Shadow|Soul|The Unseen|Water|Willy)[\s]+\|[\s]+([0-9]+)[\s]+\|[\s]+([0-9]+)[\s]+\|[\s]+([0-9]+)[\s]+\|[\s]+([0-9]+)[\s]+\|[\s]+([0-9]+)[\s]+\|[\s]+([0-9]+)[\s]+\|[\s]+([0-9]+)[\s]+\|[\s]+([0-9]+)[\s]+\|" autofrag = /let size=%P1%;/let type=$[replace(" ", "_", {P2})]%;/set total%size%type=%P3%;/set legendary%size%type=%P4%;/set superior%size%type=%P5%;/set good%size%type=%P6%;/set average%size%type=%P7%;/set poor%size%type=%P8%;/set crude%size%type=%P9%;/set worthless%size%type=%P10%;/if (afrag & size !~ "Heart") /def afragtemp = /if (legendary%size%type > 4) /repeat -S 5 !unstash legendary $[tolower({size})] of $[replace("_", " ", tolower({type}))]%%;!assemble $[tolower({size})] of $[replace("_", " ", tolower({type}))]%%;!stash all%%;/endif%%;/undef afragtemp%;/afragtemp%;/def afragtemp = /if (superior%size%type > 4) /repeat -S 5 !unstash superior $[tolower({size})] of $[replace("_", " ", tolower({type}))]%%;!assemble $[tolower({size})] of $[replace("_", " ", tolower({type}))]%%;!stash all%%;/endif%%;/undef afragtemp%;/afragtemp%;/def afragtemp = /if (good%size%type > 4) /repeat -S 5 !unstash good $[tolower({size})] of $[replace("_", " ", tolower({type}))]%%;!assemble $[tolower({size})] of $[replace("_", " ", tolower({type}))]%%;!stash all%%;/endif%%;/undef afragtemp%;/afragtemp%;/def afragtemp = /if (average%size%type > 4) /repeat -S 5 !unstash average $[tolower({size})] of $[replace("_", " ", tolower({type}))]%%;!assemble $[tolower({size})] of $[replace("_", " ", tolower({type}))]%%;!stash all%%;/endif%%;/undef afragtemp%;/afragtemp%;/def afragtemp = /if (poor%size%type > 4) /repeat -S 5 !unstash poor $[tolower({size})] of $[replace("_", " ", tolower({type}))]%%;!assemble $[tolower({size})] of $[replace("_", " ", tolower({type}))]%%;!stash all%%;/endif%%;/undef afragtemp%;/afragtemp%;/def afragtemp = /if (crude%size%type > 4) /repeat -S 5 !unstash crude $[tolower({size})] of $[replace("_", " ", tolower({type}))]%%;!assemble $[tolower({size})] of $[replace("_", " ", tolower({type}))]%%;!stash all%%;/endif%%;/undef afragtemp%;/afragtemp%;/def afragtemp = /if (worthless%size%type > 4) /repeat -S 5 !unstash worthless $[tolower({size})] of $[replace("_", " ", tolower({type}))]%%;!assemble $[tolower({size})] of $[replace("_", " ", tolower({type}))]%%;!stash all%%;/endif%%;/undef afragtemp%;/afragtemp%;/endif
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License