That FN Ninja
Member
hatter.ash - Tea anyone!?
Enjoying tea the mafia way.
I was admiring the usage function in bounty.ash and was inspired to write this. Also, I saw a feature request regarding this. Also, my CS1400 professor is accepting this as extra credit. Also, I love tea! Well, at least the FUZE - Black & Green Tea with Acai Berry. That stuff is addictive!
Usage:
call hatter.ash [argument]
or
hatter.ash [argument]
or
alias tea => ashq import<hatter.ash> hatter($string[%%])
Arguments:
an integer value
Visits the hatter with a hat that has the number of non-space characters specified.
current
equipped
Visits the hatter with the hat you are currently wearing.
hat
Where hat is the name of the hat to use. Visits the hatter with the hat specified.
buff
Where buff is the name of the buff to get. Uses mafias fuzzy matching.
(i.e. "pep" = "Assaulted with Pepper")
Other arguments:
ml, monster level, fe, fam exp, familiar experience, moxie, muscle, myst, mysticality, wd, weapon, weap dam, weapon damage, %spell, %spell dam, %spell damage, hp, max hp, maximum hp, mp, max mp, maximum mp, sleaze, sleaze dam, sleaze damage, spell, spell dam, spell damage, cold, cold dam, cold damage, spooky, spooky dam, spooky damage, stench, stench dam, stench damage, hot, hot dam, hot damage, %wd, %weapon, %wep dam, %weapon damage, meat, %moxie, %muscle, %myst, %mysticality, fw, fam weight, familiar weight, stats, stat, stat gain, item, items
Note: It is case insensitive. So, meat = Meat = MEAT
If you forget or need a reminder of the arguments and what they do just call the script with one of the help arguments (h, ?, help, usage) to display a table of valid arguments and what they do.
Also, the help arguments now display the hats associated with a particular buff. They are printed in blue if you own them or if they are easily obtained. They are printed in red if you have access to them but cannot equip them. Their location is also printed. This includes hats located in your closet, display, starter hats from gum on a string, NPC hats, etc. Here are a few screen shots:

Examples:
call hatter.ash 22
Gets the buff corresponding to the hat whose length (excluding white space) is 22.
hatter.ash dances
Does a fuzzy match on hat buffs to see if one matches dances and gets that buff.
hatter.ash meat
Gets the buff that will increase meat drops
To utilize this script from within another script import it and use the hatter() function:
import<hatter.ash>
hatter("meat");
or use cli_execute() like so:
cli_execute("call hatter.ash meat");
If you find this script useful, donations in the form of in-game ninja paraphernalia are always appreciated! Thanks and enjoy the script.
Change log:
05.25.2010 - Re-equips the hat you were wearing when the script was called.
05.30.2010 - The help function can now be called even if you've already got your buff for the day.
01.16.2011 - Added a can_equip() check to the hat selection logic. Thanks slyz.
06.16.2011 - Re-factored code. Eliminated global variables and maps. Changed functions to have more useful return values.
06.26.2011 - v1.4 Extend the help command to list all hats. They are printed in blue (along with their location) if you own them or if they are easily obtained.
Enjoying tea the mafia way.
I was admiring the usage function in bounty.ash and was inspired to write this. Also, I saw a feature request regarding this. Also, my CS1400 professor is accepting this as extra credit. Also, I love tea! Well, at least the FUZE - Black & Green Tea with Acai Berry. That stuff is addictive!

Usage:
call hatter.ash [argument]
or
hatter.ash [argument]
or
alias tea => ashq import<hatter.ash> hatter($string[%%])
Arguments:
an integer value
Visits the hatter with a hat that has the number of non-space characters specified.
current
equipped
Visits the hatter with the hat you are currently wearing.
hat
Where hat is the name of the hat to use. Visits the hatter with the hat specified.
buff
Where buff is the name of the buff to get. Uses mafias fuzzy matching.
(i.e. "pep" = "Assaulted with Pepper")
Other arguments:
ml, monster level, fe, fam exp, familiar experience, moxie, muscle, myst, mysticality, wd, weapon, weap dam, weapon damage, %spell, %spell dam, %spell damage, hp, max hp, maximum hp, mp, max mp, maximum mp, sleaze, sleaze dam, sleaze damage, spell, spell dam, spell damage, cold, cold dam, cold damage, spooky, spooky dam, spooky damage, stench, stench dam, stench damage, hot, hot dam, hot damage, %wd, %weapon, %wep dam, %weapon damage, meat, %moxie, %muscle, %myst, %mysticality, fw, fam weight, familiar weight, stats, stat, stat gain, item, items
Note: It is case insensitive. So, meat = Meat = MEAT
If you forget or need a reminder of the arguments and what they do just call the script with one of the help arguments (h, ?, help, usage) to display a table of valid arguments and what they do.
Also, the help arguments now display the hats associated with a particular buff. They are printed in blue if you own them or if they are easily obtained. They are printed in red if you have access to them but cannot equip them. Their location is also printed. This includes hats located in your closet, display, starter hats from gum on a string, NPC hats, etc. Here are a few screen shots:


Examples:
call hatter.ash 22
Gets the buff corresponding to the hat whose length (excluding white space) is 22.
hatter.ash dances
Does a fuzzy match on hat buffs to see if one matches dances and gets that buff.
hatter.ash meat
Gets the buff that will increase meat drops
To utilize this script from within another script import it and use the hatter() function:
import<hatter.ash>
hatter("meat");
or use cli_execute() like so:
cli_execute("call hatter.ash meat");
If you find this script useful, donations in the form of in-game ninja paraphernalia are always appreciated! Thanks and enjoy the script.
Change log:
05.25.2010 - Re-equips the hat you were wearing when the script was called.
05.30.2010 - The help function can now be called even if you've already got your buff for the day.
01.16.2011 - Added a can_equip() check to the hat selection logic. Thanks slyz.
06.16.2011 - Re-factored code. Eliminated global variables and maps. Changed functions to have more useful return values.
06.26.2011 - v1.4 Extend the help command to list all hats. They are printed in blue (along with their location) if you own them or if they are easily obtained.
Attachments
Last edited: