TinTin++ Autofletcher

From AvatarWiki
Revision as of 03:54, 16 November 2011 by WinterRose (talk | contribs) (tintin autofletcher)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This simplistic autofletcher script will not hold new fletching kits when it runs out, as a safety measure, but that functionality could easily be added with one simple additional trigger.

Code

Put the following into a file in your tintin++ folder and use #read <filename> while in tintin to load them up. Though you probably want them to autoload with your character.

#variable fletch 0;
#variable ftype piercing;
#variable fammo arrows;
#alias {fon}{#var fletch 1;#showme Autofletcher is on;autofletch;};
#alias {foff}{#var fletch 0;#showme Autofletcher is off;};
#alias {ftype}{#var ftype %1;Type set to %1;};
#alias {fammo}{#var fammo %1;#showme Ammo set to %1;};
#alias {finfo}{#showme Fletch set to $ftype $fammo. Change with ftype <splinter> and fammo <bolts>.;};

#alias {autofletch}{
        #if {"$fletch" == "1"} {
                fletch $fammo $ftype;
        };
        #else {#showme Autofletch is off. Doing nothing.;};
}

#action {^Your efforts produced %1 %2 %3$}{autofletch;};

Usage

Use fon and foff to toggle, ftype to set ammo style, fammo to set ammo type, and finfo to remind yourself what you were doing when you forget.