Maleficia's Herbal Remedies v0.001 for TinTin

view latest version


Download Maleficia's Herbal Remedies v0.001 for TinTin

Okay so this is a gigantic druiding script I wrote which works for the most part reasonably well, it is still very much a work in progress so please treat it as such for the time being. Things may fail, I am in no way responsible if this script destroys the universe somehow.

  • Herb Inventory updated when you look in bags or via the herbcheck alias
  • Automatic Herb Gathering according to restock thresholds
  • Aliases for all amulets, brews, poultices including automatic herb selection and creation
  • Automatic retry for a few things if they fail like powder/make oil

Some explanations, each herb has two variables I will use aloe as an example:
$INVALOE is how many aloe you have in your bags
$RESTOCKALOE is how many aloe you would like to have on you at any given time, when the gathering trigger spots an aloe on the ground it will check your current inventory vs the restock threshold and if you need one, it will pick it up and automatically put it in your herb or utility bag depending on the herb type.

$FLASKTYPE is the type of flask and is determined by triggers for each flask description.
$FLASKCHARGES is set by looking in the flask, this way when you want to make a maximum healing oiled poultice the alias knows whether to empty the flask if its wrong, whether oiling twice is possible, whether more oil will be required etc. And should for the most part handle all of that automatically.

$HERBS is the variable for your main healing herbs bag
$UTILITY is the variable for your utility herbs
$OVERFLOW is the variable for when you run out of room in your main bags
$BANDAGES is the variable for your vials/bandages bag
for the herbs/utility/overflow i also have a type variable you can see in the bottom which basically sets it so that they are recognised in examines of those bags and only the appropriate herb type gets cleared for redetection.
$SINGLEBAG is a variable you can set to 1 for on, or 0 for off, just for those baby druids who just use a single bag for everything, it basically just speeds up some detection pieces and prevents weird double clears.

For monitoring herb inventory, I basically have some regex triggers to cover all of the styles of herbs (bundles, multiples, multple bundles, individual).
At the moment when you examine a bag it automatically clears your herb inventory for that type of bag, for example if my $herbs variable was a rune-covered bag it would clear all healing herb values and scan the rune-covered bag. And if my $utility variable is a DERT bag it would clear the herb inventory variables for all herbs used for brews/custom poultices/amulets etc and examine my DERT bag .
There may be some missing or overlapping values but honestly it is probably good enough.

There are a few useful aliases you should know about:

DRUIDHELP - shows a list of topics, each topics is another alias with further details and covers all the various aliases for other things
HERBCHECK - this will clear all inventory totals, re-check your bags, check your flask and bandages, will determine which curelight herb you have the most of and set it to the variable CURELIGHTHERB and the quantity of that herb to CURELIGHTCOUNT. It will also add up all of the available curelight herbs and set that to CURELIGHTTOTAL.
HERBANNOUNCE - This will give you a nice easily digestible report of your quantities

You should edit your {charactername}.tin file and add the following lines and edit according to your preferences:
#CLASS druid .\classes\druid.tin
#NOP --- DRUID VARIABLES---;
#NOP Herb Bag Types:;
#NOP 1 - rune-covered bag;
#NOP 2 - DERT bag;
#NOP 3 - otterskin pouch;
#VARIABLE {bandages} {tapestry}
#VARIABLE {herbs} {rune}
#VARIABLE {utility} {dert}
#VARIABLE {overflowherbs} {otterskin}
#VARIABLE {herbstype} {1}
#VARIABLE {utilitytype} {2}
#VARIABLE {overflowtype} {3}
#VARIABLE {singlebag} {0}