#( "Auto shooting, butchering, recover, etc" )
#alias archer={ac+ auto-draw;ac+ auto-shoot1;ac+ auto-shoot2;recover+;butcher-}
#alias melee={ac- auto-draw;ac- auto-shoot1;ac- auto-shoot2;recover-;butcher+}
#action >-auto-shoot1 *&1 a &2>={#print;shoot}
#action >-auto-shoot2 *&1 an &2>={#print;shoot}

#( "When you run out of arrows" )
#action >-auto-draw You need a quiver and an arrow in it={#print;ac- auto-shoot1;ac- auto-shoot2;draw}
#action >+auto-aq You need a quiver and an arrow in it={#print;rr;aq}

#alias sq=search quick
#alias st=search t
#alias rq=reveal quick
#alias rt=reveal t

#alias butcher+={#($auto_butcher="1")}
#alias butcher-={#($auto_butcher="0")}
#alias recover+={#($auto_recover="1")}
#alias recover-={#($auto_recover="0")}
butcher-
recover-
#alias dodeath={#if ("${auto_recover}"=="1") rr;#if ("${auto_butcher}"=="1") bc;xpg}
#action >+auto-death1 &1 disappears into nothing={#print;dodeath}
#action >+auto-death2 &1 is dead! R.I.P.={#print;dodeath}

#( "Fast recover" )
#alias rr={lt arrow;get all.arrow;put all.arrow quiver;cp all.arrow}

#alias rebash+={#var $rebash=yes}
#alias rebash-={#var $rebash=no}
rebash-
#action >+hilight-bashed-fall &1 avoids being bashed by &2 who={#print;#print ((attr "bold white") + " _____ $2 FAILED TO BASH $1"+noattr)} 
#action >+hilight-bashed-fall-you &1 avoids your bash={#print;#print ((attr "bold white") + " _____ YOU FAILED TO BASH $1"+noattr);#if ($rebash=="yes") {#in bash-again (6000) bash}} 
#action >+hilight-bashed &1 sends &2 sprawling={#print;#print ((attr "bold white") + " ###### $2 BASHED BY $1"+noattr)}
#action >+hilight-up &1 seems to have recovered $2 senses={#print;#print ((attr "bold white") + " ------ $1 IS UP AGAIN"+noattr);#if ($rebash=="yes") bash}

#( "Butcher and looting" )
#alias bc=#if (*$(1)) butcher $1.corpse; #else butcher corpse
#alias ec=#if (*$(1)) exa $1.corpse; #else exa corpse

#alias lc={lcc $0;#if (*$(1)) #var $lcorpse=$1.corpse; #else #var $lcorpse=corpse;lc2 leather;lc2 shield;lc2 sword;lc2 dagger;lc2 stiletto;lc2 belt;lc2 mace;lc2 bow;lc2 cloak}
#alias lc2={get all.$0 ${lcorpse}}

#alias lcc={#if (*$(1)) get all.coins $1.corpse; #else get all.coins corpse;}

#alias es=#if (*$(1)) exa $1.someone; #else exa someone
#alias est=#if (*$(1)) exa $1.something; #else exa something

#( "mass looting" )
#alias lt=get all.$1 all.corpse
#alias gs=get all.$1 all.skeleton
#alias gac={lcc $0;#if (*$(1)) #var $lcorpse=$1.corpse; #else #var $lcorpse=corpse;#send ("get all " + $lcorpse)}

#( "For those damn bns, when you need to track something besides your target, use ww horse, even though you tt *man*" )
#($wtarget="")
#alias ww={#if ("$0"!="") #var $wtarget=$0;#print ("Where >>> " + $wtarget + " <<<");#send ("where " + $wtarget)}

#( "Targeted fighting, mostly useful when following a dieing mob or trying not to join the figh" )
#($ttarget="")
#alias tt={#if ("$0"!="") #var $ttarget=$0;#print ("You target >>>>> " + $ttarget + " <<<<<");#send ("label " + $ttarget  + " t")}

#( "Used after tt something, so that t is hit, for chasing fleeing smobs" )
#alias ttt={#var $ttarget=t;#print Target now t}

#alias .=$0 ${ttarget}

#alias h.=. hit
#alias k.=. kill
#alias kk=k.
#alias ba.=. bash 
#alias bb=ba.

#alias s.=. shoot
#alias b.=. b

#alias e.=. exa
#alias c.=. cons

#alias t.=. track
#alias w.=. where

#alias cbh.=cbh ${ttarget}
#alias csg.=csg ${ttarget}
#alias clb.=clb ${ttarget}
#alias ccs.=ccs ${ttarget}
#alias cfb.=cfb ${ttarget}

#alias ttorc=tt *orc*
#alias tto=ttorc
#alias ttman=tt *man*
#alias ttm=ttman
#alias tttroll=tt *troll*
#alias ttdwarf=tt *dwarf*
#alias ttelf=tt *elf*
#alias tthobbit=tt *hobbit*
#alias ttbear=tt *bear*

#alias puke=#ex <puke.conf
#alias darkie=#ex <darkie.conf

#alias ttn=#($ttarget="")

#( "When xping, label them x or y, now largely obsoleted by new assist behavior" )
#alias asx=assist x
#alias asy=assist y

#( "xxx flee aliases, e.g. bf e == e;stab $target;flee" )
#alias bf={$1;b.;flee}
#alias hf={$1;h.;flee}
#alias sf={$1;s.;flee}

#alias ko=k *orc*
#alias kt=k *troll*
#alias km=k *man*
#alias kd=k *dwarf*
#alias ke=k *elf*
#alias kh=k *hobbit*
#alias kb=k *bear*

#( "The all great 'wow my link sucks' thing" )
#action >+linkdrop WARNING: inactivity timeout={#print;sco}
