Huntbuddy (script)

From Elanthipedia
Jump to: navigation, search
Huntbuddy (script)
Category combat
Front-end StormFront
Author Mendaleev


Contents

General Information

Script designed to support another character while hunting in DragonRealms.

Front end: Stormfront

Recommended name: huntbuddy

Usage:  .huntbuddy [help|menu|start <name>]

    Where:
               start <name> = basic usage; <name> is hunting partner's name
                       help = help
                       menu = main menu

Change Log

Version 1.2 April 20, 2010
Updated to new exp mind levels

To Do

1.  Add empath options.

The Script

TOP:
# ____________________________________________________________
# Huntbuddy version 1.2
# by Mendaleev         last update: April 20, 2010, 22:00 hours
#
# Script designed to support another character while hunting in DragonRealms
#
# StormFront compatible (written in SF v1.0.1.22)
#
# normal run syntax: .huntbuddy start <name>
#                    .huntbuddy help
#                    .huntbuddy menu
# ____________________________________________________________
# Do not use AFK or in violation of any policy.
# You are responsible for everything; I am responsible for nothing.
# As allowed, permission is provided for you to use, modify, or basically 
# do what you want with it.
# 
# Needs:
# 1. Empath heal/options
# ____________________________________________________________


SCRIPT_RUN_TESTS:

FIRST_RUN_TEST:
	pause .5
	match SCRIPT_HAS_RUN_BEFORE flag itsran
	match SCRIPT_HAS_NOT_RUN_BEFORE not a valid flag
	match FIRST_RUN_TEST ...wait
	match FIRST_RUN_TEST You may only type ahead
	put set %huntbuddy_firstruntest
	matchwait

SCRIPT_HAS_NOT_RUN_BEFORE:
	goto FIRST_RUN_POPUP

SCRIPT_HAS_RUN_BEFORE:
	goto SCRIPT_RUN_TESTS_END

SCRIPT_RUN_TESTS_END:

TOPSTART:
	IF_1 goto COMMANDLINE_JUMP
	goto ERROR_WRONGUSAGE

#############################################################################
###########################    MAIN SCRIPT SECTION    #######################
#############################################################################
	
HUNT_START:

HUNT_START_RETREAT:
	setvariable subreturnflagretreat HUNT_START_RETREAT
	goto SUB_RETREAT
SUBRETURN_HUNT_START_RETREAT:

#echo *** Initializing script run variables - START

#______________________________________________________________________________pause variables
# The following pause variables can be changed to modify the speed of the script.

	setvariable matchwaitpause .3
	setvariable branchtestpause .3
	setvariable rtcheckpause .3
	setvariable naked_put_pause .3
	setvariable retreatpause .7
	setvariable aftercastrtpause 1


#______________________________________________________________________________flags/variables
# The following flags/variables can be changed to suit your needs

	setvariable mofesmana 5
	setvariable mofespause 1

#______________________________________________________________________________flags/variables do not change below
# Do not change the following flags/variables

	setvariable flagndchands FULL
	setvariable flagmindstate AWAKE
	setvariable flagndcpyramidfirstlook YES
	setvariable flagndcpyramidstartedempty YES
	setvariable ndcpyramidloopnum 1
	setvariable flagorigamifail NO
	setvariable flagarmworndone NOTDONE

#______________________________________________________________________________message array
# stow/put hits
	setvariable stowH1 You stow
	setvariable stowH2 You put
	setvariable stowH3 You pick up
	setvariable hitstow %stowH1%|%stowH2%|%stowH3%
# stow/put fails
	setvariable stowF1 Stow what
	setvariable stowF2 What were you referring to
	setvariable stowF3 But that is already in your inventory
	setvariable stowF4 Perhaps you should be holding that first
	setvariable stowF5 There isn't any more room
	setvariable stowF6 You just can't get
	setvariable stowF7 You can't fit anything else 
	setvariable stowF8 That's too heavy to go in there
	setvariable stowF9 The (.*) too long
	setvariable stowF10 The (.*) too wide
	setvariable stowF11 The (.*) too unwieldy
	setvariable stowF12 The (.*) to fit
	setvariable stowF13 But that's closed
	setvariable stowF14 I can't find your container for stowing things in
#	setvariable stowF15 You need a free hand to pick that up

# note that {What were you referring to} is a bad call for both item and container

	setvariable failstowcall %stowF1%|%stowF2%|%stowF3%|%stowF4%
	setvariable failstowfull %stowF5%|%stowF6%|%stowF7%
	setvariable failstowsize %stowF8%|%stowF9%|%stowF10%|%stowF11%|%stowF12%
	setvariable errorstow %stowF13%|%stowF14%

#-------------------------------------------------------------------------------
# combat fails
	setvariable combatF1 You are still stunned
	setvariable combatF2 You don't feel
	setvariable combatF3 Strangely
	setvariable combatF4 You are stun
	setvariable combatF5 You(.*) mesmerize
	setvariable combatF6 You(.*) calm
	setvariable combatF7 You(.*) peace
	setvariable combatF8 You can't do that while entangled
	setvariable combatF9 You're stunned
setvariable failcombat %combatF1%|%combatF2%|%combatF3%|%combatF4%|%combatF5%|%combatF6%|%combatF7%|%combatF8%|%combatF9%
#-------------------------------------------------------------------------------
# wear hits
	setvariable wearH1 You put
	setvariable wearH2 You work
	setvariable wearH3 You slip
	setvariable wearH4 You slide
	setvariable wearH5 You attach
	setvariable wearH6 You sling
	setvariable wearH7 You tie
	setvariable wearH8 You drape
	setvariable wearH9 you hang
	setvariable hitwear %wearH1%|%wearH2%|%wearH3%|%wearH4%|%wearH5%|%wearH6%|%wearH7%|%wearH8%|%wearH9%
# wear fails
	setvariable wearF1 Wear what
	setvariable wearF2 You can't wear
	setvariable wearF3 Shouldn't you be holding that first
	setvariable wearF4 You are already wearing that
	setvariable wearF5 T(.*) can't fit
	setvariable wearF6 A(.*) can't fit
#You should unload  You need to unload
	setvariable failwear %wearF1%|%wearF2%|%wearF3%|%wearF4%|%wearF5%|%wearF6%
#-------------------------------------------------------------------------------
# remove hits (note You loosen for an armshield is not included)
	setvariable remH1 You take
	setvariable remH2 You work
	setvariable remH3 You pull
	setvariable remH4 You remove
	setvariable remH5 You sling
	setvariable remH6 You detach
	setvariable remH7 You untie
	setvariable remH8 you draw
	setvariable remH9 You slip
	setvariable hitremove %remH1%|%remH2%|%remH3%|%remH4%|%remH5%|%remH6%|%remH7%|%remH8%|%remH9%
# remove fails
	setvariable remF1 Remove what
	setvariable remF2 You aren't wearing that
#	setvariable remF3 You must have one hand free
	setvariable failremove %remF1%|%remF2%
#-------------------------------------------------------------------------------
# get hits
	setvariable getH1 You get
	setvariable getH2 You pick up
	setvariable hitget %getH1%|%getH2%
# get fails
	setvariable getF1 What were you referring to
	setvariable getF2 But that is already in your inventory
	setvariable failget %getF1%|%getF2%
#You are already holding that
#-------------------------------------------------------------------------------
# wield hits
	setvariable wieldH1 You draw
	setvariable wieldH2 You slip
	setvariable wieldH3 You untie
	setvariable hitwield %wieldH1%|%wieldH2%|%wieldH3%
# sheathe hits
	setvariable sheatheH1 You sheathe
	setvariable sheatheH2 You slip
	setvariable sheatheH3 You tie
	setvariable sheatheH4 You put
	setvariable sheatheH5 You hang
	setvariable hitsheathe %sheatheH1%|%sheatheH2%|%sheatheH3%|%sheatheH4%|%sheatheH5%
#-------------------------------------------------------------------------------
#ndc fails
#	setvariable ndcF1 You cannot
#	setvariable ndcF2 You can't
#	setvariable ndcF3 It's too difficult to fold anything while fighting
#	setvariable failndc %ndcF1%|%ndcF2%|%ndcF3%

#echo *** Initializing script run variables - COMPLETED

	put awake
	pause .3


#############################################################################
###########################    PRECOMBAT SECTION    #########################
#############################################################################

#_______________________________________________________________________remove all arms
PRECOMBAT_REMOVE_ARMS_START:

PRECOMBAT_REMOVE_ARMS_RETREAT:
	setvariable subreturnflagretreat PRECOMBAT_REMOVE_ARMS_RETREAT
	goto SUB_RETREAT
SUBRETURN_PRECOMBAT_REMOVE_ARMS_RETREAT:

PRECOMBAT_REMOVE_ARMS_GO:
	setvariable subreturnflagremoveallarms PRECOMBAT_REMOVE_ARMS_GO
	goto SUB_REMOVE_ALL_ARMS
SUBRETURN_PRECOMBAT_REMOVE_ARMS_GO:

PRECOMBAT_REMOVE_ARMS_END:

#_______________________________________________________________________equip arms
PRECOMBAT_EQUIP_ARMS_START:

PRECOMBAT_EQUIP_ARMS_GO:
	setvariable subreturnflagequiparms PRECOMBAT_EQUIP_ARMS_GO
	goto SUB_EQUIP_ARMS
SUBRETURN_PRECOMBAT_EQUIP_ARMS_GO:

PRECOMBAT_EQUIP_ARMS_END:


#############################################################################
###########################    MAIN START SECTION    ########################
#############################################################################

#_______________________________________________________________________Main Start
MAIN_START:

	goto MINDSTATE_START
MINDSTATE_RETURN:

#_______________________________________________________________________Actions
	goto FISSURE
FISSURE_RETURN:

	goto MOF
MOF_RETURN:


#_______________________________________________________________________Actions BUFF
MAIN_START_BUFF_MASTER_TEST:
		goto MAIN_START_BUFF_MASTER_TEST_%huntbuddy_buff_master_test
	MAIN_START_BUFF_MASTER_TEST_ON:
		goto MAIN_START_BUFF_MANA_CHECK
	MAIN_START_BUFF_MASTER_TEST_OFF:
		goto MAIN_START_BUFF_END

MAIN_START_BUFF_MANA_CHECK:
	pause %matchwaitpause
	match MAIN_START_BUFF_START complete attunement
	match MAIN_START_BUFF_START fully attuned
	match MAIN_START_BUFF_END MANA HELP
	match MAIN_START_BUFF_MANA_CHECK ...wait
	match MAIN_START_BUFF_MANA_CHECK You may only type ahead
	put mana
	matchwait

MAIN_START_BUFF_START:

	goto BUFF_PARTNER_START
BUFF_PARTNER_RETURN:

	goto BUFF_START
BUFF_SELF_RETURN:

MAIN_START_BUFF_END:


#_______________________________________________________________________Actions ENCHANTE
	goto SING_START
SING_RETURN:

	goto CHANT_START
CHANT_RETURN:


#_______________________________________________________________________Actions HIDE
MAIN_START_HIDE_TEST:
		goto MAIN_START_HIDE_TEST_%huntbuddy_hide_test
	MAIN_START_HIDE_TEST_ON:
		goto MAIN_START_HIDE_GO
	MAIN_START_HIDE_TEST_OFF:
		goto MAIN_START_HIDE_END

MAIN_START_HIDE_GO:
	setvariable subreturnflaghide MAIN_START_HIDE_GO
	goto SUB_HIDE
SUBRETURN_MAIN_START_HIDE_GO:


MAIN_START_HIDE_END:

#_______________________________________________________________________Actions OTHER

	goto NDC_ACTIONS
NDC_ACTIONS_RETURN:




MAIN_START_END_RELOOP:
	goto MAIN_START


#############################################################################
###########################    MIND STATE SECTION    ########################
#############################################################################

#_______________________________________________________________________check mind state
MINDSTATE_START:

MINDSTATE_TEST:
		goto MINDSTATE_TEST_%huntbuddy_mindstate_test
	MINDSTATE_TEST_ON:
		goto MINDSTATE_TEST_GO
	MINDSTATE_TEST_OFF:
		goto MINDSTATE_END

MINDSTATE_TEST_GO:
	pause %matchwaitpause
	match MINDSTATE_AWAKE EXP HELP
	match MINDSTATE_AWAKE Overall state of mind: Clear
	match MINDSTATE_AWAKE Overall state of mind: Fluid
	match MINDSTATE_SLEEP Overall state of mind: Murky
	match MINDSTATE_SLEEP Overall state of mind: Very Murky
	match MINDSTATE_SLEEP Overall state of mind: Thick
	match MINDSTATE_SLEEP Overall state of mind: Very Thick
	match MINDSTATE_SLEEP Overall state of mind: Dense
	match MINDSTATE_SLEEP Overall state of mind: Very Dense
	match MINDSTATE_SLEEP Overall state of mind: Stagnant
	match MINDSTATE_SLEEP Overall state of mind: Very Stagnant
	match MINDSTATE_SLEEP Overall state of mind: Frozen
	match MINDSTATE_SLEEP Overall state of mind: Very Frozen
#	matchre STRANGE /%failcombat%/i
#	match DEAD_CHARACTER You are a ghost
	match MINDSTATE_TEST_GO ...wait
	match MINDSTATE_TEST_GO You may only type ahead
	put exp
	matchwait

MINDSTATE_AWAKE:
		goto MINDSTATE_AWAKE_%flagmindstate
	MINDSTATE_AWAKE_AWAKE:
		goto MINDSTATE_END
	MINDSTATE_AWAKE_ASLEEP:
		setvariable flagmindstate AWAKE
		echo
		echo *** Awaking Mind
		echo	
	MINDSTATE_AWAKE_AWAKE:
		setvariable subreturnflagnp MINDSTATE_AWAKE_AWAKE
		setvariable nakedput awake
		goto SUB_NAKED_PUT
	SUBRETURN_MINDSTATE_AWAKE_AWAKE:
		goto MINDSTATE_END

MINDSTATE_SLEEP:
		goto MINDSTATE_SLEEP_%flagmindstate
	MINDSTATE_SLEEP_ASLEEP:
		goto MINDSTATE_END
	MINDSTATE_SLEEP_AWAKE:
		setvariable flagmindstate ASLEEP
		echo
		echo *** Sleeping Mind
		echo
	MINDSTATE_SLEEP_SLEEP:
		setvariable subreturnflagnp MINDSTATE_SLEEP_SLEEP
		setvariable nakedput sleep
		goto SUB_NAKED_PUT
	SUBRETURN_MINDSTATE_SLEEP_SLEEP:
		goto MINDSTATE_END

MINDSTATE_END:
	goto MINDSTATE_RETURN


#############################################################################
###########################    BUFF SECTION    ##############################
#############################################################################

#_______________________________________________________________________Cast Buff spells on self
BUFF_START:

BUFF_MASTER_TEST:
		goto BUFF_MASTER_TEST_%huntbuddy_buff_master_test
	BUFF_MASTER_TEST_ON:
		goto BUFF_SELF_TEST
	BUFF_MASTER_TEST_OFF:
		goto BUFF_END

BUFF_SELF_TEST:
		goto BUFF_SELF_TEST_%huntbuddy_buff_self_test
	BUFF_SELF_TEST_ON:
		goto BUFF_GO
	BUFF_SELF_TEST_OFF:
		goto BUFF_END

BUFF_GO:

BUFF_HUM_STOP:
	setvariable subreturnflaghumstop BUFF_HUM_STOP
	goto SUB_HUM_STOP
SUBRETURN_BUFF_HUM_STOP:

#-------------------------------------------------------------
BUFF_TEST_1:
		goto BUFF_TEST_1_%huntbuddy_buff_test_1
	BUFF_TEST_1_ON:
		goto BUFF_GO_1
	BUFF_TEST_1_OFF:
		goto BUFF_TEST_2

BUFF_GO_1:

BUFF_RETREAT_TEST_1:
		goto BUFF_RETREAT_TEST_1_%huntbuddy_buff_retreat_test
	BUFF_RETREAT_TEST_1_ON:
		goto BUFF_RETREAT_1
	BUFF_RETREAT_TEST_1_OFF:
		goto SUBRETURN_BUFF_RETREAT_1
BUFF_RETREAT_1:
	setvariable subreturnflagretreat BUFF_RETREAT_1
	goto SUB_RETREAT
SUBRETURN_BUFF_RETREAT_1:

	setvariable spell_name %huntbuddy_buff_name_1
	setvariable spell_prep_power %huntbuddy_buff_prep_power_1
	setvariable spell_harn_test %huntbuddy_buff_harn_test_1
	setvariable spell_harn_power %huntbuddy_buff_harn_power_1
	setvariable spell_harn_loop %huntbuddy_buff_harn_loop_1
	setvariable spell_cam_test %huntbuddy_buff_cam_test_1
	setvariable spell_cam_power %huntbuddy_buff_cam_power_1
	setvariable spell_cam_loop %huntbuddy_buff_cam_loop_1
	setvariable spell_cast_pause %huntbuddy_buff_cast_pause_1
	setvariable spell_targeted_test OFF

BUFF_SPELL_PREP_1:
	setvariable subreturnflag BUFF_SPELL_PREP_1
	goto SUB_SPELL_PREP
SUBRETURN_BUFF_SPELL_PREP_1:

	echo
	echo *** Casting: %huntbuddy_buff_name_1 on self
	echo

BUFF_SPELL_CAST_1:
	pause %matchwaitpause
	match BUFF_SPELL_CAST_1 ...wait
	match BUFF_SPELL_CAST_1 You may only type ahead
	matchre BUFF_SPELL_CAST_1_PAUSE /.*/i
	put cast
	matchwait

BUFF_SPELL_CAST_1_PAUSE:
	pause %aftercastrtpause

RTCHECK_BUFF_SPELL_CAST_1:
	pause %rtcheckpause
	match RTCHECK_BUFF_SPELL_CAST_1_READY What were you referring to
	match RTCHECK_BUFF_SPELL_CAST_1 ...wait
	match RTCHECK_BUFF_SPELL_CAST_1 You may only type ahead
	put get my rtchecking
	matchwait
RTCHECK_BUFF_SPELL_CAST_1_READY:

BUFF_RELEASE_1:
	pause %matchwaitpause
	match BUFF_RELEASE_1 ...wait
	match BUFF_RELEASE_1 You may only type ahead
	matchre BUFF_END_1 /.*/i
	put release
	matchwait

BUFF_END_1:
	goto BUFF_TEST_2

#-------------------------------------------------------------
BUFF_TEST_2:
		goto BUFF_TEST_2_%huntbuddy_buff_test_2
	BUFF_TEST_2_ON:
		goto BUFF_GO_2
	BUFF_TEST_2_OFF:
		goto BUFF_TEST_3

BUFF_GO_2:

BUFF_RETREAT_TEST_2:
		goto BUFF_RETREAT_TEST_2_%huntbuddy_buff_retreat_test
	BUFF_RETREAT_TEST_2_ON:
		goto BUFF_RETREAT_2
	BUFF_RETREAT_TEST_2_OFF:
		goto SUBRETURN_BUFF_RETREAT_2
BUFF_RETREAT_2:
	setvariable subreturnflagretreat BUFF_RETREAT_2
	goto SUB_RETREAT
SUBRETURN_BUFF_RETREAT_2:

	setvariable spell_name %huntbuddy_buff_name_2
	setvariable spell_prep_power %huntbuddy_buff_prep_power_2
	setvariable spell_harn_test %huntbuddy_buff_harn_test_2
	setvariable spell_harn_power %huntbuddy_buff_harn_power_2
	setvariable spell_harn_loop %huntbuddy_buff_harn_loop_2
	setvariable spell_cam_test %huntbuddy_buff_cam_test_2
	setvariable spell_cam_power %huntbuddy_buff_cam_power_2
	setvariable spell_cam_loop %huntbuddy_buff_cam_loop_2
	setvariable spell_cast_pause %huntbuddy_buff_cast_pause_2
	setvariable spell_targeted_test OFF

BUFF_SPELL_PREP_2:
	setvariable subreturnflag BUFF_SPELL_PREP_2
	goto SUB_SPELL_PREP
SUBRETURN_BUFF_SPELL_PREP_2:

	echo
	echo *** Casting: %huntbuddy_buff_name_2 on self
	echo

BUFF_SPELL_CAST_2:
	pause %matchwaitpause
	match BUFF_SPELL_CAST_2 ...wait
	match BUFF_SPELL_CAST_2 You may only type ahead
	matchre BUFF_SPELL_CAST_2_PAUSE /.*/i
	put cast
	matchwait

BUFF_SPELL_CAST_2_PAUSE:
	pause %aftercastrtpause

RTCHECK_BUFF_SPELL_CAST_2:
	pause %rtcheckpause
	match RTCHECK_BUFF_SPELL_CAST_2_READY What were you referring to
	match RTCHECK_BUFF_SPELL_CAST_2 ...wait
	match RTCHECK_BUFF_SPELL_CAST_2 You may only type ahead
	put get my rtchecking
	matchwait
RTCHECK_BUFF_SPELL_CAST_2_READY:

BUFF_RELEASE_2:
	pause %matchwaitpause
	match BUFF_RELEASE_2 ...wait
	match BUFF_RELEASE_2 You may only type ahead
	matchre BUFF_END_2 /.*/i
	put release
	matchwait

BUFF_END_2:
	goto BUFF_TEST_3

#-------------------------------------------------------------
BUFF_TEST_3:
		goto BUFF_TEST_3_%huntbuddy_buff_test_3
	BUFF_TEST_3_ON:
		goto BUFF_GO_3
	BUFF_TEST_3_OFF:
		goto BUFF_TEST_4

BUFF_GO_3:

BUFF_RETREAT_TEST_3:
		goto BUFF_RETREAT_TEST_3_%huntbuddy_buff_retreat_test
	BUFF_RETREAT_TEST_3_ON:
		goto BUFF_RETREAT_3
	BUFF_RETREAT_TEST_3_OFF:
		goto SUBRETURN_BUFF_RETREAT_3
BUFF_RETREAT_3:
	setvariable subreturnflagretreat BUFF_RETREAT_3
	goto SUB_RETREAT
SUBRETURN_BUFF_RETREAT_3:

	setvariable spell_name %huntbuddy_buff_name_3
	setvariable spell_prep_power %huntbuddy_buff_prep_power_3
	setvariable spell_harn_test %huntbuddy_buff_harn_test_3
	setvariable spell_harn_power %huntbuddy_buff_harn_power_3
	setvariable spell_harn_loop %huntbuddy_buff_harn_loop_3
	setvariable spell_cam_test %huntbuddy_buff_cam_test_3
	setvariable spell_cam_power %huntbuddy_buff_cam_power_3
	setvariable spell_cam_loop %huntbuddy_buff_cam_loop_3
	setvariable spell_cast_pause %huntbuddy_buff_cast_pause_3
	setvariable spell_targeted_test OFF

BUFF_SPELL_PREP_3:
	setvariable subreturnflag BUFF_SPELL_PREP_3
	goto SUB_SPELL_PREP
SUBRETURN_BUFF_SPELL_PREP_3:

	echo
	echo *** Casting: %huntbuddy_buff_name_3 on self
	echo

BUFF_SPELL_CAST_3:
	pause %matchwaitpause
	match BUFF_SPELL_CAST_3 ...wait
	match BUFF_SPELL_CAST_3 You may only type ahead
	matchre BUFF_SPELL_CAST_3_PAUSE /.*/i
	put cast
	matchwait

BUFF_SPELL_CAST_3_PAUSE:
	pause %aftercastrtpause

RTCHECK_BUFF_SPELL_CAST_3:
	pause %rtcheckpause
	match RTCHECK_BUFF_SPELL_CAST_3_READY What were you referring to
	match RTCHECK_BUFF_SPELL_CAST_3 ...wait
	match RTCHECK_BUFF_SPELL_CAST_3 You may only type ahead
	put get my rtchecking
	matchwait
RTCHECK_BUFF_SPELL_CAST_3_READY:

BUFF_RELEASE_3:
	pause %matchwaitpause
	match BUFF_RELEASE_3 ...wait
	match BUFF_RELEASE_3 You may only type ahead
	matchre BUFF_END_3 /.*/i
	put release
	matchwait

BUFF_END_3:
	goto BUFF_TEST_4

#-------------------------------------------------------------
BUFF_TEST_4:
		goto BUFF_TEST_4_%huntbuddy_buff_test_4
	BUFF_TEST_4_ON:
		goto BUFF_GO_4
	BUFF_TEST_4_OFF:
		goto BUFF_TEST_5

BUFF_GO_4:

BUFF_RETREAT_TEST_4:
		goto BUFF_RETREAT_TEST_4_%huntbuddy_buff_retreat_test
	BUFF_RETREAT_TEST_4_ON:
		goto BUFF_RETREAT_4
	BUFF_RETREAT_TEST_4_OFF:
		goto SUBRETURN_BUFF_RETREAT_4
BUFF_RETREAT_4:
	setvariable subreturnflagretreat BUFF_RETREAT_4
	goto SUB_RETREAT
SUBRETURN_BUFF_RETREAT_4:

	setvariable spell_name %huntbuddy_buff_name_4
	setvariable spell_prep_power %huntbuddy_buff_prep_power_4
	setvariable spell_harn_test %huntbuddy_buff_harn_test_4
	setvariable spell_harn_power %huntbuddy_buff_harn_power_4
	setvariable spell_harn_loop %huntbuddy_buff_harn_loop_4
	setvariable spell_cam_test %huntbuddy_buff_cam_test_4
	setvariable spell_cam_power %huntbuddy_buff_cam_power_4
	setvariable spell_cam_loop %huntbuddy_buff_cam_loop_4
	setvariable spell_cast_pause %huntbuddy_buff_cast_pause_4
	setvariable spell_targeted_test OFF

BUFF_SPELL_PREP_4:
	setvariable subreturnflag BUFF_SPELL_PREP_4
	goto SUB_SPELL_PREP
SUBRETURN_BUFF_SPELL_PREP_4:

	echo
	echo *** Casting: %huntbuddy_buff_name_4 on self
	echo

BUFF_SPELL_CAST_4:
	pause %matchwaitpause
	match BUFF_SPELL_CAST_4 ...wait
	match BUFF_SPELL_CAST_4 You may only type ahead
	matchre BUFF_SPELL_CAST_4_PAUSE /.*/i
	put cast
	matchwait

BUFF_SPELL_CAST_4_PAUSE:
	pause %aftercastrtpause

RTCHECK_BUFF_SPELL_CAST_4:
	pause %rtcheckpause
	match RTCHECK_BUFF_SPELL_CAST_4_READY What were you referring to
	match RTCHECK_BUFF_SPELL_CAST_4 ...wait
	match RTCHECK_BUFF_SPELL_CAST_4 You may only type ahead
	put get my rtchecking
	matchwait
RTCHECK_BUFF_SPELL_CAST_4_READY:

BUFF_RELEASE_4:
	pause %matchwaitpause
	match BUFF_RELEASE_4 ...wait
	match BUFF_RELEASE_4 You may only type ahead
	matchre BUFF_END_4 /.*/i
	put release
	matchwait

BUFF_END_4:
	goto BUFF_TEST_5

#-------------------------------------------------------------
BUFF_TEST_5:
		goto BUFF_TEST_5_%huntbuddy_buff_test_5
	BUFF_TEST_5_ON:
		goto BUFF_GO_5
	BUFF_TEST_5_OFF:
		goto BUFF_TEST_6

BUFF_GO_5:

BUFF_RETREAT_TEST_5:
		goto BUFF_RETREAT_TEST_5_%huntbuddy_buff_retreat_test
	BUFF_RETREAT_TEST_5_ON:
		goto BUFF_RETREAT_5
	BUFF_RETREAT_TEST_5_OFF:
		goto SUBRETURN_BUFF_RETREAT_5
BUFF_RETREAT_5:
	setvariable subreturnflagretreat BUFF_RETREAT_5
	goto SUB_RETREAT
SUBRETURN_BUFF_RETREAT_5:

	setvariable spell_name %huntbuddy_buff_name_5
	setvariable spell_prep_power %huntbuddy_buff_prep_power_5
	setvariable spell_harn_test %huntbuddy_buff_harn_test_5
	setvariable spell_harn_power %huntbuddy_buff_harn_power_5
	setvariable spell_harn_loop %huntbuddy_buff_harn_loop_5
	setvariable spell_cam_test %huntbuddy_buff_cam_test_5
	setvariable spell_cam_power %huntbuddy_buff_cam_power_5
	setvariable spell_cam_loop %huntbuddy_buff_cam_loop_5
	setvariable spell_cast_pause %huntbuddy_buff_cast_pause_5
	setvariable spell_targeted_test OFF

BUFF_SPELL_PREP_5:
	setvariable subreturnflag BUFF_SPELL_PREP_5
	goto SUB_SPELL_PREP
SUBRETURN_BUFF_SPELL_PREP_5:

	echo
	echo *** Casting: %huntbuddy_buff_name_5 on self
	echo

BUFF_SPELL_CAST_5:
	pause %matchwaitpause
	match BUFF_SPELL_CAST_5 ...wait
	match BUFF_SPELL_CAST_5 You may only type ahead
	matchre BUFF_SPELL_CAST_5_PAUSE /.*/i
	put cast
	matchwait

BUFF_SPELL_CAST_5_PAUSE:
	pause %aftercastrtpause

RTCHECK_BUFF_SPELL_CAST_5:
	pause %rtcheckpause
	match RTCHECK_BUFF_SPELL_CAST_5_READY What were you referring to
	match RTCHECK_BUFF_SPELL_CAST_5 ...wait
	match RTCHECK_BUFF_SPELL_CAST_5 You may only type ahead
	put get my rtchecking
	matchwait
RTCHECK_BUFF_SPELL_CAST_5_READY:

BUFF_RELEASE_5:
	pause %matchwaitpause
	match BUFF_RELEASE_5 ...wait
	match BUFF_RELEASE_5 You may only type ahead
	matchre BUFF_END_5 /.*/i
	put release
	matchwait

BUFF_END_5:
	goto BUFF_TEST_6

#-------------------------------------------------------------
BUFF_TEST_6:
		goto BUFF_TEST_6_%huntbuddy_buff_test_6
	BUFF_TEST_6_ON:
		goto BUFF_GO_6
	BUFF_TEST_6_OFF:
		goto BUFF_END

BUFF_GO_6:

BUFF_RETREAT_TEST_6:
		goto BUFF_RETREAT_TEST_6_%huntbuddy_buff_retreat_test
	BUFF_RETREAT_TEST_6_ON:
		goto BUFF_RETREAT_6
	BUFF_RETREAT_TEST_6_OFF:
		goto SUBRETURN_BUFF_RETREAT_6
BUFF_RETREAT_6:
	setvariable subreturnflagretreat BUFF_RETREAT_6
	goto SUB_RETREAT
SUBRETURN_BUFF_RETREAT_6:

	setvariable spell_name %huntbuddy_buff_name_6
	setvariable spell_prep_power %huntbuddy_buff_prep_power_6
	setvariable spell_harn_test %huntbuddy_buff_harn_test_6
	setvariable spell_harn_power %huntbuddy_buff_harn_power_6
	setvariable spell_harn_loop %huntbuddy_buff_harn_loop_6
	setvariable spell_cam_test %huntbuddy_buff_cam_test_6
	setvariable spell_cam_power %huntbuddy_buff_cam_power_6
	setvariable spell_cam_loop %huntbuddy_buff_cam_loop_6
	setvariable spell_cast_pause %huntbuddy_buff_cast_pause_6
	setvariable spell_targeted_test OFF

BUFF_SPELL_PREP_6:
	setvariable subreturnflag BUFF_SPELL_PREP_6
	goto SUB_SPELL_PREP
SUBRETURN_BUFF_SPELL_PREP_6:

	echo
	echo *** Casting: %huntbuddy_buff_name_6 on self
	echo

BUFF_SPELL_CAST_6:
	pause %matchwaitpause
	match BUFF_SPELL_CAST_6 ...wait
	match BUFF_SPELL_CAST_6 You may only type ahead
	matchre BUFF_SPELL_CAST_6_PAUSE /.*/i
	put cast
	matchwait

BUFF_SPELL_CAST_6_PAUSE:
	pause %aftercastrtpause

RTCHECK_BUFF_SPELL_CAST_6:
	pause %rtcheckpause
	match RTCHECK_BUFF_SPELL_CAST_6_READY What were you referring to
	match RTCHECK_BUFF_SPELL_CAST_6 ...wait
	match RTCHECK_BUFF_SPELL_CAST_6 You may only type ahead
	put get my rtchecking
	matchwait
RTCHECK_BUFF_SPELL_CAST_6_READY:

BUFF_RELEASE_6:
	pause %matchwaitpause
	match BUFF_RELEASE_6 ...wait
	match BUFF_RELEASE_6 You may only type ahead
	matchre BUFF_END_6 /.*/i
	put release
	matchwait

BUFF_END_6:
	goto BUFF_END

BUFF_END:
	goto BUFF_SELF_RETURN



#_______________________________________________________________________Cast Buff spells on partner
BUFF_PARTNER_START:

BUFF_PARTNER_MASTER_TEST:
		goto BUFF_PARTNER_MASTER_TEST_%huntbuddy_buff_master_test
	BUFF_PARTNER_MASTER_TEST_ON:
		goto BUFF_PARTNER_TEST
	BUFF_PARTNER_MASTER_TEST_OFF:
		goto BUFF_PARTNER_END

BUFF_PARTNER_TEST:
		goto BUFF_PARTNER_TEST_%huntbuddy_buff_partner_test
	BUFF_PARTNER_TEST_ON:
		goto BUFF_PARTNER_GO
	BUFF_PARTNER_TEST_OFF:
		goto BUFF_PARTNER_END

BUFF_PARTNER_GO:

BUFF_PARTNER_HUM_STOP:
	setvariable subreturnflaghumstop BUFF_PARTNER_HUM_STOP
	goto SUB_HUM_STOP
SUBRETURN_BUFF_PARTNER_HUM_STOP:

#-------------------------------------------------------------
BUFF_PARTNER_TEST_1:
		goto BUFF_PARTNER_TEST_1_%huntbuddy_buff_test_1
	BUFF_PARTNER_TEST_1_ON:
		goto BUFF_PARTNER_GO_1
	BUFF_PARTNER_TEST_1_OFF:
		goto BUFF_PARTNER_TEST_2

BUFF_PARTNER_GO_1:

BUFF_PARTNER_RETREAT_TEST_1:
		goto BUFF_PARTNER_RETREAT_TEST_1_%huntbuddy_buff_retreat_test
	BUFF_PARTNER_RETREAT_TEST_1_ON:
		goto BUFF_PARTNER_RETREAT_1
	BUFF_PARTNER_RETREAT_TEST_1_OFF:
		goto SUBRETURN_BUFF_PARTNER_RETREAT_1
BUFF_PARTNER_RETREAT_1:
	setvariable subreturnflagretreat BUFF_PARTNER_RETREAT_1
	goto SUB_RETREAT
SUBRETURN_BUFF_PARTNER_RETREAT_1:

	setvariable spell_name %huntbuddy_buff_name_1
	setvariable spell_prep_power %huntbuddy_buff_prep_power_1
	setvariable spell_harn_test %huntbuddy_buff_harn_test_1
	setvariable spell_harn_power %huntbuddy_buff_harn_power_1
	setvariable spell_harn_loop %huntbuddy_buff_harn_loop_1
	setvariable spell_cam_test %huntbuddy_buff_cam_test_1
	setvariable spell_cam_power %huntbuddy_buff_cam_power_1
	setvariable spell_cam_loop %huntbuddy_buff_cam_loop_1
	setvariable spell_cast_pause %huntbuddy_buff_cast_pause_1
	setvariable spell_targeted_test OFF

BUFF_PARTNER_SPELL_PREP_1:
	setvariable subreturnflag BUFF_PARTNER_SPELL_PREP_1
	goto SUB_SPELL_PREP
SUBRETURN_BUFF_PARTNER_SPELL_PREP_1:

	echo
	echo *** Casting: %huntbuddy_buff_name_1 on %partner_name
	echo

BUFF_PARTNER_SPELL_CAST_1:
	pause %matchwaitpause
	match BUFF_PARTNER_SPELL_CAST_1 ...wait
	match BUFF_PARTNER_SPELL_CAST_1 You may only type ahead
	matchre BUFF_PARTNER_SPELL_CAST_1_PAUSE /.*/i
	put cast %partner_name
	matchwait

BUFF_PARTNER_SPELL_CAST_1_PAUSE:
	pause %aftercastrtpause

RTCHECK_BUFF_PARTNER_SPELL_CAST_1:
	pause %rtcheckpause
	match RTCHECK_BUFF_PARTNER_SPELL_CAST_1_READY What were you referring to
	match RTCHECK_BUFF_PARTNER_SPELL_CAST_1 ...wait
	match RTCHECK_BUFF_PARTNER_SPELL_CAST_1 You may only type ahead
	put get my rtchecking
	matchwait
RTCHECK_BUFF_PARTNER_SPELL_CAST_1_READY:

BUFF_PARTNER_RELEASE_1:
	pause %matchwaitpause
	match BUFF_PARTNER_RELEASE_1 ...wait
	match BUFF_PARTNER_RELEASE_1 You may only type ahead
	matchre BUFF_PARTNER_END_1 /.*/i
	put release
	matchwait

BUFF_PARTNER_END_1:
	goto BUFF_PARTNER_TEST_2

#-------------------------------------------------------------
BUFF_PARTNER_TEST_2:
		goto BUFF_PARTNER_TEST_2_%huntbuddy_buff_test_2
	BUFF_PARTNER_TEST_2_ON:
		goto BUFF_PARTNER_GO_2
	BUFF_PARTNER_TEST_2_OFF:
		goto BUFF_PARTNER_TEST_3

BUFF_PARTNER_GO_2:

BUFF_PARTNER_RETREAT_TEST_2:
		goto BUFF_PARTNER_RETREAT_TEST_2_%huntbuddy_buff_retreat_test
	BUFF_PARTNER_RETREAT_TEST_2_ON:
		goto BUFF_PARTNER_RETREAT_2
	BUFF_PARTNER_RETREAT_TEST_2_OFF:
		goto SUBRETURN_BUFF_PARTNER_RETREAT_2
BUFF_PARTNER_RETREAT_2:
	setvariable subreturnflagretreat BUFF_PARTNER_RETREAT_2
	goto SUB_RETREAT
SUBRETURN_BUFF_PARTNER_RETREAT_2:

	setvariable spell_name %huntbuddy_buff_name_2
	setvariable spell_prep_power %huntbuddy_buff_prep_power_2
	setvariable spell_harn_test %huntbuddy_buff_harn_test_2
	setvariable spell_harn_power %huntbuddy_buff_harn_power_2
	setvariable spell_harn_loop %huntbuddy_buff_harn_loop_2
	setvariable spell_cam_test %huntbuddy_buff_cam_test_2
	setvariable spell_cam_power %huntbuddy_buff_cam_power_2
	setvariable spell_cam_loop %huntbuddy_buff_cam_loop_2
	setvariable spell_cast_pause %huntbuddy_buff_cast_pause_2
	setvariable spell_targeted_test OFF

BUFF_PARTNER_SPELL_PREP_2:
	setvariable subreturnflag BUFF_PARTNER_SPELL_PREP_2
	goto SUB_SPELL_PREP
SUBRETURN_BUFF_PARTNER_SPELL_PREP_2:

	echo
	echo *** Casting: %huntbuddy_buff_name_2 on %partner_name
	echo

BUFF_PARTNER_SPELL_CAST_2:
	pause %matchwaitpause
	match BUFF_PARTNER_SPELL_CAST_2 ...wait
	match BUFF_PARTNER_SPELL_CAST_2 You may only type ahead
	matchre BUFF_PARTNER_SPELL_CAST_2_PAUSE /.*/i
	put cast %partner_name
	matchwait

BUFF_PARTNER_SPELL_CAST_2_PAUSE:
	pause %aftercastrtpause

RTCHECK_BUFF_PARTNER_SPELL_CAST_2:
	pause %rtcheckpause
	match RTCHECK_BUFF_PARTNER_SPELL_CAST_2_READY What were you referring to
	match RTCHECK_BUFF_PARTNER_SPELL_CAST_2 ...wait
	match RTCHECK_BUFF_PARTNER_SPELL_CAST_2 You may only type ahead
	put get my rtchecking
	matchwait
RTCHECK_BUFF_PARTNER_SPELL_CAST_2_READY:

BUFF_PARTNER_RELEASE_2:
	pause %matchwaitpause
	match BUFF_PARTNER_RELEASE_2 ...wait
	match BUFF_PARTNER_RELEASE_2 You may only type ahead
	matchre BUFF_PARTNER_END_2 /.*/i
	put release
	matchwait

BUFF_PARTNER_END_2:
	goto BUFF_PARTNER_TEST_3

#-------------------------------------------------------------
BUFF_PARTNER_TEST_3:
		goto BUFF_PARTNER_TEST_3_%huntbuddy_buff_test_3
	BUFF_PARTNER_TEST_3_ON:
		goto BUFF_PARTNER_GO_3
	BUFF_PARTNER_TEST_3_OFF:
		goto BUFF_PARTNER_TEST_4

BUFF_PARTNER_GO_3:

BUFF_PARTNER_RETREAT_TEST_3:
		goto BUFF_PARTNER_RETREAT_TEST_3_%huntbuddy_buff_retreat_test
	BUFF_PARTNER_RETREAT_TEST_3_ON:
		goto BUFF_PARTNER_RETREAT_3
	BUFF_PARTNER_RETREAT_TEST_3_OFF:
		goto SUBRETURN_BUFF_PARTNER_RETREAT_3
BUFF_PARTNER_RETREAT_3:
	setvariable subreturnflagretreat BUFF_PARTNER_RETREAT_3
	goto SUB_RETREAT
SUBRETURN_BUFF_PARTNER_RETREAT_3:

	setvariable spell_name %huntbuddy_buff_name_3
	setvariable spell_prep_power %huntbuddy_buff_prep_power_3
	setvariable spell_harn_test %huntbuddy_buff_harn_test_3
	setvariable spell_harn_power %huntbuddy_buff_harn_power_3
	setvariable spell_harn_loop %huntbuddy_buff_harn_loop_3
	setvariable spell_cam_test %huntbuddy_buff_cam_test_3
	setvariable spell_cam_power %huntbuddy_buff_cam_power_3
	setvariable spell_cam_loop %huntbuddy_buff_cam_loop_3
	setvariable spell_cast_pause %huntbuddy_buff_cast_pause_3
	setvariable spell_targeted_test OFF

BUFF_PARTNER_SPELL_PREP_3:
	setvariable subreturnflag BUFF_PARTNER_SPELL_PREP_3
	goto SUB_SPELL_PREP
SUBRETURN_BUFF_PARTNER_SPELL_PREP_3:

	echo
	echo *** Casting: %huntbuddy_buff_name_3 on %partner_name
	echo

BUFF_PARTNER_SPELL_CAST_3:
	pause %matchwaitpause
	match BUFF_PARTNER_SPELL_CAST_3 ...wait
	match BUFF_PARTNER_SPELL_CAST_3 You may only type ahead
	matchre BUFF_PARTNER_SPELL_CAST_3_PAUSE /.*/i
	put cast %partner_name
	matchwait

BUFF_PARTNER_SPELL_CAST_3_PAUSE:
	pause %aftercastrtpause

RTCHECK_BUFF_PARTNER_SPELL_CAST_3:
	pause %rtcheckpause
	match RTCHECK_BUFF_PARTNER_SPELL_CAST_3_READY What were you referring to
	match RTCHECK_BUFF_PARTNER_SPELL_CAST_3 ...wait
	match RTCHECK_BUFF_PARTNER_SPELL_CAST_3 You may only type ahead
	put get my rtchecking
	matchwait
RTCHECK_BUFF_PARTNER_SPELL_CAST_3_READY:

BUFF_PARTNER_RELEASE_3:
	pause %matchwaitpause
	match BUFF_PARTNER_RELEASE_3 ...wait
	match BUFF_PARTNER_RELEASE_3 You may only type ahead
	matchre BUFF_PARTNER_END_3 /.*/i
	put release
	matchwait

BUFF_PARTNER_END_3:
	goto BUFF_PARTNER_TEST_4

#-------------------------------------------------------------
BUFF_PARTNER_TEST_4:
		goto BUFF_PARTNER_TEST_4_%huntbuddy_buff_test_4
	BUFF_PARTNER_TEST_4_ON:
		goto BUFF_PARTNER_GO_4
	BUFF_PARTNER_TEST_4_OFF:
		goto BUFF_PARTNER_TEST_5

BUFF_PARTNER_GO_4:

BUFF_PARTNER_RETREAT_TEST_4:
		goto BUFF_PARTNER_RETREAT_TEST_4_%huntbuddy_buff_retreat_test
	BUFF_PARTNER_RETREAT_TEST_4_ON:
		goto BUFF_PARTNER_RETREAT_4
	BUFF_PARTNER_RETREAT_TEST_4_OFF:
		goto SUBRETURN_BUFF_PARTNER_RETREAT_4
BUFF_PARTNER_RETREAT_4:
	setvariable subreturnflagretreat BUFF_PARTNER_RETREAT_4
	goto SUB_RETREAT
SUBRETURN_BUFF_PARTNER_RETREAT_4:

	setvariable spell_name %huntbuddy_buff_name_4
	setvariable spell_prep_power %huntbuddy_buff_prep_power_4
	setvariable spell_harn_test %huntbuddy_buff_harn_test_4
	setvariable spell_harn_power %huntbuddy_buff_harn_power_4
	setvariable spell_harn_loop %huntbuddy_buff_harn_loop_4
	setvariable spell_cam_test %huntbuddy_buff_cam_test_4
	setvariable spell_cam_power %huntbuddy_buff_cam_power_4
	setvariable spell_cam_loop %huntbuddy_buff_cam_loop_4
	setvariable spell_cast_pause %huntbuddy_buff_cast_pause_4
	setvariable spell_targeted_test OFF

BUFF_PARTNER_SPELL_PREP_4:
	setvariable subreturnflag BUFF_PARTNER_SPELL_PREP_4
	goto SUB_SPELL_PREP
SUBRETURN_BUFF_PARTNER_SPELL_PREP_4:

	echo
	echo *** Casting: %huntbuddy_buff_name_4 on %partner_name
	echo

BUFF_PARTNER_SPELL_CAST_4:
	pause %matchwaitpause
	match BUFF_PARTNER_SPELL_CAST_4 ...wait
	match BUFF_PARTNER_SPELL_CAST_4 You may only type ahead
	matchre BUFF_PARTNER_SPELL_CAST_4_PAUSE /.*/i
	put cast %partner_name
	matchwait

BUFF_PARTNER_SPELL_CAST_4_PAUSE:
	pause %aftercastrtpause

RTCHECK_BUFF_PARTNER_SPELL_CAST_4:
	pause %rtcheckpause
	match RTCHECK_BUFF_PARTNER_SPELL_CAST_4_READY What were you referring to
	match RTCHECK_BUFF_PARTNER_SPELL_CAST_4 ...wait
	match RTCHECK_BUFF_PARTNER_SPELL_CAST_4 You may only type ahead
	put get my rtchecking
	matchwait
RTCHECK_BUFF_PARTNER_SPELL_CAST_4_READY:

BUFF_PARTNER_RELEASE_4:
	pause %matchwaitpause
	match BUFF_PARTNER_RELEASE_4 ...wait
	match BUFF_PARTNER_RELEASE_4 You may only type ahead
	matchre BUFF_PARTNER_END_4 /.*/i
	put release
	matchwait

BUFF_PARTNER_END_4:
	goto BUFF_PARTNER_TEST_5

#-------------------------------------------------------------
BUFF_PARTNER_TEST_5:
		goto BUFF_PARTNER_TEST_5_%huntbuddy_buff_test_5
	BUFF_PARTNER_TEST_5_ON:
		goto BUFF_PARTNER_GO_5
	BUFF_PARTNER_TEST_5_OFF:
		goto BUFF_PARTNER_TEST_6

BUFF_PARTNER_GO_5:

BUFF_PARTNER_RETREAT_TEST_5:
		goto BUFF_PARTNER_RETREAT_TEST_5_%huntbuddy_buff_retreat_test
	BUFF_PARTNER_RETREAT_TEST_5_ON:
		goto BUFF_PARTNER_RETREAT_5
	BUFF_PARTNER_RETREAT_TEST_5_OFF:
		goto SUBRETURN_BUFF_PARTNER_RETREAT_5
BUFF_PARTNER_RETREAT_5:
	setvariable subreturnflagretreat BUFF_PARTNER_RETREAT_5
	goto SUB_RETREAT
SUBRETURN_BUFF_PARTNER_RETREAT_5:

	setvariable spell_name %huntbuddy_buff_name_5
	setvariable spell_prep_power %huntbuddy_buff_prep_power_5
	setvariable spell_harn_test %huntbuddy_buff_harn_test_5
	setvariable spell_harn_power %huntbuddy_buff_harn_power_5
	setvariable spell_harn_loop %huntbuddy_buff_harn_loop_5
	setvariable spell_cam_test %huntbuddy_buff_cam_test_5
	setvariable spell_cam_power %huntbuddy_buff_cam_power_5
	setvariable spell_cam_loop %huntbuddy_buff_cam_loop_5
	setvariable spell_cast_pause %huntbuddy_buff_cast_pause_5
	setvariable spell_targeted_test OFF

BUFF_PARTNER_SPELL_PREP_5:
	setvariable subreturnflag BUFF_PARTNER_SPELL_PREP_5
	goto SUB_SPELL_PREP
SUBRETURN_BUFF_PARTNER_SPELL_PREP_5:

	echo
	echo *** Casting: %huntbuddy_buff_name_5 on %partner_name
	echo

BUFF_PARTNER_SPELL_CAST_5:
	pause %matchwaitpause
	match BUFF_PARTNER_SPELL_CAST_5 ...wait
	match BUFF_PARTNER_SPELL_CAST_5 You may only type ahead
	matchre BUFF_PARTNER_SPELL_CAST_5_PAUSE /.*/i
	put cast %partner_name
	matchwait

BUFF_PARTNER_SPELL_CAST_5_PAUSE:
	pause %aftercastrtpause

RTCHECK_BUFF_PARTNER_SPELL_CAST_5:
	pause %rtcheckpause
	match RTCHECK_BUFF_PARTNER_SPELL_CAST_5_READY What were you referring to
	match RTCHECK_BUFF_PARTNER_SPELL_CAST_5 ...wait
	match RTCHECK_BUFF_PARTNER_SPELL_CAST_5 You may only type ahead
	put get my rtchecking
	matchwait
RTCHECK_BUFF_PARTNER_SPELL_CAST_5_READY:

BUFF_PARTNER_RELEASE_5:
	pause %matchwaitpause
	match BUFF_PARTNER_RELEASE_5 ...wait
	match BUFF_PARTNER_RELEASE_5 You may only type ahead
	matchre BUFF_PARTNER_END_5 /.*/i
	put release
	matchwait

BUFF_PARTNER_END_5:
	goto BUFF_PARTNER_TEST_6 on %partner_name

#-------------------------------------------------------------
BUFF_PARTNER_TEST_6:
		goto BUFF_PARTNER_TEST_6_%huntbuddy_buff_test_6
	BUFF_PARTNER_TEST_6_ON:
		goto BUFF_PARTNER_GO_6
	BUFF_PARTNER_TEST_6_OFF:
		goto BUFF_PARTNER_END

BUFF_PARTNER_GO_6:

BUFF_PARTNER_RETREAT_TEST_6:
		goto BUFF_PARTNER_RETREAT_TEST_6_%huntbuddy_buff_retreat_test
	BUFF_PARTNER_RETREAT_TEST_6_ON:
		goto BUFF_PARTNER_RETREAT_6
	BUFF_PARTNER_RETREAT_TEST_6_OFF:
		goto SUBRETURN_BUFF_PARTNER_RETREAT_6
BUFF_PARTNER_RETREAT_6:
	setvariable subreturnflagretreat BUFF_PARTNER_RETREAT_6
	goto SUB_RETREAT
SUBRETURN_BUFF_PARTNER_RETREAT_6:

	setvariable spell_name %huntbuddy_buff_name_6
	setvariable spell_prep_power %huntbuddy_buff_prep_power_6
	setvariable spell_harn_test %huntbuddy_buff_harn_test_6
	setvariable spell_harn_power %huntbuddy_buff_harn_power_6
	setvariable spell_harn_loop %huntbuddy_buff_harn_loop_6
	setvariable spell_cam_test %huntbuddy_buff_cam_test_6
	setvariable spell_cam_power %huntbuddy_buff_cam_power_6
	setvariable spell_cam_loop %huntbuddy_buff_cam_loop_6
	setvariable spell_cast_pause %huntbuddy_buff_cast_pause_6
	setvariable spell_targeted_test OFF

BUFF_PARTNER_SPELL_PREP_6:
	setvariable subreturnflag BUFF_PARTNER_SPELL_PREP_6
	goto SUB_SPELL_PREP
SUBRETURN_BUFF_PARTNER_SPELL_PREP_6:

	echo
	echo *** Casting: %huntbuddy_buff_name_6 on %partner_name
	echo

BUFF_PARTNER_SPELL_CAST_6:
	pause %matchwaitpause
	match BUFF_PARTNER_SPELL_CAST_6 ...wait
	match BUFF_PARTNER_SPELL_CAST_6 You may only type ahead
	matchre BUFF_PARTNER_SPELL_CAST_6_PAUSE /.*/i
	put cast %partner_name
	matchwait

BUFF_PARTNER_SPELL_CAST_6_PAUSE:
	pause %aftercastrtpause

RTCHECK_BUFF_PARTNER_SPELL_CAST_6:
	pause %rtcheckpause
	match RTCHECK_BUFF_PARTNER_SPELL_CAST_6_READY What were you referring to
	match RTCHECK_BUFF_PARTNER_SPELL_CAST_6 ...wait
	match RTCHECK_BUFF_PARTNER_SPELL_CAST_6 You may only type ahead
	put get my rtchecking
	matchwait
RTCHECK_BUFF_PARTNER_SPELL_CAST_6_READY:

BUFF_PARTNER_RELEASE_6:
	pause %matchwaitpause
	match BUFF_PARTNER_RELEASE_6 ...wait
	match BUFF_PARTNER_RELEASE_6 You may only type ahead
	matchre BUFF_PARTNER_END_6 /.*/i
	put release
	matchwait

BUFF_PARTNER_END_6:
	goto BUFF_PARTNER_END

BUFF_PARTNER_END:
	goto BUFF_PARTNER_RETURN

#############################################################################
###########################    ENCHANTE SECTION    ##########################
#############################################################################
#_______________________________________________________________________sing
SING_START:

SING_TEST:
		goto SING_TEST_%huntbuddy_sing_test
	SING_TEST_ON:
		goto SING_GO
	SING_TEST_OFF:
		goto SING_END

SING_GO:
	pause .3
	put sing %huntbuddy_sing_type
	pause .3

SING_END:
	goto SING_RETURN



#_______________________________________________________________________chant
CHANT_START:

CHANT_TEST:
		goto CHANT_TEST_%huntbuddy_chant_test
	CHANT_TEST_ON:
		goto CHANT_GO
	CHANT_TEST_OFF:
		goto CHANT_END

CHANT_GO:
	pause .3
	put chant %huntbuddy_chant_type
	pause .3

CHANT_END:
	goto CHANT_RETURN




#############################################################################
###########################    NDC SECTION    ###############################
#############################################################################

NDC_ACTIONS:
NDC_ACTIONS_START:
	setvariable flagndchands FULL



#_______________________________________________________________________hum
NDC_HUM_START:

NDC_HUM_TEST:
		goto NDC_HUM_TEST_%huntbuddy_ndc_hum_test
	NDC_HUM_TEST_ON:
		goto NDC_HUM_MENTAL_CHECK
	NDC_HUM_TEST_OFF:
		goto NDC_HUM_END

NDC_HUM_MENTAL_CHECK:
	setvariable subreturnflag NDC_HUM_MENTAL_CHECK
	setvariable skillclass VO
	goto SUB_MENTAL_CHECK
SUBRETURN_NDC_HUM_MENTAL_CHECK:

NDC_HUM_MENTAL_CHECK_TEST:
		goto NDC_HUM_MENTAL_CHECK_TEST_%skillmental
	NDC_HUM_MENTAL_CHECK_TEST_FULL:
		goto NDC_HUM_SKIP
	NDC_HUM_MENTAL_CHECK_TEST_NOTFULL:
		goto NDC_HUM_GO

NDC_HUM_GO:

NDC_HUM_GO_RETREAT:
	setvariable subreturnflagretreat NDC_HUM_GO_RETREAT
	goto SUB_RETREAT
SUBRETURN_NDC_HUM_GO_RETREAT:

	echo
	echo *** NDC humming %huntbuddy_ndc_hum_item
	echo
NDC_HUM_GO_GO:
	pause %matchwaitpause
	match NDC_HUM_GO_GO ...wait
	match NDC_HUM_GO_GO You may only type ahead
	matchre NDC_HUM_END /.*/i
	put hum %huntbuddy_ndc_hum_item
	matchwait

NDC_HUM_SKIP:
	echo
	echo *** NDC Vocals full, skipping
	echo
	goto NDC_HUM_END

NDC_HUM_END:

#_______________________________________________________________________pow
NDC_POW_START:

NDC_POW_TEST:
		goto NDC_POW_TEST_%huntbuddy_ndc_pow_test
	NDC_POW_TEST_ON:
		goto NDC_POW_MENTAL_CHECK
	NDC_POW_TEST_OFF:
		goto NDC_POW_END

NDC_POW_MENTAL_CHECK:
	setvariable subreturnflag NDC_POW_MENTAL_CHECK
	setvariable skillclass PP
	goto SUB_MENTAL_CHECK
SUBRETURN_NDC_POW_MENTAL_CHECK:


NDC_POW_MENTAL_CHECK_TEST:
		goto NDC_POW_MENTAL_CHECK_TEST_%skillmental
	NDC_POW_MENTAL_CHECK_TEST_FULL:
		goto NDC_POW_SKIP
	NDC_POW_MENTAL_CHECK_TEST_NOTFULL:
		goto NDC_POW_GO

NDC_POW_GO:

NDC_POW_GO_RETREAT:
	setvariable subreturnflagretreat NDC_POW_GO_RETREAT
	goto SUB_RETREAT
SUBRETURN_NDC_POW_GO_RETREAT:

	echo
	echo *** NDC powing
	echo

NDC_POW_GO_GO:
	setvariable subreturnflagnp NDC_POW_GO_GO
	setvariable nakedput pow
	goto SUB_NAKED_PUT
SUBRETURN_NDC_POW_GO_GO:

	goto NDC_POW_END

NDC_POW_SKIP:
	echo
	echo *** NDC Power Perceive full, skipping
	echo
	goto NDC_POW_END

NDC_POW_END:

#_______________________________________________________________________juggle
NDC_JUGGLE_START:

NDC_JUGGLE_TEST:
		goto NDC_JUGGLE_TEST_%huntbuddy_ndc_juggle_test
	NDC_JUGGLE_TEST_ON:
		goto NDC_JUGGLE_MENTAL_CHECK
	NDC_JUGGLE_TEST_OFF:
		goto NDC_JUGGLE_END

NDC_JUGGLE_MENTAL_CHECK:
	setvariable subreturnflag NDC_JUGGLE_MENTAL_CHECK
	setvariable skillclass PE
	goto SUB_MENTAL_CHECK
SUBRETURN_NDC_JUGGLE_MENTAL_CHECK:

NDC_JUGGLE_MENTAL_CHECK_TEST:
		goto NDC_JUGGLE_MENTAL_CHECK_TEST_%skillmental
	NDC_JUGGLE_MENTAL_CHECK_TEST_FULL:
		goto NDC_JUGGLE_SKIP
	NDC_JUGGLE_MENTAL_CHECK_TEST_NOTFULL:
		goto NDC_JUGGLE_HANDS_CHECK

NDC_JUGGLE_HANDS_CHECK:
		goto NDC_JUGGLE_HANDS_CHECK_%flagndchands
	NDC_JUGGLE_HANDS_CHECK_FULL:
		goto NDC_JUGGLE_EMPTY_HANDS
	NDC_JUGGLE_HANDS_CHECK_EMPTY:
		goto NDC_JUGGLE_GO

NDC_JUGGLE_EMPTY_HANDS:
	setvariable flagndchands EMPTY
	setvariable subreturnflagemptyhands NDC_JUGGLE_EMPTY_HANDS
	goto SUB_EMPTY_HANDS
SUBRETURN_NDC_JUGGLE_EMPTY_HANDS:

NDC_JUGGLE_GO:

NDC_JUGGLE_GO_RETREAT:
	setvariable subreturnflagretreat NDC_JUGGLE_GO_RETREAT
	goto SUB_RETREAT
SUBRETURN_NDC_JUGGLE_GO_RETREAT:

	echo
	echo *** NDC juggling %huntbuddy_ndc_juggle_item
	echo

NDC_JUGGLE_GO_GET_ITEM:
	pause %matchwaitpause
	match NDC_JUGGLE_GO_JUGGLE you get
	matchre NDC_JUGGLE_FAIL /%failget%/i
	match NDC_JUGGLE_GO_GET_ITEM ...wait
	match NDC_JUGGLE_GO_GET_ITEM You may only type ahead
	put get my %huntbuddy_ndc_juggle_item
	matchwait

NDC_JUGGLE_GO_JUGGLE:
	pause %matchwaitpause
	match NDC_JUGGLE_GO_JUGGLE ...wait
	match NDC_JUGGLE_GO_JUGGLE You may only type ahead
	matchre NDC_JUGGLE_GO_JUGGLE_PAUSE /.*/i
	put juggle my %huntbuddy_ndc_juggle_item
	matchwait

NDC_JUGGLE_GO_JUGGLE_PAUSE:
	pause 1

RTCHECK_NDC_JUGGLE_GO_JUGGLE:
	pause %rtcheckpause
	match RTCHECK_NDC_JUGGLE_GO_JUGGLE_READY What were you referring to
	match RTCHECK_NDC_JUGGLE_GO_JUGGLE ...wait
	match RTCHECK_NDC_JUGGLE_GO_JUGGLE You may only type ahead
	put get my rtchecking
	matchwait
RTCHECK_NDC_JUGGLE_GO_JUGGLE_READY:

NDC_JUGGLE_GO_STOW_ITEM:
	pause %matchwaitpause
	matchre NDC_JUGGLE_END /%hitstow%/i
	matchre NDC_JUGGLE_END /%failstowcall%/i
	matchre ERROR_STOW /%failstowfull%/i
	matchre ERROR_STOW /%failstowsize%/i
	matchre ERROR_STOW /%errorstow%/i
	match NDC_JUGGLE_GO_STOW_ITEM ...wait
	match NDC_JUGGLE_GO_STOW_ITEM You may only type ahead
	put stow my %huntbuddy_ndc_juggle_item
	matchwait

NDC_JUGGLE_FAIL:
	echo
	echo *************************************************************
	echo *** Juggle fail
	echo
	echo I can't find your juggle item:   %huntbuddy_ndc_juggle_item
	echo 
	echo Either bad name or in a closed container
	echo
	echo Trying to continue
	echo
	echo *************************************************************
	echo
	pause 1
	goto NDC_JUGGLE_END

NDC_JUGGLE_SKIP:
	echo
	echo *** NDC Perception full, skipping
	echo
	goto NDC_JUGGLE_END

NDC_JUGGLE_END:

#_______________________________________________________________________compendium
NDC_COMP_START:

NDC_COMP_TEST:
		goto NDC_COMP_TEST_%huntbuddy_ndc_comp_test
	NDC_COMP_TEST_ON:
		goto NDC_COMP_MENTAL_CHECK
	NDC_COMP_TEST_OFF:
		goto NDC_COMP_END

NDC_COMP_MENTAL_CHECK:
	setvariable subreturnflag NDC_COMP_MENTAL_CHECK
	setvariable skillclass FA
	goto SUB_MENTAL_CHECK
SUBRETURN_NDC_COMP_MENTAL_CHECK:

NDC_COMP_MENTAL_CHECK_TEST:
		goto NDC_COMP_MENTAL_CHECK_TEST_%skillmental
	NDC_COMP_MENTAL_CHECK_TEST_FULL:
		goto NDC_COMP_SKIP
	NDC_COMP_MENTAL_CHECK_TEST_NOTFULL:
		goto NDC_COMP_HANDS_CHECK

NDC_COMP_HANDS_CHECK:
		goto NDC_COMP_HANDS_CHECK_%flagndchands
	NDC_COMP_HANDS_CHECK_FULL:
		goto NDC_COMP_EMPTY_HANDS
	NDC_COMP_HANDS_CHECK_EMPTY:
		goto NDC_COMP_GO

NDC_COMP_EMPTY_HANDS:
	setvariable flagndchands EMPTY
	setvariable subreturnflagemptyhands NDC_COMP_EMPTY_HANDS
	goto SUB_EMPTY_HANDS
SUBRETURN_NDC_COMP_EMPTY_HANDS:

NDC_COMP_GO:

NDC_COMP_GO_RETREAT:
	setvariable subreturnflagretreat NDC_COMP_GO_RETREAT
	goto SUB_RETREAT
SUBRETURN_NDC_COMP_GO_RETREAT:

	echo
	echo *** NDC study compendium
	echo

NDC_COMP_GO_GET_ITEM:
	pause %matchwaitpause
	match NDC_COMP_GO_OPEN you get
	matchre NDC_COMP_FAIL /%failget%/i
	match NDC_COMP_GO_GET_ITEM ...wait
	match NDC_COMP_GO_GET_ITEM You may only type ahead
	put get my compendium
	matchwait

NDC_COMP_GO_OPEN:
	pause %matchwaitpause
	match NDC_COMP_GO_OPEN ...wait
	match NDC_COMP_GO_OPEN You may only type ahead
	matchre NDC_COMP_GO_TURN /.*/i
	put open my compendium
	matchwait

NDC_COMP_GO_TURN:
	pause %matchwaitpause
	match NDC_COMP_GO_TURN ...wait
	match NDC_COMP_GO_TURN You may only type ahead
	matchre NDC_COMP_GO_STUDY /.*/i
	put turn my compendium
	matchwait

NDC_COMP_GO_STUDY:
	pause %matchwaitpause
	match NDC_COMP_GO_STUDY ...wait
	match NDC_COMP_GO_STUDY You may only type ahead
	matchre NDC_COMP_GO_STUDY_PAUSE /.*/i
	put study my compendium
	matchwait

NDC_COMP_GO_STUDY_PAUSE:
	pause 1

RTCHECK_NDC_COMP_GO_STUDY:
	pause %rtcheckpause
	match RTCHECK_NDC_COMP_GO_STUDY_READY What were you referring to
	match RTCHECK_NDC_COMP_GO_STUDY ...wait
	match RTCHECK_NDC_COMP_GO_STUDY You may only type ahead
	put get my rtchecking
	matchwait
RTCHECK_NDC_COMP_GO_STUDY_READY:

NDC_COMP_GO_CLOSE:
	pause %matchwaitpause
	match NDC_COMP_GO_CLOSE ...wait
	match NDC_COMP_GO_CLOSE You may only type ahead
	matchre NDC_COMP_GO_STOW_ITEM /.*/i
	put close my compendium
	matchwait

NDC_COMP_GO_STOW_ITEM:
	pause %matchwaitpause
	matchre NDC_COMP_END /%hitstow%/i
	matchre NDC_COMP_END /%failstowcall%/i
	matchre ERROR_STOW /%failstowfull%/i
	matchre ERROR_STOW /%failstowsize%/i
	matchre ERROR_STOW /%errorstow%/i
	match NDC_COMP_GO_STOW_ITEM ...wait
	match NDC_COMP_GO_STOW_ITEM You may only type ahead
	put stow my compendium
	matchwait

NDC_COMP_FAIL:
	echo
	echo *************************************************************
	echo *** Compendium fail
	echo
	echo I can't find your compendium
	echo 
	echo Either not on you or in a closed container
	echo
	echo Trying to continue
	echo
	echo *************************************************************
	echo
	pause 1
	goto NDC_COMP_END

NDC_COMP_SKIP:
	echo
	echo *** NDC first aid full, skipping compendium
	echo
	goto NDC_COMP_END

NDC_COMP_END:

#_______________________________________________________________________stones
NDC_STONES_START:

NDC_STONES_TEST:
		goto NDC_STONES_TEST_%huntbuddy_ndc_stones_test
	NDC_STONES_TEST_ON:
		goto NDC_STONES_MENTAL_CHECK
	NDC_STONES_TEST_OFF:
		goto NDC_STONES_END

NDC_STONES_MENTAL_CHECK:
	setvariable subreturnflag NDC_STONES_MENTAL_CHECK
	setvariable skillclass ML
	goto SUB_MENTAL_CHECK
SUBRETURN_NDC_STONES_MENTAL_CHECK:

NDC_STONES_MENTAL_CHECK_TEST:
		goto NDC_STONES_MENTAL_CHECK_TEST_%skillmental
	NDC_STONES_MENTAL_CHECK_TEST_FULL:
		goto NDC_STONES_SKIP
	NDC_STONES_MENTAL_CHECK_TEST_NOTFULL:
		goto NDC_STONES_HANDS_CHECK

NDC_STONES_HANDS_CHECK:
		goto NDC_STONES_HANDS_CHECK_%flagndchands
	NDC_STONES_HANDS_CHECK_FULL:
		goto NDC_STONES_EMPTY_HANDS
	NDC_STONES_HANDS_CHECK_EMPTY:
		goto NDC_STONES_GO

NDC_STONES_EMPTY_HANDS:
	setvariable flagndchands EMPTY
	setvariable subreturnflagemptyhands NDC_STONES_EMPTY_HANDS
	goto SUB_EMPTY_HANDS
SUBRETURN_NDC_STONES_EMPTY_HANDS:

NDC_STONES_GO:

NDC_STONES_GO_RETREAT:
	setvariable subreturnflagretreat NDC_STONES_GO_RETREAT
	goto SUB_RETREAT
SUBRETURN_NDC_STONES_GO_RETREAT:

	echo
	echo *** NDC combining stones
	echo

NDC_STONES_GO_GET_ITEM:
	pause %matchwaitpause
	match NDC_STONES_GO_REMOVE you get
	matchre NDC_STONES_FAIL /%failget%/i
	match NDC_STONES_GO_GET_ITEM ...wait
	match NDC_STONES_GO_GET_ITEM You may only type ahead
	put get my stones
	matchwait

NDC_STONES_GO_REMOVE:
	setvariable subreturnflagnp3 NDC_STONES_GO_REMOVE
	setvariable nakedput1 remove
	setvariable nakedput2 1
	setvariable nakedput3 stone
	goto SUB_NAKED_PUT3
SUBRETURN_NDC_STONES_GO_REMOVE:

NDC_STONES_GO_COMBINE:
	setvariable subreturnflagnp3 NDC_STONES_GO_COMBINE
	setvariable nakedput1 combine
	setvariable nakedput2 my
	setvariable nakedput3 stone
	goto SUB_NAKED_PUT3
SUBRETURN_NDC_STONES_GO_COMBINE:

NDC_STONES_GO_STOWLEFT:
	pause %matchwaitpause
	matchre NDC_STONES_GO_STOWRIGHT /%hitstow%/i
	matchre NDC_STONES_GO_STOWRIGHT /%failstowcall%/i
	matchre ERROR_STOW /%failstowfull%/i
	matchre ERROR_STOW /%failstowsize%/i
	matchre ERROR_STOW /%errorstow%/i
	match NDC_STONES_GO_STOWLEFT ...wait
	match NDC_STONES_GO_STOWLEFT You may only type ahead
	put stow left
	matchwait

NDC_STONES_GO_STOWRIGHT:
	pause %matchwaitpause
	matchre NDC_STONES_END /%hitstow%/i
	matchre NDC_STONES_END /%failstowcall%/i
	matchre ERROR_STOW /%failstowfull%/i
	matchre ERROR_STOW /%failstowsize%/i
	matchre ERROR_STOW /%errorstow%/i
	match NDC_STONES_GO_STOWRIGHT ...wait
	match NDC_STONES_GO_STOWRIGHT You may only type ahead
	put stow right
	matchwait

NDC_STONES_FAIL:
	echo
	echo *************************************************************
	echo *** Combine stones fail
	echo
	echo I can't find your stones
	echo 
	echo Either not on you or in a closed container
	echo
	echo Trying to continue
	echo
	echo *************************************************************
	echo
	pause 1
	goto NDC_STONES_END

NDC_STONES_SKIP:
	echo
	echo *** NDC Mechanical Lore full, skipping stones
	echo
	goto NDC_STONES_END

NDC_STONES_END:

#_______________________________________________________________________pyramid
NDC_PYRAMID_START:

NDC_PYRAMID_TEST:
		goto NDC_PYRAMID_TEST_%huntbuddy_ndc_pyramid_test
	NDC_PYRAMID_TEST_ON:
		goto NDC_PYRAMID_STARTEMPTY_TEST
	NDC_PYRAMID_TEST_OFF:
		goto NDC_PYRAMID_END

NDC_PYRAMID_STARTEMPTY_TEST:
		goto NDC_PYRAMID_STARTEMPTY_TEST_%flagndcpyramidstartedempty
	NDC_PYRAMID_STARTEMPTY_TEST_YES:
		goto NDC_PYRAMID_GO_LOOPCHECK
	NDC_PYRAMID_STARTEMPTY_TEST_NO:
		goto NDC_PYRAMID_NOTEMPTYSTART_FAIL

NDC_PYRAMID_GO_LOOPCHECK:
		goto NDC_PYRAMID_GO_LOOPCHECK_%ndcpyramidloopnum
	NDC_PYRAMID_GO_LOOPCHECK_1:
		counter set %ndcpyramidloopnum
		counter add 1
		setvariable ndcpyramidloopnum %c
		goto NDC_PYRAMID_MENTAL_CHECK
	NDC_PYRAMID_GO_LOOPCHECK_2:
		counter set %ndcpyramidloopnum
		counter add 1
		setvariable ndcpyramidloopnum %c
		goto NDC_PYRAMID_END
	NDC_PYRAMID_GO_LOOPCHECK_3:
		counter set %ndcpyramidloopnum
		counter add 1
		setvariable ndcpyramidloopnum %c
		goto NDC_PYRAMID_END
	NDC_PYRAMID_GO_LOOPCHECK_4:
		setvariable ndcpyramidloopnum 1
		goto NDC_PYRAMID_END

NDC_PYRAMID_MENTAL_CHECK:
	setvariable subreturnflag NDC_PYRAMID_MENTAL_CHECK
	setvariable skillclass ML
	goto SUB_MENTAL_CHECK
SUBRETURN_NDC_PYRAMID_MENTAL_CHECK:

NDC_PYRAMID_MENTAL_CHECK_TEST:
		goto NDC_PYRAMID_MENTAL_CHECK_TEST_%skillmental
	NDC_PYRAMID_MENTAL_CHECK_TEST_FULL:
		goto NDC_PYRAMID_SKIP
	NDC_PYRAMID_MENTAL_CHECK_TEST_NOTFULL:
		goto NDC_PYRAMID_HANDS_CHECK

NDC_PYRAMID_HANDS_CHECK:
		goto NDC_PYRAMID_HANDS_CHECK_%flagndchands
	NDC_PYRAMID_HANDS_CHECK_FULL:
		goto NDC_PYRAMID_EMPTY_HANDS
	NDC_PYRAMID_HANDS_CHECK_EMPTY:
		goto NDC_PYRAMID_GO

NDC_PYRAMID_EMPTY_HANDS:
	setvariable flagndchands EMPTY
	setvariable subreturnflagemptyhands NDC_PYRAMID_EMPTY_HANDS
	goto SUB_EMPTY_HANDS
SUBRETURN_NDC_PYRAMID_EMPTY_HANDS:

NDC_PYRAMID_GO:

NDC_PYRAMID_GO_RETREAT:
	setvariable subreturnflagretreat NDC_PYRAMID_GO_RETREAT
	goto SUB_RETREAT
SUBRETURN_NDC_PYRAMID_GO_RETREAT:

	echo
	echo *** NDC pyramid
	echo

NDC_PYRAMID_GO_FIRSTLOOK_TEST:
		goto NDC_PYRAMID_GO_FIRSTLOOK_TEST_%flagndcpyramidfirstlook
	NDC_PYRAMID_GO_FIRSTLOOK_TEST_YES:
		goto NDC_PYRAMID_GO_FIRSTLOOK
	NDC_PYRAMID_GO_FIRSTLOOK_TEST_NO:
		goto NDC_PYRAMID_GO_OPEN

NDC_PYRAMID_GO_FIRSTLOOK:
	setvariable flagndcpyramidfirstlook NO

NDC_PYRAMID_GO_FIRSTLOOK_GET_ITEM_TAP:
	pause %matchwaitpause
	matchre NDC_PYRAMID_GO_FIRSTLOOK_OPEN /You tap (.*) Wayerd pyramid on the ground/i
	matchre NDC_PYRAMID_GO_FIRSTLOOK_GET_ITEM /You tap (.*) Wayerd pyramid inside your/i
	matchre NDC_PYRAMID_GO_FIRSTLOOK_DROP /You tap (.*) Wayerd pyramid that you are holding/i
	match NDC_PYRAMID_FAIL I could not find what you were referring to
	match NDC_PYRAMID_GO_FIRSTLOOK_GET_ITEM_TAP ...wait
	match NDC_PYRAMID_GO_FIRSTLOOK_GET_ITEM_TAP You may only type ahead
	put tap pyramid
	matchwait

NDC_PYRAMID_GO_FIRSTLOOK_GET_ITEM:
	pause %matchwaitpause
	match NDC_PYRAMID_GO_FIRSTLOOK_DROP you get
	matchre NDC_PYRAMID_FAIL /%failget%/i
	match NDC_PYRAMID_GO_FIRSTLOOK_GET_ITEM ...wait
	match NDC_PYRAMID_GO_FIRSTLOOK_GET_ITEM You may only type ahead
	put get my pyramid
	matchwait

NDC_PYRAMID_GO_FIRSTLOOK_DROP:
	pause %matchwaitpause
	match NDC_PYRAMID_GO_FIRSTLOOK_DROP ...wait
	match NDC_PYRAMID_GO_FIRSTLOOK_DROP You may only type ahead
	matchre NDC_PYRAMID_GO_FIRSTLOOK_OPEN /.*/i
	put drop my pyramid
	matchwait

NDC_PYRAMID_GO_FIRSTLOOK_OPEN:
	pause %matchwaitpause
	match NDC_PYRAMID_GO_FIRSTLOOK_OPEN ...wait
	match NDC_PYRAMID_GO_FIRSTLOOK_OPEN You may only type ahead
	matchre NDC_PYRAMID_GO_FIRSTLOOK_LOOK /.*/i
	put open pyramid
	matchwait

NDC_PYRAMID_GO_FIRSTLOOK_LOOK:
	pause %matchwaitpause
	match NDC_PYRAMID_GO_CHECKDRIED_YES_FORAGE There is nothing in there
	matchre NDC_PYRAMID_GO_FIRSTLOOK_GET /In the (.*) dried/i
	matchre NDC_PYRAMID_GO_FIRSTLOOK_GET /In the (.*)\./i
	match NDC_PYRAMID_GO_FIRSTLOOK_LOOK ...wait
	match NDC_PYRAMID_GO_FIRSTLOOK_LOOK You may only type ahead
	put look in pyramid
	matchwait

#-----------------------------------------------------

NDC_PYRAMID_GO_FIRSTLOOK_GET:
	pause %matchwaitpause
	match NDC_PYRAMID_GO_FIRSTLOOK_DROP You get
	matchre NDC_PYRAMID_GO_FIRSTLOOK_LOOK2 /%failget%/i
	match NDC_PYRAMID_GO_FIRSTLOOK_GET ...wait
	match NDC_PYRAMID_GO_FIRSTLOOK_GET You may only type ahead
	put get %huntbuddy_ndc_pyramid_item in pyramid
	matchwait 

NDC_PYRAMID_GO_FIRSTLOOK_DROP:
	pause %matchwaitpause
	match NDC_PYRAMID_GO_FIRSTLOOK_DROP ...wait
	match NDC_PYRAMID_GO_FIRSTLOOK_DROP You may only type ahead
	matchre NDC_PYRAMID_GO_FIRSTLOOK_GET /.*/i
	put drop my %huntbuddy_ndc_pyramid_item
	matchwait

NDC_PYRAMID_GO_FIRSTLOOK_LOOK2:
	pause %matchwaitpause
	match NDC_PYRAMID_GO_CHECKDRIED_YES_FORAGE There is nothing in there
	matchre NDC_PYRAMID_GO_FIRSTLOOK_CANTEMPTY /In the (.*) dried/i
	matchre NDC_PYRAMID_GO_FIRSTLOOK_CANTEMPTY /In the (.*)\./i
	match NDC_PYRAMID_GO_FIRSTLOOK_LOOK2 ...wait
	match NDC_PYRAMID_GO_FIRSTLOOK_LOOK2 You may only type ahead
	put look in pyramid
	matchwait

NDC_PYRAMID_GO_FIRSTLOOK_CANTEMPTY:
	setvariable flagndcpyramidstartedempty NO

NDC_PYRAMID_GO_FIRSTLOOK_CANTEMPTY_CLOSE:
	pause %matchwaitpause
	match NDC_PYRAMID_GO_FIRSTLOOK_CANTEMPTY_CLOSE ...wait
	match NDC_PYRAMID_GO_FIRSTLOOK_CANTEMPTY_CLOSE You may only type ahead
	matchre NDC_PYRAMID_NOTEMPTYSTART_FAIL /.*/i
	put close pyramid
	matchwait

#-----------------------------------------------------

NDC_PYRAMID_GO_OPEN:
	pause %matchwaitpause
	match NDC_PYRAMID_GO_OPEN ...wait
	match NDC_PYRAMID_GO_OPEN You may only type ahead
	matchre NDC_PYRAMID_GO_CHECKDRIED /.*/i
	put open pyramid
	matchwait

NDC_PYRAMID_GO_CHECKDRIED:
	pause %matchwaitpause
	match NDC_PYRAMID_GO_CHECKDRIED_YES_FORAGE There is nothing in there
	matchre NDC_PYRAMID_GO_CHECKDRIED_YES_DRIED /In the (.*) dried/i
	matchre NDC_PYRAMID_GO_CHECKDRIED_NO /In the (.*)\./i
	match NDC_PYRAMID_GO_CHECKDRIED ...wait
	match NDC_PYRAMID_GO_CHECKDRIED You may only type ahead
	put look in pyramid
	matchwait

NDC_PYRAMID_GO_CHECKDRIED_YES_DRIED:

NDC_PYRAMID_GO_CHECKDRIED_YES_DRIED_GET:
	pause %matchwaitpause
	match NDC_PYRAMID_GO_CHECKDRIED_YES_DRIED_GET ...wait
	match NDC_PYRAMID_GO_CHECKDRIED_YES_DRIED_GET You may only type ahead
	matchre NDC_PYRAMID_GO_CHECKDRIED_YES_DROP /.*/i
	put get %huntbuddy_ndc_pyramid_item in pyramid
	matchwait

NDC_PYRAMID_GO_CHECKDRIED_YES_DROP:
	pause %matchwaitpause
	match NDC_PYRAMID_GO_CHECKDRIED_YES_DROP ...wait
	match NDC_PYRAMID_GO_CHECKDRIED_YES_DROP You may only type ahead
	matchre NDC_PYRAMID_GO_CHECKDRIED_YES_FORAGE /.*/i
	put drop my %huntbuddy_ndc_pyramid_item
	matchwait

NDC_PYRAMID_GO_CHECKDRIED_YES_FORAGE:
	setvariable subreturnflagnp2 NDC_PYRAMID_GO_CHECKDRIED_YES_FORAGE
	setvariable nakedput1 forage
	setvariable nakedput2 %huntbuddy_ndc_pyramid_item
	goto SUB_NAKED_PUT2
SUBRETURN_NDC_PYRAMID_GO_CHECKDRIED_YES_FORAGE:

NDC_PYRAMID_GO_CHECKDRIED_YES_PUTIN:
	pause %matchwaitpause
	match NDC_PYRAMID_GO_CHECKDRIED_YES_PUTIN ...wait
	match NDC_PYRAMID_GO_CHECKDRIED_YES_PUTIN You may only type ahead
	matchre NDC_PYRAMID_GO_CHECKDRIED_YES_CLOSE /.*/i
	put put my %huntbuddy_ndc_pyramid_item in pyramid
	matchwait

NDC_PYRAMID_GO_CHECKDRIED_YES_CLOSE:
	pause %matchwaitpause
	match NDC_PYRAMID_GO_CHECKDRIED_YES_CLOSE ...wait
	match NDC_PYRAMID_GO_CHECKDRIED_YES_CLOSE You may only type ahead
	matchre NDC_PYRAMID_END /.*/i
	put close pyramid
	matchwait

#-----------------------------------------------------

NDC_PYRAMID_GO_CHECKDRIED_NO:
	pause %matchwaitpause
	match NDC_PYRAMID_GO_CHECKDRIED_NO ...wait
	match NDC_PYRAMID_GO_CHECKDRIED_NO You may only type ahead
	matchre NDC_PYRAMID_END /.*/i
	put close pyramid
	matchwait

NDC_PYRAMID_FAIL:
	echo
	echo *************************************************************
	echo *** Pyramid fail
	echo
	echo I can't find your pyramid
	echo 
	echo Either not on you or in a closed container
	echo
	echo Trying to continue
	echo
	echo *************************************************************
	echo
	pause 1
	goto NDC_PYRAMID_END


NDC_PYRAMID_NOTEMPTYSTART_FAIL:
	echo
	echo *************************************************************
	echo *** Pyramid fail
	echo
	echo Start script with empty pyramid
	echo 
	echo Skipping pyramid
	echo
	echo *************************************************************
	echo
	pause 1
	goto NDC_PYRAMID_END

NDC_PYRAMID_SKIP:
	echo
	echo *** NDC Mechanical Lore full, skipping pyramid
	echo
	goto NDC_PYRAMID_END

NDC_PYRAMID_END:

#_______________________________________________________________________forage
NDC_FORAGE_START:

NDC_FORAGE_TEST:
		goto NDC_FORAGE_TEST_%huntbuddy_ndc_forage_test
	NDC_FORAGE_TEST_ON:
		goto NDC_FORAGE_MENTAL_CHECK
	NDC_FORAGE_TEST_OFF:
		goto NDC_FORAGE_END

NDC_FORAGE_MENTAL_CHECK:
	setvariable subreturnflag NDC_FORAGE_MENTAL_CHECK
	setvariable skillclass FO
	goto SUB_MENTAL_CHECK
SUBRETURN_NDC_FORAGE_MENTAL_CHECK:

NDC_FORAGE_MENTAL_CHECK_TEST:
		goto NDC_FORAGE_MENTAL_CHECK_TEST_%skillmental
	NDC_FORAGE_MENTAL_CHECK_TEST_FULL:
		goto NDC_FORAGE_SKIP
	NDC_FORAGE_MENTAL_CHECK_TEST_NOTFULL:
		goto NDC_FORAGE_HANDS_CHECK

NDC_FORAGE_HANDS_CHECK:
		goto NDC_FORAGE_HANDS_CHECK_%flagndchands
	NDC_FORAGE_HANDS_CHECK_FULL:
		goto NDC_FORAGE_EMPTY_HANDS
	NDC_FORAGE_HANDS_CHECK_EMPTY:
		goto NDC_FORAGE_GO

NDC_FORAGE_EMPTY_HANDS:
	setvariable flagndchands EMPTY
	setvariable subreturnflagemptyhands NDC_FORAGE_EMPTY_HANDS
	goto SUB_EMPTY_HANDS
SUBRETURN_NDC_FORAGE_EMPTY_HANDS:

NDC_FORAGE_GO:

NDC_FORAGE_GO_RETREAT:
	setvariable subreturnflagretreat NDC_FORAGE_GO_RETREAT
	goto SUB_RETREAT
SUBRETURN_NDC_FORAGE_GO_RETREAT:

	echo
	echo *** NDC forage
	echo

NDC_FORAGE_GO_FORAGE:
	setvariable subreturnflagnp2 NDC_FORAGE_GO_FORAGE
	setvariable nakedput1 forage
	setvariable nakedput2 %huntbuddy_ndc_forage_item
	goto SUB_NAKED_PUT2
SUBRETURN_NDC_FORAGE_GO_FORAGE:

NDC_FORAGE_GO_DROP:
	pause %matchwaitpause
	match NDC_FORAGE_GO_DROP ...wait
	match NDC_FORAGE_GO_DROP You may only type ahead
	matchre NDC_FORAGE_END /.*/i
	put drop my %huntbuddy_ndc_forage_item
	matchwait

NDC_FORAGE_SKIP:
	echo
	echo *** NDC forage full, skipping
	echo
	goto NDC_FORAGE_END

NDC_FORAGE_END:



#_______________________________________________________________________origami
NDC_ORIGAMI_START:

NDC_ORIGAMI_TEST:
		goto NDC_ORIGAMI_TEST_%huntbuddy_ndc_origami_test
	NDC_ORIGAMI_TEST_ON:
		goto NDC_ORIGAMI_PREVIOUS_FAIL_TEST
	NDC_ORIGAMI_TEST_OFF:
		goto NDC_ORIGAMI_END_END

NDC_ORIGAMI_PREVIOUS_FAIL_TEST:
		goto NDC_ORIGAMI_PREVIOUS_FAIL_TEST_%flagorigamifail
	NDC_ORIGAMI_PREVIOUS_FAIL_TEST_YES:
		goto NDC_ORIGAMI_FAIL
	NDC_ORIGAMI_PREVIOUS_FAIL_TEST_NO:
		goto NDC_ORIGAMI_MENTAL_CHECK

NDC_ORIGAMI_MENTAL_CHECK:
	setvariable subreturnflag NDC_ORIGAMI_MENTAL_CHECK
	setvariable skillclass ML
	goto SUB_MENTAL_CHECK
SUBRETURN_NDC_ORIGAMI_MENTAL_CHECK:

NDC_ORIGAMI_MENTAL_CHECK_TEST:
		goto NDC_ORIGAMI_MENTAL_CHECK_TEST_%skillmental
	NDC_ORIGAMI_MENTAL_CHECK_TEST_FULL:
		goto NDC_ORIGAMI_SKIP
	NDC_ORIGAMI_MENTAL_CHECK_TEST_NOTFULL:
		goto NDC_ORIGAMI_HANDS_CHECK

NDC_ORIGAMI_HANDS_CHECK:
		goto NDC_ORIGAMI_HANDS_CHECK_%flagndchands
	NDC_ORIGAMI_HANDS_CHECK_FULL:
		goto NDC_ORIGAMI_EMPTY_HANDS
	NDC_ORIGAMI_HANDS_CHECK_EMPTY:
		goto NDC_ORIGAMI_GO

NDC_ORIGAMI_EMPTY_HANDS:
	setvariable flagndchands EMPTY
	setvariable subreturnflagemptyhands NDC_ORIGAMI_EMPTY_HANDS
	goto SUB_EMPTY_HANDS
SUBRETURN_NDC_ORIGAMI_EMPTY_HANDS:

NDC_ORIGAMI_GO:

NDC_ORIGAMI_GO_RETREAT:
	setvariable subreturnflagretreat NDC_ORIGAMI_GO_RETREAT
	goto SUB_RETREAT
SUBRETURN_NDC_ORIGAMI_GO_RETREAT:

	echo
	echo *** NDC origami
	echo

NDC_ORIGAMI_GO_ORIGAMI:

NDC_ORIGAMI_GO_OLD_PAPER:
	pause %matchwaitpause
	match NDC_ORIGAMI_GO_FOLD You get
	match NDC_ORIGAMI_GO_FOLD You are already holding
	match NDC_ORIGAMI_GO_NEW_PAPER What were you
	match NDC_ORIGAMI_GO_OLD_PAPER ...wait
	match NDC_ORIGAMI_GO_OLD_PAPER You may only type ahead
	put get my paper
	matchwait

NDC_ORIGAMI_GO_NEW_PAPER:
	pause %matchwaitpause
	match NDC_ORIGAMI_GO_STUDY You get a
	match NDC_ORIGAMI_GO_NEW_ENV The envelope is empty
	match NDC_ORIGAMI_GO_NEW_ENV I'm afraid that you can't pull that
	match NDC_ORIGAMI_GO_NEW_ENV You must be either wearing
	match NDC_ORIGAMI_GO_NEW_PAPER ...wait
	match NDC_ORIGAMI_GO_NEW_PAPER You may only type ahead
	put pull my envelope
	matchwait

NDC_ORIGAMI_GO_NEW_ENV:
	pause .5
	put remove my envelope
	pause .5
	put poke my envelope
	pause .5
	put empty right
	pause .5

NDC_ORIGAMI_GO_NEW_ENV_GET:
	pause %matchwaitpause
	match NDC_ORIGAMI_GO_NEW_ENV_WEAR You get
	match NDC_ORIGAMI_FAIL What were you
	match NDC_ORIGAMI_GO_NEW_ENV_GET ...wait
	match NDC_ORIGAMI_GO_NEW_ENV_GET You may only type ahead
	put get my envelope
	matchwait

NDC_ORIGAMI_GO_NEW_ENV_WEAR:
	pause %matchwaitpause
	matchre NDC_ORIGAMI_GO_NEW_PAPER /%hitwear%/i
	matchre NDC_ORIGAMI_FAIL /%failwear%/i
	match NDC_ORIGAMI_GO_NEW_ENV_WEAR ...wait
	match NDC_ORIGAMI_GO_NEW_ENV_WEAR You may only type ahead
	put wear my envelope
	matchwait

NDC_ORIGAMI_GO_STUDY:

NDC_ORIGAMI_GO_STUDY_RETREAT:
	setvariable subreturnflagretreat NDC_ORIGAMI_GO_STUDY_RETREAT
	goto SUB_RETREAT
SUBRETURN_NDC_ORIGAMI_GO_STUDY_RETREAT:

NDC_ORIGAMI_GO_STUDY_STUDY:
	pause %matchwaitpause
	match NDC_ORIGAMI_GO_STUDY_PRIMER You must be holding
	match NDC_ORIGAMI_GO_STUDY_INSTRUCTIONS I could not find
	match NDC_ORIGAMI_GO_FOLD You've already started
	match NDC_ORIGAMI_GO_STUDY_STUDY ...wait
	match NDC_ORIGAMI_GO_STUDY_STUDY You may only type ahead
	put look my %huntbuddy_ndc_origami_item inst in my primer
	matchwait

NDC_ORIGAMI_GO_STUDY_PRIMER:
	pause %matchwaitpause
	match NDC_ORIGAMI_GO_STUDY_PRIMER ...wait
	match NDC_ORIGAMI_GO_STUDY_PRIMER You may only type ahead
	matchre NDC_ORIGAMI_GO_STOW_PAPER /.*/i
	put study my %huntbuddy_ndc_origami_item instruction in my primer
	matchwait

NDC_ORIGAMI_GO_STUDY_INSTRUCTIONS:
	pause %matchwaitpause
	match NDC_ORIGAMI_GO_STUDY_INSTRUCTIONS ...wait
	match NDC_ORIGAMI_GO_STUDY_INSTRUCTIONS You may only type ahead
	matchre NDC_ORIGAMI_GO_STOW_PAPER /.*/i
	put study my %huntbuddy_ndc_origami_item instruction
	matchwait

NDC_ORIGAMI_GO_FOLD:

NDC_ORIGAMI_GO_FOLD_RETREAT:
	setvariable subreturnflagretreat NDC_ORIGAMI_GO_FOLD_RETREAT
	goto SUB_RETREAT
SUBRETURN_NDC_ORIGAMI_GO_FOLD_RETREAT:

NDC_ORIGAMI_GO_FOLD_FOLD:
	pause %matchwaitpause
	match NDC_ORIGAMI_GO_STOW_PAPER but it doesn't come out quite
	match NDC_ORIGAMI_GO_STOW_PAPER make another fold
	match NDC_ORIGAMI_GO_STOW_PAPER a fold
	match NDC_ORIGAMI_GO_COMPLETED_FIGURE the final fold
	match NDC_ORIGAMI_GO_STOW_PAPER It's too difficult to fold anything while fighting
	match NDC_ORIGAMI_GO_FOLD_FOLD ...wait
	match NDC_ORIGAMI_GO_FOLD_FOLD You may only type ahead
	put fold my paper
	matchwait

NDC_ORIGAMI_GO_STOW_PAPER:
	pause 1
RTCHECK_NDC_ORIGAMI_GO_STOW_PAPER:
	pause %rtcheckpause
	match RTCHECK_NDC_ORIGAMI_GO_STOW_PAPER_READY What were you referring to
	match RTCHECK_NDC_ORIGAMI_GO_STOW_PAPER ...wait
	match RTCHECK_NDC_ORIGAMI_GO_STOW_PAPER You may only type ahead
	put get my rtchecking
	matchwait
RTCHECK_NDC_ORIGAMI_GO_STOW_PAPER_READY:

NDC_ORIGAMI_GO_STOW_PAPER_STOW:
	pause %matchwaitpause
	match NDC_ORIGAMI_GO_STOW_PAPER_STOW ...wait
	match NDC_ORIGAMI_GO_STOW_PAPER_STOW You may only type ahead
	matchre NDC_ORIGAMI_END /.*/i
	put stow my paper
	matchwait

NDC_ORIGAMI_GO_COMPLETED_FIGURE:
	pause 1
RTCHECK_NDC_ORIGAMI_GO_COMPLETED_FIGURE:
	pause %rtcheckpause
	match RTCHECK_NDC_ORIGAMI_GO_COMPLETED_FIGURE_READY What were you referring to
	match RTCHECK_NDC_ORIGAMI_GO_COMPLETED_FIGURE ...wait
	match RTCHECK_NDC_ORIGAMI_GO_COMPLETED_FIGURE You may only type ahead
	put get my rtchecking
	matchwait
RTCHECK_NDC_ORIGAMI_GO_COMPLETED_FIGURE_READY:

NDC_ORIGAMI_GO_COMPLETED_FIGURE_FIGURE:
	pause %matchwaitpause
	match NDC_ORIGAMI_GO_COMPLETED_FIGURE_FIGURE ...wait
	match NDC_ORIGAMI_GO_COMPLETED_FIGURE_FIGURE You may only type ahead
	matchre NDC_ORIGAMI_END /.*/i
	put exhale my %huntbuddy_ndc_origami_item
	matchwait

NDC_ORIGAMI_FAIL:
	echo
	echo *************************************************************
	echo *** Origami fail
	echo
	echo Out of paper or couldn't find instructions
	echo 
	echo Skipping origami
	echo
	echo *************************************************************
	echo
	pause .5
	setvariable flagorigamifail YES
	goto NDC_ORIGAMI_END

NDC_ORIGAMI_SKIP:
	echo
	echo *** NDC mechanical lore full, skipping origami
	echo
	goto NDC_ORIGAMI_END_END

NDC_ORIGAMI_END:

NDC_ORIGAMI_END_EMPTYRIGHT:
	pause %matchwaitpause
	match NDC_ORIGAMI_END_EMPTYRIGHT ...wait
	match NDC_ORIGAMI_END_EMPTYRIGHT You may only type ahead
	matchre NDC_ORIGAMI_END_END /.*/i
	put empty right
	matchwait

NDC_ORIGAMI_END_END:


#_______________________________________________________________________NDC end
NDC_ACTIONS_END:

NDC_ACTIONS_END_CHECK_HANDS:
		goto NDC_ACTIONS_END_CHECK_HANDS_%flagndchands
	NDC_ACTIONS_END_CHECK_HANDS_FULL:
		goto NDC_ACTIONS_END_END
	NDC_ACTIONS_END_CHECK_HANDS_EMPTY:
		goto NDC_ACTIONS_END_REEQUIP

#_______________________________________________________________________NDC reequip arms
NDC_ACTIONS_END_REEQUIP:

NDC_ACTIONS_END_EMPTYLEFT:
	pause %matchwaitpause
	matchre NDC_ACTIONS_END_EMPTYRIGHT /You drop|Your (.*) already empty/i
	match NDC_ACTIONS_END_EMPTYLEFT ...wait
	match NDC_ACTIONS_END_EMPTYLEFT You may only type ahead
	put empty left
	matchwait

NDC_ACTIONS_END_EMPTYRIGHT:
	pause %matchwaitpause
	matchre NDC_ACTIONS_END_EMPTY_DONE /You drop|Your (.*) already empty/i
	match NDC_ACTIONS_END_EMPTYRIGHT ...wait
	match NDC_ACTIONS_END_EMPTYRIGHT You may only type ahead
	put empty right
	matchwait

NDC_ACTIONS_END_EMPTY_DONE:

NDC_ACTIONS_END__EQUIP_ARMS_GO:
	setvariable subreturnflagequiparms NDC_ACTIONS_END__EQUIP_ARMS_GO
	goto SUB_EQUIP_ARMS
SUBRETURN_NDC_ACTIONS_END__EQUIP_ARMS_GO:


NDC_ACTIONS_END_END:
	goto NDC_ACTIONS_RETURN

#############################################################################
###########################    GUILD SPECIALS SECTION    ####################
#############################################################################

######################### FISSURE ###################

#_______________________________________________________________________Fissure
FISSURE:

FISSURE_START:
		goto FISSURE_START_%huntbuddy_fissure_master_test
	FISSURE_START_ON:
		goto FISSURE_CHECK
	FISSURE_START_OFF:
		goto FISSURE_END

FISSURE_CHECK:
	pause %matchwaitpause
	match FISSURE_SKIP airy fissure
	match FISSURE_SKIP fiery fissure
	match FISSURE_SKIP aqueous fissure
	match FISSURE_SKIP chaotic fissure
	match FISSURE_SKIP earthen fissure
	match FISSURE_SKIP electrical fissure
	match FISSURE_GO Obvious paths
	match FISSURE_GO Obvious exits
	match FISSURE_DARK you can't see a thing
	match FISSURE_CHECK ...wait
	match FISSURE_CHECK You may only type ahead
	put look
	matchwait

FISSURE_DARK:
	echo
	echo *** It's too dark, need light
	echo
	goto FISSURE_END

FISSURE_SKIP:
	echo
	echo *** Fissure already out, skipping
	echo
	goto FISSURE_END

FISSURE_GO:

FISSURE_GO_HUM_STOP:
	setvariable subreturnflaghumstop FISSURE_GO_HUM_STOP
	goto SUB_HUM_STOP
SUBRETURN_FISSURE_GO_HUM_STOP:

FISSURE_SETVAR:
	setvariable spell_name fiss
	setvariable spell_prep_power %huntbuddy_fissure_prep_power
	setvariable spell_harn_test %huntbuddy_fissure_harn_test
	setvariable spell_harn_power %huntbuddy_fissure_harn_power
	setvariable spell_harn_loop %huntbuddy_fissure_harn_loop
	setvariable spell_cam_test %huntbuddy_fissure_cam_test
	setvariable spell_cam_power %huntbuddy_fissure_cam_power
	setvariable spell_cam_loop %huntbuddy_fissure_cam_loop
	setvariable spell_cast_pause %huntbuddy_fissure_cast_pause
	setvariable spell_targeted_test OFF

FISSURE_SPELL_PREP:
	setvariable subreturnflag FISSURE_SPELL_PREP
	goto SUB_SPELL_PREP
SUBRETURN_FISSURE_SPELL_PREP:

	echo
	echo *** Casting Fissure
	echo

FISSURE_SPELL_CAST:
	pause %matchwaitpause
	match FISSURE_SPELL_CAST ...wait
	match FISSURE_SPELL_CAST You may only type ahead
	matchre FISSURE_SPELL_CAST_PAUSE /.*/i
	put cast %huntbuddy_fissure_element
	matchwait

FISSURE_SPELL_CAST_PAUSE:
	pause %aftercastrtpause

RTCHECK_FISSURE_SPELL_CAST:
	pause 1
	pause %rtcheckpause
	match RTCHECK_FISSURE_SPELL_CAST_READY What were you referring to
	match RTCHECK_FISSURE_SPELL_CAST ...wait
	match RTCHECK_FISSURE_SPELL_CAST You may only type ahead
	put get my rtchecking
	matchwait
RTCHECK_FISSURE_SPELL_CAST_READY:

FISSURE_RELEASE:
	pause %matchwaitpause
	match FISSURE_RELEASE ...wait
	match FISSURE_RELEASE You may only type ahead
	matchre FISSURE_END /.*/i
	put release
	matchwait

FISSURE_END:
	goto FISSURE_RETURN



######################### MANTLE of FLAME ###################
#_______________________________________________________________________MOF
MOF:

MOF_START:
		goto MOF_START_%huntbuddy_mof_master_test
	MOF_START_ON:
		goto MOF_CHECK
	MOF_START_OFF:
		goto MOF_END

MOF_CHECK:
	pause %matchwaitpause
	match MOF_SKIP Mantle of Flame
	match MOF_GO Roundtime
	match MOF_CHECK ...wait
	match MOF_CHECK You may only type ahead
	put pow
	matchwait

MOF_GO:

MOF_GO_HUM_STOP:
	setvariable subreturnflaghumstop MOF_GO_HUM_STOP
	goto SUB_HUM_STOP
SUBRETURN_MOF_GO_HUM_STOP:

#_______________________________________________________________________MOF ES
MOF_ES:

MOF_ES_1_PREP:
	setvariable subreturnflag MOF_ES_1_PREP
	setvariable spell_name es
	setvariable spell_prep_power %mofesmana
	setvariable spell_harn_test OFF
	setvariable spell_harn_power 10
	setvariable spell_harn_loop 1
	setvariable spell_cam_test OFF
	setvariable spell_cam_power 11
	setvariable spell_cam_loop 1
	setvariable spell_cast_pause %mofespause
	setvariable spell_targeted_test OFF
	goto SUB_SPELL_PREP
SUBRETURN_MOF_ES_1_PREP:

MOF_ES_1_CAST:
	pause %matchwaitpause
	match MOF_ES_1_CAST ...wait
	match MOF_ES_1_CAST You may only type ahead
	matchre MOF_ES_1_CAST_PAUSE /.*/i
	put cast
	matchwait

MOF_ES_1_CAST_PAUSE:
	pause %aftercastrtpause

RTCHECK_MOF_ES_1_CAST:
	pause %rtcheckpause
	match RTCHECK_MOF_ES_1_CAST_READY What were you referring to
	match RTCHECK_MOF_ES_1_CAST ...wait
	match RTCHECK_MOF_ES_1_CAST You may only type ahead
	put get my rtchecking
	matchwait
RTCHECK_MOF_ES_1_CAST_READY:

MOF_ES_2_PREP:
	setvariable subreturnflag MOF_ES_2_PREP
	setvariable spell_name es
	setvariable spell_prep_power %mofesmana
	setvariable spell_harn_test OFF
	setvariable spell_harn_power 10
	setvariable spell_harn_loop 1
	setvariable spell_cam_test OFF
	setvariable spell_cam_power 11
	setvariable spell_cam_loop 1
	setvariable spell_cast_pause %mofespause
	setvariable spell_targeted_test OFF
	goto SUB_SPELL_PREP
SUBRETURN_MOF_ES_2_PREP:

MOF_ES_2_CAST:
	pause %matchwaitpause
	match MOF_ES_2_CAST ...wait
	match MOF_ES_2_CAST You may only type ahead
	matchre MOF_ES_2_CAST_PAUSE /.*/i
	put cast
	matchwait

MOF_ES_2_CAST_PAUSE:
	pause %aftercastrtpause

RTCHECK_MOF_ES_2_CAST:
	pause %rtcheckpause
	match RTCHECK_MOF_ES_2_CAST_READY What were you referring to
	match RTCHECK_MOF_ES_2_CAST ...wait
	match RTCHECK_MOF_ES_2_CAST You may only type ahead
	put get my rtchecking
	matchwait
RTCHECK_MOF_ES_2_CAST_READY:

MOF_ES_3_PREP:
	setvariable subreturnflag MOF_ES_3_PREP
	setvariable spell_name es
	setvariable spell_prep_power %mofesmana
	setvariable spell_harn_test OFF
	setvariable spell_harn_power 10
	setvariable spell_harn_loop 1
	setvariable spell_cam_test OFF
	setvariable spell_cam_power 11
	setvariable spell_cam_loop 1
	setvariable spell_cast_pause %mofespause
	setvariable spell_targeted_test OFF
	goto SUB_SPELL_PREP
SUBRETURN_MOF_ES_3_PREP:

MOF_ES_3_CAST:
	pause %matchwaitpause
	match MOF_ES_3_CAST ...wait
	match MOF_ES_3_CAST You may only type ahead
	matchre MOF_ES_3_CAST_PAUSE /.*/i
	put cast
	matchwait

MOF_ES_3_CAST_PAUSE:
	pause %aftercastrtpause

RTCHECK_MOF_ES_3_CAST:
	pause %rtcheckpause
	match RTCHECK_MOF_ES_3_CAST_READY What were you referring to
	match RTCHECK_MOF_ES_3_CAST ...wait
	match RTCHECK_MOF_ES_3_CAST You may only type ahead
	put get my rtchecking
	matchwait
RTCHECK_MOF_ES_3_CAST_READY:

MOF_ES_4_PREP:
	setvariable subreturnflag MOF_ES_4_PREP
	setvariable spell_name es
	setvariable spell_prep_power %mofesmana
	setvariable spell_harn_test OFF
	setvariable spell_harn_power 10
	setvariable spell_harn_loop 1
	setvariable spell_cam_test OFF
	setvariable spell_cam_power 11
	setvariable spell_cam_loop 1
	setvariable spell_cast_pause %mofespause
	setvariable spell_targeted_test OFF
	goto SUB_SPELL_PREP
SUBRETURN_MOF_ES_4_PREP:

MOF_ES_4_CAST:
	pause %matchwaitpause
	match MOF_ES_4_CAST ...wait
	match MOF_ES_4_CAST You may only type ahead
	matchre MOF_ES_4_CAST_PAUSE /.*/i
	put cast
	matchwait

MOF_ES_4_CAST_PAUSE:
	pause %aftercastrtpause

RTCHECK_MOF_ES_4_CAST:
	pause %rtcheckpause
	match RTCHECK_MOF_ES_4_CAST_READY What were you referring to
	match RTCHECK_MOF_ES_4_CAST ...wait
	match RTCHECK_MOF_ES_4_CAST You may only type ahead
	put get my rtchecking
	matchwait
RTCHECK_MOF_ES_4_CAST_READY:

MOF_ES_5_PREP:
	setvariable subreturnflag MOF_ES_5_PREP
	setvariable spell_name es
	setvariable spell_prep_power %mofesmana
	setvariable spell_harn_test OFF
	setvariable spell_harn_power 10
	setvariable spell_harn_loop 1
	setvariable spell_cam_test OFF
	setvariable spell_cam_power 11
	setvariable spell_cam_loop 1
	setvariable spell_cast_pause %mofespause
	setvariable spell_targeted_test OFF
	goto SUB_SPELL_PREP
SUBRETURN_MOF_ES_5_PREP:

MOF_ES_5_CAST:
	pause %matchwaitpause
	match MOF_ES_5_CAST ...wait
	match MOF_ES_5_CAST You may only type ahead
	matchre MOF_ES_5_CAST_PAUSE /.*/i
	put cast
	matchwait

MOF_ES_5_CAST_PAUSE:
	pause %aftercastrtpause

RTCHECK_MOF_ES_5_CAST:
	pause %rtcheckpause
	match RTCHECK_MOF_ES_5_CAST_READY What were you referring to
	match RTCHECK_MOF_ES_5_CAST ...wait
	match RTCHECK_MOF_ES_5_CAST You may only type ahead
	put get my rtchecking
	matchwait
RTCHECK_MOF_ES_5_CAST_READY:

MOF_ES_RELEASE:
	pause %matchwaitpause
	match MOF_ES_RELEASE ...wait
	match MOF_ES_RELEASE You may only type ahead
	matchre MOF_ES_CHECK /.*/i
	put release
	matchwait

MOF_ES_CHECK:
	pause %matchwaitpause
	matchre MOF_SPELL_PREP /Ethereal Shield (.*) two anlaen/i
	match MOF_ES Roundtime
	match MOF_ES_CHECK ...wait
	match MOF_ES_CHECK You may only type ahead
	put pow
	matchwait

#_______________________________________________________________________MOF MOF
MOF_SPELL_PREP:
	setvariable subreturnflag MOF_SPELL_PREP
	setvariable spell_name mof
	setvariable spell_prep_power %huntbuddy_mof_prep_power
	setvariable spell_harn_test %huntbuddy_mof_harn_test
	setvariable spell_harn_power %huntbuddy_mof_harn_power
	setvariable spell_harn_loop %huntbuddy_mof_harn_loop
	setvariable spell_cam_test %huntbuddy_mof_cam_test
	setvariable spell_cam_power %huntbuddy_mof_cam_power
	setvariable spell_cam_loop %huntbuddy_mof_cam_loop
	setvariable spell_cast_pause %huntbuddy_mof_cast_pause
	setvariable spell_targeted_test OFF
	goto SUB_SPELL_PREP
SUBRETURN_MOF_SPELL_PREP:

	echo
	echo *** Casting MOF
	echo

MOF_SPELL_CAST:
	pause %matchwaitpause
	match MOF_SPELL_CAST ...wait
	match MOF_SPELL_CAST You may only type ahead
	matchre MOF_SPELL_CAST_PAUSE /.*/i
	put cast
	matchwait

MOF_SPELL_CAST_PAUSE:
	pause %aftercastrtpause

RTCHECK_MOF_SPELL_CAST:
	pause %rtcheckpause
	match RTCHECK_MOF_SPELL_CAST_READY What were you referring to
	match RTCHECK_MOF_SPELL_CAST ...wait
	match RTCHECK_MOF_SPELL_CAST You may only type ahead
	put get my rtchecking
	matchwait
RTCHECK_MOF_SPELL_CAST_READY:

MOF_RELEASE:
#	pause 1
	pause %matchwaitpause
	match MOF_RELEASE ...wait
	match MOF_RELEASE You may only type ahead
	matchre MOF_END /.*/i
	put release
	matchwait

MOF_SKIP:
	echo
	echo *** MoF up, skipping
	echo
	goto MOF_END

MOF_END:
	goto MOF_RETURN






#############################################################################
###########################    SUBROUTINE SECTION    ########################
#############################################################################
#LABEL:
#	setvariable %subreturnflag label
#	goto SUB_X
#SUBRETURN_LABEL:
#SUB_X:
#	<process>
#	goto SUBRETURN_%subreturnflag
#############################################################################



######################### EQUIP CALLED WEAPON RH SUB ############################################
#____________________________________________________________sub equip called weapon to right hand
# variables needed:
# 	subreturnflagequipweaponrh

SUB_EQUIP_WEAPON:
SUB_EQUIP_WEAPON_CALLED_RIGHTHAND:
SUB_EQUIP_WEAPON_CALLED_RH:
SUB_EQUIP_WEAPON_RIGHTHAND:
SUB_EQUIP_WEAPON_RH:

SUB_EQUIP_WEAPON_RH_START:


SUB_EQUIP_WEAPON_RH_START_TEST:
		goto SUB_EQUIP_WEAPON_RH_START_TEST_%huntbuddy_weapon_style_noweap_test
	SUB_EQUIP_WEAPON_RH_START_TEST_ON:
		goto SUB_EQUIP_WEAPON_RH_END
	SUB_EQUIP_WEAPON_RH_START_TEST_OFF:
		goto SUB_EQUIP_WEAPON_RH_WIELD

SUB_EQUIP_WEAPON_RH_WIELD:
	pause %matchwaitpause
	matchre SUB_EQUIP_WEAPON_RH_END /%hitwield%/i
	match SUB_EQUIP_WEAPON_RH_REMOVE You're wearing
	match SUB_EQUIP_WEAPON_RH_NOT_FOUND Wield what
	match SUB_EQUIP_WEAPON_RH_END You're already holding
	match SUB_EQUIP_WEAPON_RH_WIELD ...wait
	match SUB_EQUIP_WEAPON_RH_WIELD You may only type ahead
	put wield right my %huntbuddy_weapon_name
	matchwait

SUB_EQUIP_WEAPON_RH_REMOVE:
	pause %matchwaitpause
	matchre SUB_EQUIP_WEAPON_RH_END /%hitremove%/i
	matchre SUB_EQUIP_WEAPON_RH_NOT_FOUND /%failremove%/i
	match SUB_EQUIP_WEAPON_RH_REMOVE ...wait
	match SUB_EQUIP_WEAPON_RH_REMOVE You may only type ahead
	put remove my %huntbuddy_weapon_name
	matchwait

SUB_EQUIP_WEAPON_RH_NOT_FOUND:
	echo
	echo *************************************************************
	echo
	echo *** WARNING 
	echo
	echo Equip weapon fail - weapon not found
	echo 
	echo Check your situation and/or setup then restart.
	echo
	echo Exiting Script.
	echo 
	echo *************************************************************
	echo
	pause 1
	goto END_SCRIPT

SUB_EQUIP_WEAPON_RH_END:
	goto SUBRETURN_%subreturnflagequipweaponrh


######################### EQUIP SHIELD SUB ############################################
#____________________________________________________________________sub equip shield
# variables needed:
# 	subreturnflagequipshield

SUB_EQUIP_SHIELD:

SUB_EQUIP_SHIELD_START:

SUB_EQUIP_SHIELD_START_TEST:
		goto SUB_EQUIP_SHIELD_START_TEST_%huntbuddy_shield_use
	SUB_EQUIP_SHIELD_START_TEST_OFF:
		goto SUB_EQUIP_SHIELD_END
	SUB_EQUIP_SHIELD_START_TEST_ARMWORN:
		goto SUB_EQUIP_SHIELD_ARMWORN
	SUB_EQUIP_SHIELD_START_TEST_HANDHELD:
		goto SUB_EQUIP_SHIELD_HANDHELD

SUB_EQUIP_SHIELD_HANDHELD:

SUB_EQUIP_SHIELD_HANDHELD_WIELD:
	pause %matchwaitpause
	matchre SUB_EQUIP_SHIELD_END /%hitwield%/i
	match SUB_EQUIP_SHIELD_HANDHELD_REMOVE You're wearing
	match SUB_EQUIP_SHIELD_NOT_FOUND Wield what
	match SUB_EQUIP_SHIELD_END You're already holding
	match SUB_EQUIP_SHIELD_HANDHELD_WIELD ...wait
	match SUB_EQUIP_SHIELD_HANDHELD_WIELD You may only type ahead
	put wield left my %huntbuddy_shield_name
	matchwait

SUB_EQUIP_SHIELD_HANDHELD_REMOVE:
	pause %matchwaitpause
	matchre SUB_EQUIP_SHIELD_END /%hitremove%/i
	match SUB_EQUIP_SHIELD_END You loosen
	matchre SUB_EQUIP_SHIELD_NOT_FOUND /%failremove%/i
	match SUB_EQUIP_SHIELD_HANDHELD_REMOVE ...wait
	match SUB_EQUIP_SHIELD_HANDHELD_REMOVE You may only type ahead
	put remove my %huntbuddy_shield_name
	matchwait

SUB_EQUIP_SHIELD_ARMWORN:

SUB_EQUIP_SHIELD_ARMWORN_ALREADYDONE_TEST:
		goto SUB_EQUIP_SHIELD_ARMWORN_ALREADYDONE_TEST_%flagarmworndone
	SUB_EQUIP_SHIELD_ARMWORN_ALREADYDONE_TEST_DONE:
		goto SUB_EQUIP_SHIELD_END
	SUB_EQUIP_SHIELD_ARMWORN_ALREADYDONE_TEST_NOTDONE:
		goto SUB_EQUIP_SHIELD_ARMWORN_WIELD

SUB_EQUIP_SHIELD_ARMWORN_WIELD:
	pause %matchwaitpause
	matchre SUB_EQUIP_SHIELD_ARMWORN_APP /%hitwield%/i
	match SUB_EQUIP_SHIELD_ARMWORN_REMOVE You're wearing
	match SUB_EQUIP_SHIELD_NOT_FOUND Wield what
	match SUB_EQUIP_SHIELD_ARMWORN_APP You're already holding
	match SUB_EQUIP_SHIELD_ARMWORN_WIELD ...wait
	match SUB_EQUIP_SHIELD_ARMWORN_WIELD You may only type ahead
	put wield left my %huntbuddy_shield_name
	matchwait

SUB_EQUIP_SHIELD_ARMWORN_REMOVE:
	pause %matchwaitpause
	matchre SUB_EQUIP_SHIELD_ARMWORN_APP /%hitremove%/i
	match SUB_EQUIP_SHIELD_ARMWORN_WEAR You loosen
	matchre SUB_EQUIP_SHIELD_NOT_FOUND /%failremove%/i
	match SUB_EQUIP_SHIELD_ARMWORN_REMOVE ...wait
	match SUB_EQUIP_SHIELD_ARMWORN_REMOVE You may only type ahead
	put remove my %huntbuddy_shield_name
	matchwait

SUB_EQUIP_SHIELD_ARMWORN_APP:
	pause %matchwaitpause
	matchre sUB_EQUIP_SHIELD_ARMWORN_ADJUST /It appears (.*) slung over one shoulder/i
	matchre SUB_EQUIP_SHIELD_ARMWORN_WEAR /It appears (.*) worn on the left arm/i
	match SUB_EQUIP_SHIELD_ARMWORN_APP ...wait
	match SUB_EQUIP_SHIELD_ARMWORN_APP You may only type ahead
	put app my %shield_name_called quick
	matchwait

SUB_EQUIP_SHIELD_ARMWORN_ADJUST:
	pause 1
	match SUB_EQUIP_SHIELD_ARMWORN_WEAR You adjust
	match SUB_EQUIP_SHIELD_ARMWORN_ADJUST ...wait
	match SUB_EQUIP_SHIELD_ARMWORN_ADJUST You may only type ahead
	put adjust my %huntbuddy_shield_name
	matchwait

SUB_EQUIP_SHIELD_ARMWORN_WEAR:
	pause 1
	matchre SUB_EQUIP_SHIELD_END /%hitwear%/i
	match SUB_EQUIP_SHIELD_ARMWORN_WEAR ...wait
	match SUB_EQUIP_SHIELD_ARMWORN_WEAR You may only type ahead
	put wear my %huntbuddy_shield_name
	matchwait


SUB_EQUIP_SHIELD_NOT_FOUND:
	echo
	echo *************************************************************
	echo
	echo *** WARNING 
	echo
	echo Equip shield fail - shield not found
	echo 
	echo Check your situation and/or setup then restart.
	echo
	echo Exiting Script.
	echo 
	echo *************************************************************
	echo
	pause 1
	goto END_SCRIPT

SUB_EQUIP_SHIELD_END:
	setvariable flagarmworndone DONE
	goto SUBRETURN_%subreturnflagequipshield

######################### REMOVE ALL ARMS SUB ############################################
# variables needed:
# 	subreturnflagremoveallarms

SUB_REMOVE_ALL_ARMS:

SUB_REMOVE_ALL_ARMS_EMPTYHANDS:
	setvariable subreturnflagemptyhands SUB_REMOVE_ALL_ARMS_EMPTYHANDS
	goto SUB_EMPTY_HANDS
SUBRETURN_SUB_REMOVE_ALL_ARMS_EMPTYHANDS:

SUB_REMOVE_ALL_ARMS_ARMWORN_REMOVE:
	pause %matchwaitpause
	match SUB_REMOVE_ALL_ARMS_ARMWORN_REMOVE_STOW You loosen the straps
	match SUB_REMOVE_ALL_ARMS_ARMWORN_REMOVE_WEAR You sling
	matchre SUB_REMOVE_ALL_ARMS_HANDHELD_REMOVE /%failremove%/i
	match SUB_REMOVE_ALL_ARMS_ARMWORN_REMOVE ...wait
	match SUB_REMOVE_ALL_ARMS_ARMWORN_REMOVE You may only type ahead
	put remove my %huntbuddy_shield_name
	matchwait

SUB_REMOVE_ALL_ARMS_ARMWORN_REMOVE_STOW:
	pause %matchwaitpause
	matchre SUB_REMOVE_ALL_ARMS_END /%hitstow%/i
	matchre SUB_REMOVE_ALL_ARMS_ARMWORN_REMOVE_ADJUST /%failstowcall%/i
	matchre SUB_REMOVE_ALL_ARMS_ARMWORN_REMOVE_ADJUST /%failstowfull%/i
	matchre SUB_REMOVE_ALL_ARMS_ARMWORN_REMOVE_ADJUST /%failstowsize%/i
	matchre ERROR_STOW /%errorstow%/i
	match SUB_REMOVE_ALL_ARMS_ARMWORN_REMOVE_STOW ...wait
	match SUB_REMOVE_ALL_ARMS_ARMWORN_REMOVE_STOW You may only type ahead
	put stow left
	matchwait

SUB_REMOVE_ALL_ARMS_ARMWORN_REMOVE_ADJUST:
	pause %matchwaitpause
	match SUB_REMOVE_ALL_ARMS_ARMWORN_REMOVE_ADJUST ...wait
	match SUB_REMOVE_ALL_ARMS_ARMWORN_REMOVE_ADJUST You may only type ahead
	matchre SUB_REMOVE_ALL_ARMS_ARMWORN_REMOVE_WEAR /.*/i
	put adjust my %huntbuddy_shield_name
	matchwait

SUB_REMOVE_ALL_ARMS_ARMWORN_REMOVE_WEAR:
	pause %matchwaitpause
	matchre SUB_REMOVE_ALL_ARMS_HANDHELD_REMOVE /%hitwear%/i
	matchre ERROR_SHIELD /%failwear%/i
	match SUB_REMOVE_ALL_ARMS_ARMWORN_REMOVE_WEAR ...wait
	match SUB_REMOVE_ALL_ARMS_ARMWORN_REMOVE_WEAR You may only type ahead
	put wear my %huntbuddy_shield_name
	matchwait

SUB_REMOVE_ALL_ARMS_HANDHELD_REMOVE:
	pause %matchwaitpause
	match SUB_REMOVE_ALL_ARMS_HANDHELD_REMOVE_STOW You loosen the straps
	match SUB_REMOVE_ALL_ARMS_HANDHELD_REMOVE_WEAR You sling
	matchre SUB_REMOVE_ALL_ARMS_END /%failremove%/i
	match SUB_REMOVE_ALL_ARMS_HANDHELD_REMOVE ...wait
	match SUB_REMOVE_ALL_ARMS_HANDHELD_REMOVE You may only type ahead
	put remove my %huntbuddy_shield_name
	matchwait

SUB_REMOVE_ALL_ARMS_HANDHELD_REMOVE_STOW:
	pause %matchwaitpause
	matchre SUB_REMOVE_ALL_ARMS_VERIFY /%hitstow%/i
	matchre SUB_REMOVE_ALL_ARMS_HANDHELD_REMOVE_ADJUST /%failstowcall%/i
	matchre SUB_REMOVE_ALL_ARMS_HANDHELD_REMOVE_ADJUST /%failstowfull%/i
	matchre SUB_REMOVE_ALL_ARMS_HANDHELD_REMOVE_ADJUST /%failstowsize%/i
	matchre ERROR_STOW /%errorstow%/i
	match SUB_REMOVE_ALL_ARMS_HANDHELD_REMOVE_STOW ...wait
	match SUB_REMOVE_ALL_ARMS_HANDHELD_REMOVE_STOW You may only type ahead
	put stow left
	matchwait

SUB_REMOVE_ALL_ARMS_HANDHELD_REMOVE_ADJUST:
	pause %matchwaitpause
	match SUB_REMOVE_ALL_ARMS_HANDHELD_REMOVE_ADJUST ...wait
	match SUB_REMOVE_ALL_ARMS_HANDHELD_REMOVE_ADJUST You may only type ahead
	matchre SUB_REMOVE_ALL_ARMS_HANDHELD_REMOVE_WEAR /.*/i
	put adjust my %huntbuddy_shield_name
	matchwait

SUB_REMOVE_ALL_ARMS_HANDHELD_REMOVE_WEAR:
	pause %matchwaitpause
	matchre SUB_REMOVE_ALL_ARMS_END /%hitwear%/i
	matchre ERROR_SHIELD /%failwear%/i
	match SUB_REMOVE_ALL_ARMS_HANDHELD_REMOVE_WEAR ...wait
	match SUB_REMOVE_ALL_ARMS_HANDHELD_REMOVE_WEAR You may only type ahead
	put wear my %huntbuddy_shield_name
	matchwait

SUB_REMOVE_ALL_ARMS_END:

SUB_REMOVE_ALL_ARMS_END_RETREAT:
	setvariable subreturnflagretreat SUB_REMOVE_ALL_ARMS_END_RETREAT
	goto SUB_RETREAT
SUBRETURN_SUB_REMOVE_ALL_ARMS_END_RETREAT:

	goto SUBRETURN_%subreturnflagremoveallarms

######################### EQUIP ARMS SUB ###############################################
# needs subreturnflagequiparms
#


SUB_EQUIP_ARMS:
SUB_EQUIP_ARMS_ACTIVE:

SUB_EQUIP_ARMS_ACTIVE_START_RETREAT:
	setvariable subreturnflagretreat SUB_EQUIP_ARMS_ACTIVE_START_RETREAT
	goto SUB_RETREAT
SUBRETURN_SUB_EQUIP_ARMS_ACTIVE_START_RETREAT:

SUB_EQUIP_ARMS_SHIELD:
	setvariable subreturnflagequipshield SUB_EQUIP_ARMS_SHIELD
	goto SUB_EQUIP_SHIELD
SUBRETURN_SUB_EQUIP_ARMS_SHIELD:

SUB_EQUIP_ARMS_WEAPON:
	setvariable subreturnflagequipweaponrh SUB_EQUIP_ARMS_WEAPON
	goto SUB_EQUIP_WEAPON_RIGHTHAND
SUBRETURN_SUB_EQUIP_ARMS_WEAPON:

SUB_EQUIP_ARMS_WEAPON_END:
	goto SUBRETURN_%subreturnflagequiparms



######################### EMPTY HANDS SUB ###############################################
# variables needed:
#        subreturnflagemptyhands

SUB_EMPTY_HANDS:

SUB_EMPTY_HANDS_CHECK:
	pause %matchwaitpause
	match SUB_EMPTY_HANDS_CHECK_YES_EMPTY You glance down at your empty hands
	matchre SUB_EMPTY_HANDS_CHECK_NOT_EMPTY /You glance (.*) in your left hand/i
	matchre SUB_EMPTY_HANDS_CHECK_NOT_EMPTY /You glance (.*) in your right hand/i
	match SUB_EMPTY_HANDS_CHECK ...wait
	match SUB_EMPTY_HANDS_CHECK You may only type ahead
	put glance
	matchwait

SUB_EMPTY_HANDS_CHECK_NOT_EMPTY:

SUB_EMPTY_HANDS_1:
	setvariable subreturnflagemptylefthand SUB_EMPTY_HANDS_1
	goto SUB_EMPTY_LEFTHAND
SUBRETURN_SUB_EMPTY_HANDS_1:

SUB_EMPTY_HANDS_SWAP:
	pause %matchwaitpause
	match SUB_EMPTY_HANDS_SWAP ...wait
	match SUB_EMPTY_HANDS_SWAP You may only type ahead
	matchre SUB_EMPTY_HANDS_2 /.*/i
	put swap
	matchwait

SUB_EMPTY_HANDS_2:
	setvariable subreturnflagemptylefthand SUB_EMPTY_HANDS_2
	goto SUB_EMPTY_LEFTHAND
SUBRETURN_SUB_EMPTY_HANDS_2:

SUB_EMPTY_HANDS_CHECK_YES_EMPTY:

SUB_EMPTY_HANDS_END:
	goto SUBRETURN_%subreturnflagemptyhands


######################### EMPTY LEFT HAND SUB ###############################################
# variables needed:
#        subreturnflagemptylefthand


SUB_EMPTY_LH:
SUB_EMPTY_LEFTHAND:

SUB_EMPTY_LH_CHECK:
	pause %matchwaitpause
	match SUB_EMPTY_LH_CHECK_YES_EMPTY You glance down at your empty hands
	matchre SUB_EMPTY_LH_CHECK_YES_EMPTY /You glance (.*) nothing in your left hand/i
	matchre SUB_EMPTY_LH_CHECK_NOT_EMPTY /You glance (.*) in your left hand/i
	match SUB_EMPTY_LH_CHECK ...wait
	match SUB_EMPTY_LH_CHECK You may only type ahead
	put glance
	matchwait

SUB_EMPTY_LH_CHECK_NOT_EMPTY:
	goto SUB_EMPTY_LH_SHEATH
#____________________________________________________________________unload weapons
SUB_EMPTY_LH_UNLOAD:
	pause 1
	echo
	echo ****************************
	echo *** ATTENTION
	echo *** Unload your weapon and stow the ammo... type glance when done
	echo ****************************
	echo
	waitfor You glance

#____________________________________________________________________sheath and stow
SUB_EMPTY_LH_SHEATH:
	pause %matchwaitpause
	matchre SUB_EMPTY_LH_CHECK2 /%hitsheathe%/i
	match SUB_EMPTY_LH_UNLOAD You should unload
	match SUB_EMPTY_LH_UNLOAD You need to unload
	match SUB_EMPTY_LH_STOW Sheathe what
	matchre SUB_EMPTY_LH_STOW /Sheathe your (.*) where/i
	match SUB_EMPTY_LH_SHEATH ...wait
	match SUB_EMPTY_LH_SHEATH You may only type ahead
	put sheathe left
	matchwait

SUB_EMPTY_LH_STOW:
	pause %matchwaitpause
	matchre SUB_EMPTY_LH_CHECK2 /%hitstow%/i
	matchre SUB_EMPTY_LH_WEAR /%failstowcall%/i
	match SUB_EMPTY_LH_UNLOAD You should unload
	match SUB_EMPTY_LH_UNLOAD You need to unload
	matchre ERROR_STOW /%failstowfull%/i
	matchre SUB_EMPTY_LH_WEAR /%failstowsize%/i
	matchre ERROR_STOW /%errorstow%/i
	match SUB_EMPTY_LH_STOW ...wait
	match SUB_EMPTY_LH_STOW You may only type ahead
	put stow left
	matchwait

SUB_EMPTY_LH_WEAR:

#____________________________________________________________________wear weapon
SUB_EMPTY_LH_WEAR_WEAPON_ACTIVE:
	pause %matchwaitpause
	matchre SUB_EMPTY_LH_CHECK2 /%hitwear%/i
	matchre SUB_EMPTY_LH_WEAR_SHIELD /%failwear%/i
	match SUB_EMPTY_LH_UNLOAD You should unload
	match SUB_EMPTY_LH_UNLOAD You need to unload
	match SUB_EMPTY_LH_WEAR_WEAPON_ACTIVE ...wait
	match SUB_EMPTY_LH_WEAR_WEAPON_ACTIVE You may only type ahead
	put wear my %huntbuddy_weapon_name
	matchwait

#____________________________________________________________________wear shield

SUB_EMPTY_LH_WEAR_SHIELD:
	pause %matchwaitpause
	matchre SUB_EMPTY_LH_CHECK2 /%hitwear%/i
	matchre SUB_EMPTY_LH_CHECK2 /%failwear%/i
	match SUB_EMPTY_LH_WEAR_SHIELD ...wait
	match SUB_EMPTY_LH_WEAR_SHIELD You may only type ahead
	put wear my %huntbuddy_shield_name
	matchwait

#____________________________________________________________________second check/verify
SUB_EMPTY_LH_CHECK2:
	pause %matchwaitpause
	match SUB_EMPTY_LH_CHECK_YES_EMPTY You glance down at your empty hands
	matchre SUB_EMPTY_LH_CHECK_YES_EMPTY /You glance (.*) nothing in your left hand/i
	matchre SUB_EMPTY_LH_NOT_EMPTY2 /You glance (.*) in your left hand/i
	match SUB_EMPTY_LH_CHECK2 ...wait
	match SUB_EMPTY_LH_CHECK2 You may only type ahead
	put glance
	matchwait

SUB_EMPTY_LH_NOT_EMPTY2:
	echo
	echo *********************************************************************
	echo
	echo *** WARNING
	echo
	echo Tried to empty hand but failed.
	echo
	echo *** Empty hands and restart
	echo
	echo Exiting script
	echo
	echo *********************************************************************
	echo
	pause 1
	goto END_SCRIPT

SUB_EMPTY_LH_CHECK_YES_EMPTY:

SUB_EMPTY_LH_END:
	goto SUBRETURN_%subreturnflagemptylefthand






######################### HIDE SUB ###################################################
# variables needed:
#	subreturnflaghide

SUB_HIDE:


SUB_HIDE_START:
		goto SUB_HIDE_START_%huntbuddy_hide_test
	SUB_HIDE_START_ON:
		goto SUB_HIDE_MENTAL_CHECK
	SUB_HIDE_START_OFF:
		goto SUB_HIDE_END

SUB_HIDE_MENTAL_CHECK:
	setvariable subreturnflag SUB_HIDE_MENTAL_CHECK
	setvariable skillclass HI
	goto SUB_MENTAL_CHECK
SUBRETURN_SUB_HIDE_MENTAL_CHECK:

SUB_HIDE_MENTAL_CHECK_TEST:
		goto SUB_HIDE_MENTAL_CHECK_TEST_%skillmental
	SUB_HIDE_MENTAL_CHECK_TEST_FULL:
		goto SUB_HIDE_SKIP
	SUB_HIDE_MENTAL_CHECK_TEST_NOTFULL:
		goto SUB_HIDE_STALKING_MENTAL_CHECK

SUB_HIDE_STALKING_MENTAL_CHECK:
	setvariable subreturnflag SUB_HIDE_STALKING_MENTAL_CHECK
	setvariable skillclass STA
	goto SUB_MENTAL_CHECK
SUBRETURN_SUB_HIDE_STALKING_MENTAL_CHECK:

SUB_HIDE_STALKING_MENTAL_CHECK_TEST:
		goto SUB_HIDE_STALKING_MENTAL_CHECK_TEST_%skillmental
	SUB_HIDE_STALKING_MENTAL_CHECK_TEST_FULL:
		goto SUB_HIDE_SKIP
	SUB_HIDE_STALKING_MENTAL_CHECK_TEST_NOTFULL:
		goto SUB_HIDE_GO

SUB_HIDE_GO:
	setvariable hidestalkactionflag ON
	echo
	echo *** Hiding
	echo

SUB_HIDE_FORCED_GO:

SUB_HIDE_GO_GO:
	pause %matchwaitpause
	match SUB_HIDE_FAIL The fact that you're glowing like a torch
	match SUB_HIDE_FAIL You can't hide
	matchre SUB_HIDE_GO_RETREAT1 /The (.*) notices your attempt/i
	matchre SUB_HIDE_GO_RETREAT1 /The (.*) discovers you/i
	matchre SUB_HIDE_GO_DONE /You(.*) melt/i
	matchre SUB_HIDE_GO_DONE /You(.*) blend/i
	match SUB_HIDE_GO_DONE already hidden
	match SUB_HIDE_GO_RETREAT1 You are too close
	match SUB_HIDE_GO_GO ...wait
	match SUB_HIDE_GO_GO You may only type ahead
	put hide
	matchwait

SUB_HIDE_GO_RETREAT1:
	pause %matchwaitpause
	match SUB_HIDE_GO_RETREAT1 ...wait
	match SUB_HIDE_GO_RETREAT1 You may only type ahead
	matchre RTCHECK_SUB_HIDE_GO_RETREAT1 /.*/i
	put retreat
	matchwait

RTCHECK_SUB_HIDE_GO_RETREAT1:
	pause %rtcheckpause
	match RTCHECK_SUB_HIDE_GO_RETREAT1_READY What were you referring to
	match RTCHECK_SUB_HIDE_GO_RETREAT1 ...wait
	match RTCHECK_SUB_HIDE_GO_RETREAT1 You may only type ahead
	put get my rtchecking
	matchwait
RTCHECK_SUB_HIDE_GO_RETREAT1_READY:

SUB_HIDE_GO_GO2:
	pause %matchwaitpause
	match SUB_HIDE_FAIL The fact that you're glowing like a torch
	match SUB_HIDE_FAIL You can't hide
	matchre SUB_HIDE_GO_RETREAT2 /The (.*) notices your attempt/i
	matchre SUB_HIDE_GO_RETREAT2 /The (.*) discovers you/i
	matchre SUB_HIDE_GO_DONE /You(.*) melt/i
	matchre SUB_HIDE_GO_DONE /You(.*) blend/i
	match SUB_HIDE_GO_DONE already hidden
	match SUB_HIDE_GO_RETREAT2 You are too close
	match SUB_HIDE_GO_GO2 ...wait
	match SUB_HIDE_GO_GO2 You may only type ahead
	put hide
	matchwait

SUB_HIDE_GO_RETREAT2:
	pause %matchwaitpause
	match SUB_HIDE_GO_RETREAT2 ...wait
	match SUB_HIDE_GO_RETREAT2 You may only type ahead
	matchre RTCHECK_SUB_HIDE_GO_RETREAT2 /.*/i
	put retreat
	matchwait

RTCHECK_SUB_HIDE_GO_RETREAT2:
	pause %rtcheckpause
	match RTCHECK_SUB_HIDE_GO_RETREAT2_READY What were you referring to
	match RTCHECK_SUB_HIDE_GO_RETREAT2 ...wait
	match RTCHECK_SUB_HIDE_GO_RETREAT2 You may only type ahead
	put get my rtchecking
	matchwait
RTCHECK_SUB_HIDE_GO_RETREAT2_READY:

SUB_HIDE_GO_GO3:
	pause %matchwaitpause
	match SUB_HIDE_FAIL The fact that you're glowing like a torch
	match SUB_HIDE_FAIL You can't hide
	matchre SUB_HIDE_GO_NOMORE /The (.*) notices your attempt/i
	matchre SUB_HIDE_GO_NOMORE /The (.*) discovers you/i
	matchre SUB_HIDE_GO_DONE /You(.*) melt/i
	matchre SUB_HIDE_GO_DONE /You(.*) blend/i
	match SUB_HIDE_GO_DONE already hidden
	match SUB_HIDE_GO_NOMORE You are too close
	match SUB_HIDE_GO_GO3 ...wait
	match SUB_HIDE_GO_GO3 You may only type ahead
	put hide
	matchwait

SUB_HIDE_GO_NOMORE:
	echo
	echo *** Hiding failed - tried and tried and tried, moving on
	echo
	setvariable hidestalkactionflag OFF
	goto SUB_HIDE_END

SUB_HIDE_GO_DONE:
	goto SUB_HIDE_END


SUB_HIDE_SKIP:
	setvariable hidestalkactionflag OFF
	echo
	echo *** Hiding or stalking full, skipping
	echo
	goto SUB_HIDE_END

SUB_HIDE_FAIL:
	echo
	echo *** Hiding failed
	echo
	echo Something prevented your hide attempt... are you casting MoF, singing?
	echo
	setvariable hidestalkactionflag OFF
	goto SUB_HIDE_END

SUB_HIDE_END:
	goto SUBRETURN_%subreturnflaghide

######################### HUM STOP SUB ############################################
# variables needed: subreturnflaghumstop

SUB_HUM_STOP:

SUB_HUM_STOP_NDC_TEST:
		goto SUB_HUM_STOP_NDC_TEST_%huntbuddy_ndc_master_test
	SUB_HUM_STOP_NDC_TEST_ON:
		goto SUB_HUM_STOP_TEST
	SUB_HUM_STOP_NDC_TEST_OFF:
		goto SUB_HUM_STOP_END

SUB_HUM_STOP_TEST:
		goto SUB_HUM_STOP_TEST_%huntbuddy_ndc_hum_test
	SUB_HUM_STOP_TEST_ON:
		goto RTCHECK_SUB_HUM_STOP_GO
	SUB_HUM_STOP_TEST_OFF:
		goto SUB_HUM_STOP_END

RTCHECK_SUB_HUM_STOP_GO:
	pause %rtcheckpause
	match RTCHECK_SUB_HUM_STOP_GO_READY What were you referring to
	match RTCHECK_SUB_HUM_STOP_GO ...wait
	match RTCHECK_SUB_HUM_STOP_GO You may only type ahead
	put get my rtchecking
	matchwait
RTCHECK_SUB_HUM_STOP_GO_READY:

SUB_HUM_STOP_GO:
	pause %matchwaitpause
	match SUB_HUM_STOP_END You stop
	match SUB_HUM_STOP_END In the name of love
	match SUB_HUM_STOP_GO ...wait
	match SUB_HUM_STOP_GO You may only type ahead
	matchre SUB_HUM_STOP_END /.*/i
	put stop hum
	matchwait

SUB_HUM_STOP_END:
	goto SUBRETURN_%subreturnflaghumstop


######################### MENTAL CHECK SUB ############################################

#____________________________________________________________________sub skill mental check
# variables needed:
#	subreturnflag
#	skillclass = [LE/ME/...etc]
# variables returned:
#	skillmental = [NOTFULL|FULL]

SUB_MENTAL_CHECK:
	pause %matchwaitpause
	match SUB_MENTAL_CHECK_FULL % mind lock
	match SUB_MENTAL_CHECK_OK EXP HELP
	match SUB_MENTAL_CHECK ...wait
	match SUB_MENTAL_CHECK You may only type ahead
	put exp skill %skillclass
	matchwait

SUB_MENTAL_CHECK_OK:
	setvariable skillmental NOTFULL
	goto SUB_MENTAL_CHECK_END

SUB_MENTAL_CHECK_FULL:
	setvariable skillmental FULL
	goto SUB_MENTAL_CHECK_END

SUB_MENTAL_CHECK_END:
	goto SUBRETURN_%subreturnflag

######################### SPELL PREP SUB #######################################################

#____________________________________________________________________sub prep's spell
# variables needed:
#	subreturnflag
#	spell_name
#	spell_prep_power
#	spell_harn_test
#	spell_harn_power
#	spell_harn_loop
#	spell_cam_test
#	huntbuddy_cam_name
#	spell_cam_power
#	spell_cam_loop
#	spell_cast_pause
#	spell_targeted_test = [ON|OFF]    #on if need to target critter before casting
#
# 1. prep spell
# 2. targeted... test / target
# 3. cam... test / charge / loop / focus
# 4. harn.. test / harness / loop
# 5. pause.. %spell_cast_pause
# 6. end... subreturn

#____________________________________________________________________STEP_1
SUB_SPELL_PREP:
	echo
	echo *** Preparing: %spell_name
	echo

SUB_SPELL_PREP_GO:
	pause %matchwaitpause
	match SUB_SPELL_PREP_GO ...wait
	match SUB_SPELL_PREP_GO You may only type ahead
	matchre RTCHECK_SUB_SPELL_PREP_GO /.*/i
	put prep %spell_name %spell_prep_power
	matchwait

RTCHECK_SUB_SPELL_PREP_GO:
	pause 1
	pause %rtcheckpause
	match RTCHECK_SUB_SPELL_PREP_GO_READY What were you referring to
	match RTCHECK_SUB_SPELL_PREP_GO ...wait
	match RTCHECK_SUB_SPELL_PREP_GO You may only type ahead
	put get my rtchecking
	matchwait
RTCHECK_SUB_SPELL_PREP_GO_READY:

#____________________________________________________________________STEP_2
SUB_SPELL_PREP_TARGETED_TEST:
		goto SUB_SPELL_PREP_TARGETED_TEST_%spell_targeted_test
	SUB_SPELL_PREP_TARGETED_TEST_ON:
		goto SUB_SPELL_PREP_TARGETED
	SUB_SPELL_PREP_TARGETED_TEST_OFF:
		goto SUB_SPELL_PREP_CAM_TEST

SUB_SPELL_PREP_TARGETED:
	pause %matchwaitpause
	match SUB_SPELL_PREP_TARGETED ...wait
	match SUB_SPELL_PREP_TARGETED You may only type ahead
	matchre RTCHECK_SUB_SPELL_PREP_TARGETED /.*/i
	put target
	matchwait

RTCHECK_SUB_SPELL_PREP_TARGETED:
	pause %rtcheckpause
	match RTCHECK_SUB_SPELL_PREP_TARGETED_READY What were you referring to
	match RTCHECK_SUB_SPELL_PREP_TARGETED ...wait
	match RTCHECK_SUB_SPELL_PREP_TARGETED You may only type ahead
	put get my rtchecking
	matchwait
RTCHECK_SUB_SPELL_PREP_TARGETED_READY:

#____________________________________________________________________STEP_3
SUB_SPELL_PREP_CAM_TEST:
		goto SUB_SPELL_PREP_CAM_TEST_%spell_cam_test
	SUB_SPELL_PREP_CAM_TEST_ON:
		goto SUB_SPELL_PREP_CAM_CHARGE_START
	SUB_SPELL_PREP_CAM_TEST_OFF:
		goto SUB_SPELL_PREP_HARN_TEST

SUB_SPELL_PREP_CAM_CHARGE_START:
	counter set %spell_cam_loop

#---------------------------------------------------------looped
SUB_SPELL_PREP_CAM_CHARGE:
	pause %matchwaitpause
	match SUB_SPELL_PREP_CAM_CHARGE ...wait
	match SUB_SPELL_PREP_CAM_CHARGE You may only type ahead
	matchre RTCHECK_SUB_SPELL_PREP_CAM_CHARGE /.*/i
	put charge my %huntbuddy_cam_name %spell_cam_power
	matchwait

RTCHECK_SUB_SPELL_PREP_CAM_CHARGE:
	pause 1
	pause %rtcheckpause
	match RTCHECK_SUB_SPELL_PREP_CAM_CHARGE_READY What were you referring to
	match RTCHECK_SUB_SPELL_PREP_CAM_CHARGE ...wait
	match RTCHECK_SUB_SPELL_PREP_CAM_CHARGE You may only type ahead
	put get my rtchecking
	matchwait
RTCHECK_SUB_SPELL_PREP_CAM_CHARGE_READY:

SUB_SPELL_PREP_CAM_LOOP_TEST:
	pause %branchtestpause
	counter subtract 1
	match SUB_SPELL_PREP_CAM_FOCUS flag 0
	match SUB_SPELL_PREP_CAM_CHARGE not a valid flag
	match SUB_SPELL_PREP_CAM_LOOP_TEST ...wait
	match SUB_SPELL_PREP_CAM_LOOP_TEST You may only type ahead
	put set %c
	matchwait
#---------------------------------------------------------looped

SUB_SPELL_PREP_CAM_FOCUS:
	pause %matchwaitpause
	match SUB_SPELL_PREP_CAM_FOCUS ...wait
	match SUB_SPELL_PREP_CAM_FOCUS You may only type ahead
	matchre RTCHECK_SUB_SPELL_PREP_CAM_FOCUS /.*/i
	put focus my %huntbuddy_cam_name
	matchwait

RTCHECK_SUB_SPELL_PREP_CAM_FOCUS:
	pause 1
	pause %rtcheckpause
	match RTCHECK_SUB_SPELL_PREP_CAM_FOCUS_READY What were you referring to
	match RTCHECK_SUB_SPELL_PREP_CAM_FOCUS ...wait
	match RTCHECK_SUB_SPELL_PREP_CAM_FOCUS You may only type ahead
	put get my rtchecking
	matchwait
RTCHECK_SUB_SPELL_PREP_CAM_FOCUS_READY:

#____________________________________________________________________STEP_4
SUB_SPELL_PREP_HARN_TEST:
		goto SUB_SPELL_PREP_HARN_TEST_%spell_harn_test
	SUB_SPELL_PREP_HARN_TEST_ON:
		goto SUB_SPELL_PREP_HARN_CHARGE_START
	SUB_SPELL_PREP_HARN_TEST_OFF:
		goto SUB_SPELL_PREP_CAST_PAUSE

SUB_SPELL_PREP_HARN_CHARGE_START:
	counter set %spell_harn_loop

#---------------------------------------------------------looped
SUB_SPELL_PREP_HARN_CHARGE:
	pause %matchwaitpause
	match SUB_SPELL_PREP_HARN_CHARGE ...wait
	match SUB_SPELL_PREP_HARN_CHARGE You may only type ahead
	matchre RTCHECK_SUB_SPELL_PREP_HARN_CHARGE /.*/i
	put harness %spell_harn_power
	matchwait

RTCHECK_SUB_SPELL_PREP_HARN_CHARGE:
	pause 1
	pause %rtcheckpause
	match RTCHECK_SUB_SPELL_PREP_HARN_CHARGE_READY What were you referring to
	match RTCHECK_SUB_SPELL_PREP_HARN_CHARGE ...wait
	match RTCHECK_SUB_SPELL_PREP_HARN_CHARGE You may only type ahead
	put get my rtchecking
	matchwait
RTCHECK_SUB_SPELL_PREP_HARN_CHARGE_READY:

SUB_SPELL_PREP_HARN_LOOP_TEST:
	pause %branchtestpause
	counter subtract 1
	match SUB_SPELL_PREP_CAST_PAUSE flag 0
	match SUB_SPELL_PREP_HARN_CHARGE not a valid flag
	match SUB_SPELL_PREP_HARN_LOOP_TEST ...wait
	match SUB_SPELL_PREP_HARN_LOOP_TEST You may only type ahead
	put set %c
	matchwait
#---------------------------------------------------------looped


#____________________________________________________________________STEP_5
SUB_SPELL_PREP_CAST_PAUSE:

	pause %spell_cast_pause

#____________________________________________________________________END SUB
SUB_SPELL_PREP_END:
	goto SUBRETURN_%subreturnflag




######################### NAKED PUT SUB ##################################################
# variables needed
#        subreturnflag
#        nakedput

SUB_NAKED_PUT:
	pause %naked_put_pause
	match SUB_NAKED_PUT ...wait
	match SUB_NAKED_PUT You may only type ahead
	matchre RTCHECK_SUB_NAKED_PUT /.*/i
	put %nakedput
	matchwait

RTCHECK_SUB_NAKED_PUT:
	pause %rtcheckpause
	match RTCHECK_SUB_NAKED_PUT_READY What were you referring to
	match RTCHECK_SUB_NAKED_PUT ...wait
	match RTCHECK_SUB_NAKED_PUT You may only type ahead
	put get my rtchecking
	matchwait
RTCHECK_SUB_NAKED_PUT_READY:

SUB_NAKED_PUT_END:
	goto SUBRETURN_%subreturnflagnp

#____________________________________________________________________naked put 2

SUB_NAKED_PUT2:
	pause %naked_put_pause
	match SUB_NAKED_PUT2 ...wait
	match SUB_NAKED_PUT2 You may only type ahead
	matchre RTCHECK_SUB_NAKED_PUT2 /.*/i
	put %nakedput1 %nakedput2
	matchwait

RTCHECK_SUB_NAKED_PUT2:
	pause %rtcheckpause
	match RTCHECK_SUB_NAKED_PUT2_READY What were you referring to
	match RTCHECK_SUB_NAKED_PUT2 ...wait
	match RTCHECK_SUB_NAKED_PUT2 You may only type ahead
	put get my rtchecking
	matchwait
RTCHECK_SUB_NAKED_PUT2_READY:

SUB_NAKED_PUT2_END:
	goto SUBRETURN_%subreturnflagnp2

#____________________________________________________________________naked put 3


SUB_NAKED_PUT3:
	pause %naked_put_pause
	match SUB_NAKED_PUT3 ...wait
	match SUB_NAKED_PUT3 You may only type ahead
	matchre RTCHECK_SUB_NAKED_PUT3 /.*/i
	put %nakedput1 %nakedput2 %nakedput3
	matchwait

RTCHECK_SUB_NAKED_PUT3:
	pause %rtcheckpause
	match RTCHECK_SUB_NAKED_PUT3_READY What were you referring to
	match RTCHECK_SUB_NAKED_PUT3 ...wait
	match RTCHECK_SUB_NAKED_PUT3 You may only type ahead
	put get my rtchecking
	matchwait
RTCHECK_SUB_NAKED_PUT3_READY:

SUB_NAKED_PUT3_END:
	goto SUBRETURN_%subreturnflagnp3




######################### RETREAT SUB ##################################################
# variables needed:
# 	subreturnflagretreat

#____________________________________________________________________sub retreat
SUB_RETREAT:
	setvariable retreatloopnum 0

RTCHECK_SUB_RETREAT:
	pause %rtcheckpause
	match RTCHECK_SUB_RETREAT_READY What were you referring to
	match RTCHECK_SUB_RETREAT ...wait
	match RTCHECK_SUB_RETREAT You may only type ahead
	put get my rtchecking
	matchwait
RTCHECK_SUB_RETREAT_READY:

SUB_RETREAT_START:
	pause %matchwaitpause
	match SUB_RETREAT_END You are already as far
	match SUB_RETREAT_STAND You must stand first
	match SUB_RETREAT_STUCK You try to back away
	match SUB_RETREAT_PAUSE You are stun
	match SUB_RETREAT_PAUSE You retreat
	match SUB_RETREAT_PAUSE You sneak back
	match SUB_RETREAT_PAUSE You stop advancing
	match SUB_RETREAT_FAIL You cannot back away
#	match DEAD_CHARACTER You are a ghost!
	match SUB_RETREAT_START ...wait
	match SUB_RETREAT_START You may only type ahead
	matchre SUB_RETREAT_PAUSE /.*/i
	put retreat
	matchwait

SUB_RETREAT_PAUSE:
	pause %retreatpause
	goto SUB_RETREAT_START

SUB_RETREAT_STUCK:
	pause %retreatpause
	counter set %retreatloopnum
	counter add 1
	setvariable retreatloopnum %c

SUB_RETREAT_LOOP_COUNT:
		goto SUB_RETREAT_LOOP_COUNT_%retreatloopnum
	SUB_RETREAT_LOOP_COUNT_1:
		goto SUB_RETREAT_START
	SUB_RETREAT_LOOP_COUNT_2:
		goto SUB_RETREAT_START
	SUB_RETREAT_LOOP_COUNT_3:
		goto SUB_RETREAT_START
	SUB_RETREAT_LOOP_COUNT_4:
		goto SUB_RETREAT_START
	SUB_RETREAT_LOOP_COUNT_5:
		goto SUB_RETREAT_FAIL

SUB_RETREAT_STAND:
	pause %matchwaitpause
	match SUB_RETREAT_STAND ...wait
	match SUB_RETREAT_STAND You may only type ahead
	matchre RTCHECK_SUB_RETREAT_STAND /.*/i
	put stand
	matchwait

RTCHECK_SUB_RETREAT_STAND:
	pause %rtcheckpause
	match RTCHECK_SUB_RETREAT_STAND_READY What were you referring to
	match RTCHECK_SUB_RETREAT_STAND ...wait
	match RTCHECK_SUB_RETREAT_STAND You may only type ahead
	put get my rtchecking
	matchwait
RTCHECK_SUB_RETREAT_STAND_READY:
	goto SUB_RETREAT_START

SUB_RETREAT_FAIL:
	echo
	echo *** Retreat fail, unable to retreat...moving on
	echo
	goto SUB_RETREAT_END

SUB_RETREAT_END:
	goto SUBRETURN_%subreturnflagretreat









#############################################################################
###########################    COMMAND SECTION    ###########################
#############################################################################

COMMANDLINE_JUMP:
	goto %1


HELP:
	goto ERROR_WRONGUSAGE

MENU:
	goto SETUP_MAIN_MENU

START:
RUN:
PARTNER:
NAME:
GO:
	setvariable partner_name %2
	goto HUNT_START

#-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*
SET:
	goto COMMANDSET_%2

COMMANDSET_WEA:
COMMANDSET_WEAP:
COMMANDSET_WEAPO:
COMMANDSET_WEAPON:
COMMANDSET_WEAPONS:
# .huntbuddy set weapon name <text>

	setvariable huntbuddy_weapon_name %4
	goto COMMANDSETWEAPONEND

COMMANDSETWEAPONEND:
	goto SETUP_ARMAMENT_MENU

#-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*
COMMANDSET_SHI:
COMMANDSET_SHIE:
COMMANDSET_SHIEL:
COMMANDSET_SHIELD:
COMMANDSET_SHEILD:
# .huntbuddy set shield name <text>

	setvariable huntbuddy_shield_name %4
	goto SETUP_ARMAMENT_MENU

#-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*
COMMANDSET_CAM:
COMMANDSET_CAMB:
COMMANDSET_CAMBRINTH:
# .huntbuddy set cambrinth <name>
	setvariable huntbuddy_cam_name %3
	goto SETUP_BUFF_MENU

#-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*
COMMANDSET_BUF:
COMMANDSET_BUFF:

	goto COMMANDSET_BUFF_%3

COMMANDSET_BUFF_SLOT:
	goto COMMANDSET_BUFF_SLOT_%5

COMMANDSET_BUFF_SLOT_PREP:
# .huntbuddy set buff slot %s prep <name> <mana#> <pause#>
	setvariable huntbuddy_buff_name_%4 %6
	setvariable huntbuddy_buff_prep_power_%4 %7
	setvariable huntbuddy_buff_cast_pause_%4 %8
	goto SETUP_BUFF_DETAIL

COMMANDSET_BUFF_SLOT_HARN:
COMMANDSET_BUFF_SLOT_HARNES:
COMMANDSET_BUFF_SLOT_HARNESS:
# .huntbuddy set buff slot %s harn <mana#> <loop#>
	setvariable huntbuddy_buff_harn_power_%4 %6
	setvariable huntbuddy_buff_harn_loop_%4 %7
	goto SETUP_BUFF_DETAIL

COMMANDSET_BUFF_SLOT_CAM:
COMMANDSET_BUFF_SLOT_CAMB:
COMMANDSET_BUFF_SLOT_CAMBRINTH:
# .huntbuddy set buff slot %s cam <charge#> <pause#> <loop#>
	setvariable huntbuddy_buff_cam_power_%4 %6
	setvariable huntbuddy_buff_cam_loop_%4 %7
	goto SETUP_BUFF_DETAIL



#-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*
COMMANDSET_HIGH:
COMMANDSET_HIGHLIGHT:
COMMANDSET_HIGHLIGHTS:
COMMANDSET_HIGHLIGHTING:
# .huntbuddy set highlight <color>

	deletefromhighlightstrings string="***"
	AddToHighlightStrings string="***" forecolor=%3 highlightEntireLine=True
	goto SETUP_MISC_MENU

#-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*

# .huntbuddy set hum <tune>
# .huntbuddy set juggle <item>
# .huntbuddy set pyramid <item>
# .huntbuddy set forage <item>
# .huntbuddy set origami <item>

COMMANDSET_HUM:
COMMANDSET_HUMM:
	setvariable huntbuddy_ndc_hum_item %3
	goto SETUP_NDC_MENU

COMMANDSET_JUGGLE:
COMMANDSET_JUG:
COMMANDSET_JUGG:
	setvariable huntbuddy_ndc_juggle_item %3
	goto SETUP_NDC_MENU

COMMANDSET_PYRAMID:
COMMANDSET_PIRAMID:
	setvariable huntbuddy_ndc_pyramid_item %3
	goto SETUP_NDC_MENU

COMMANDSET_FORAGE:
COMMANDSET_FORAG:
COMMANDSET_FORAGING:
	setvariable huntbuddy_ndc_forage_item %3
	goto SETUP_NDC_MENU

COMMANDSET_ORIGAMI:
COMMANDSET_ORIGAMY:
	setvariable huntbuddy_ndc_origami_item %3
	goto SETUP_NDC_MENU


#-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*
COMMANDSET_FISS:
COMMANDSET_FISSURE:
	goto COMMANDSET_FISSURE_%3

COMMANDSET_FISSURE_PREP:
COMMANDSET_FISSURE_PREPARE:
# .huntbuddy set fissure prep <element> <mana#> <pause#>

	setvariable huntbuddy_fissure_element %4
	setvariable huntbuddy_fissure_prep_power %5
	setvariable huntbuddy_fissure_cast_pause %6
	goto SETUP_FISSURE_DETAIL

COMMANDSET_FISSURE_HARN:
COMMANDSET_FISSURE_HARNES:
COMMANDSET_FISSURE_HARNESS:
# .huntbuddy set fissure harn <mana#> <loop#>

	setvariable huntbuddy_fissure_harn_power %4
	setvariable huntbuddy_fissure_harn_loop %5
	goto SETUP_FISSURE_DETAIL

COMMANDSET_FISSURE_CAM:
COMMANDSET_FISSURE_CAMB:
COMMANDSET_FISSURE_CAMBRINTH:
# .huntbuddy set fissure cam <charge#> <loop#>
	setvariable huntbuddy_fissure_cam_power %4
	setvariable huntbuddy_fissure_cam_loop %5
	goto SETUP_FISSURE_DETAIL

#-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*
COMMANDSET_MANTLEOFFLAME:
COMMANDSET_MOF:
	goto COMMANDSET_MOF_%3

COMMANDSET_MOF_PREP:
COMMANDSET_MOF_PREPARE:
# .huntbuddy set mof prep <mana#> <pause#>
	setvariable huntbuddy_mof_prep_power %4
	setvariable huntbuddy_mof_cast_pause %5
	goto SETUP_MOF_DETAIL

COMMANDSET_MOF_HARN:
COMMANDSET_MOF_HARNES:
COMMANDSET_MOF_HARNESS:
# .huntbuddy set mof harn <mana#> <loop#>
	setvariable huntbuddy_mof_harn_power %4
	setvariable huntbuddy_mof_harn_loop %5
	goto SETUP_MOF_DETAIL

COMMANDSET_MOF_CAM:
COMMANDSET_MOF_CAMB:
COMMANDSET_MOF_CAMBRINTH:
# .huntbuddy set mof cam <charge#> <loop#>
	setvariable huntbuddy_mof_cam_power %4
	setvariable huntbuddy_mof_cam_loop %5
	goto SETUP_MOF_DETAIL
#-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*
COMMANDSET_SING:
# .huntbuddy set sing <type>
	setvariable huntbuddy_sing_type %3
	goto SETUP_ENCHANTE_MENU


COMMANDSET_CHANT:
# .huntbuddy set chant <type>
	setvariable huntbuddy_chant_type %3
	goto SETUP_ENCHANTE_MENU





#############################################################################
###########################    MENU SECTION    ##############################
#############################################################################
SETUP_HELP:
SETUP_MAIN_MENU:
put echo /on
waitfor echocolumn
echo
echo
echo =======================================================================
echo ***                        MAIN MENU
echo =======================================================================
echo .     Script Mechanics.............................. a0
echo
echo .     Buff.......................................... a1
echo
echo .     Enchante...................................... a2
echo
echo .     Armament/weapons.............................. a3
echo
echo .     Other Actions................................. a4
echo
echo .     Guild Specials................................ a5
echo
echo .     Miscellaneous................................. a6
echo
echo .     About this script............................. a7
echo =======================================================================
echo *** Enter selection
echo =======================================================================
echo 
put echo /off
pause 1
	match SETUP_SCRIPT_MECH_MENU a0
	match SETUP_BUFF_MENU a1
	match SETUP_ENCHANTE_MENU a2
	match SETUP_ARMAMENT_MENU a3
	match SETUP_NDC_MENU a4
	match SETUP_GUILD_SPECIALS_MENU a5
	match SETUP_MISC_MENU a6
	match SETUP_ABOUT a7
	matchwait

#-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*
SETUP_ABOUT:
put echo /on
waitfor echocolumn
echo
echo =======================================================================
echo ***                        ABOUT THIS SCRIPT
echo =======================================================================
echo Huntbuddy version 1.1
echo by Mendaleev         last update: July 26, 2008, 22:00 hours
echo
echo Script designed to support another character while hunting in DragonRealms
echo
echo StormFront compatible (written in SF v1.0.1.22)
echo
echo normal run syntax: .huntbuddy start <name>
echo .                  .huntbuddy help
echo .                  .huntbuddy menu
echo ____________________________________________________________
echo Do not use AFK or in violation of any policy.
echo You are responsible for everything; I am responsible for nothing.
echo As allowed, permission is provided for you to use, modify, or basically 
echo do what you want with it.
echo ____________________________________________________________
echo
echo This script is designed to assist you while hunting with another player by taking the tedium
echo out of buffing, etc.  Typically, for those that are helping a younger character hunt-up.
echo The script does not attack creatures in any manner.  It will buff your partner and also run
echo some other actions as turned on.
echo
echo After running through the menu and customizing, to start enter:
echo .                  .huntbuddy start <name>     where <name> is your hunting partner's name
echo
echo Safe paths,
echo Mendaleev
echo =======================================================================
echo *** Return to Main Menu.................... z1
echo =======================================================================
echo 
put echo /off
pause 1
	match SETUP_MAIN_MENU z1
	matchwait

#-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*
SETUP_ARMAMENT_MENU:
put echo /on
waitfor echocolumn
echo
echo
echo =======================================================================
echo ***                        ARMAMENT MENU
echo =======================================================================
echo Weapon:
echo .  Hold Weapon:           %huntbuddy_weapon_style_main_test
echo .     Weapon name:           %huntbuddy_weapon_name
echo .  No Weapon:             %huntbuddy_weapon_style_noweap_test
echo
echo Shield usage:             %huntbuddy_shield_use
echo .  Shield name:              %huntbuddy_shield_name
echo
echo =======================================================================
echo
echo
echo Hold weapon............................................. weapon=on
echo No weapon............................................... weapon=off
echo
echo Shield usage off....................................... shield=off
echo Shield usage armworn................................... shield=armworn
echo Shield usage hand held................................. shield=handheld
echo
echo Set weapon name........................................ .huntbuddy set weapon name <text>
echo Set shield name........................................ .huntbuddy set shield name <text>
echo
echo Return to Main Menu.................................... z1 
echo =======================================================================
echo Note:
echo 1) The script does not attack critters in any manner, the weapon/shield is purely defensive.
echo
put echo /off
pause 1
	match SETUP_ARMAMENT_SHIELD_NONE shield=off
	match SETUP_ARMAMENT_SHIELD_ARMWORN shield=armworn
	match SETUP_ARMAMENT_SHIELD_HANDHELD shield=handheld
	match SETUP_ARMAMENT_WEAPON_STYLE_MAIN weapon=on
	match SETUP_ARMAMENT_WEAPON_STYLE_NONE weapon=off
	match SETUP_MAIN_MENU z1
	matchwait

SETUP_ARMAMENT_WEAPON_STYLE_MAIN:
	setvariable huntbuddy_weapon_style_main_test ON
	setvariable huntbuddy_weapon_style_noweap_test OFF
	goto SETUP_ARMAMENT_MENU

SETUP_ARMAMENT_WEAPON_STYLE_NONE: 
	setvariable huntbuddy_weapon_style_main_test OFF
	setvariable huntbuddy_weapon_style_noweap_test ON
	goto SETUP_ARMAMENT_MENU

SETUP_ARMAMENT_SHIELD_NONE:
	setvariable huntbuddy_shield_use OFF
	goto SETUP_ARMAMENT_MENU

SETUP_ARMAMENT_SHIELD_ARMWORN:
	setvariable huntbuddy_shield_use ARMWORN
	goto SETUP_ARMAMENT_MENU

SETUP_ARMAMENT_SHIELD_HANDHELD:
	setvariable huntbuddy_shield_use HANDHELD
	goto SETUP_ARMAMENT_MENU


#-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*
SETUP_BUFF_MENU:
put echo /on
waitfor echocolumn
echo
echo
echo =======================================================================
echo ***                        BUFF MENU
echo =======================================================================
echo
echo *** Current Buff Setup is:
echo
echo Master buff switch = %huntbuddy_buff_master_test
echo               
echo Buff hunting partner = %huntbuddy_buff_partner_test
echo Buff self = %huntbuddy_buff_self_test 
echo
echo
echo Buff slot 1:    %huntbuddy_buff_name_1     %huntbuddy_buff_test_1
echo Buff slot 2:    %huntbuddy_buff_name_2     %huntbuddy_buff_test_2
echo Buff slot 3:    %huntbuddy_buff_name_3     %huntbuddy_buff_test_3
echo Buff slot 4:    %huntbuddy_buff_name_4     %huntbuddy_buff_test_4
echo Buff slot 5:    %huntbuddy_buff_name_5     %huntbuddy_buff_test_5
echo Buff slot 6:    %huntbuddy_buff_name_6     %huntbuddy_buff_test_6
echo
echo
echo Retreat when buffing:  %huntbuddy_buff_retreat_test
echo
echo =======================================================================
echo
echo Buff master............................... buff=[on|off]
echo Buff hunting partner...................... partner=[on|off]
echo Buff self................................. self=[on|off]
echo View/change a spell slot.................. view=# [where # is slot number]
echo Buff retreat.............................. retreat=[on|off]
echo Return to Main Menu....................... z1
echo =======================================================================
echo 
put echo /off
pause 1

	match SETUP_BUFF_PARTNER_TEST_ON partner=on
	match SETUP_BUFF_PARTNER_TEST_ON buddy=on
	match SETUP_BUFF_PARTNER_TEST_OFF partner=off
	match SETUP_BUFF_PARTNER_TEST_OFF buddy=off
	match SETUP_BUFF_SELF_TEST_ON self=on
	match SETUP_BUFF_SELF_TEST_OFF self=off
	match SETUP_BUFF_RETREAT_TEST_ON retreat=on
	match SETUP_BUFF_RETREAT_TEST_OFF retreat=off
	match SETUP_BUFF_MASTER_TEST_ON buff=on
	match SETUP_BUFF_MASTER_TEST_OFF buff=off
	match SETUP_BUFF_DETAIL_JUMP_1 view=1
	match SETUP_BUFF_DETAIL_JUMP_2 view=2
	match SETUP_BUFF_DETAIL_JUMP_3 view=3
	match SETUP_BUFF_DETAIL_JUMP_4 view=4
	match SETUP_BUFF_DETAIL_JUMP_5 view=5
	match SETUP_BUFF_DETAIL_JUMP_6 view=6
	match SETUP_MAIN_MENU z1
	matchwait


SETUP_BUFF_PARTNER_TEST_ON:
	setvariable huntbuddy_buff_partner_test ON
	goto SETUP_BUFF_MENU
SETUP_BUFF_PARTNER_TEST_OFF:
	setvariable huntbuddy_buff_partner_test OFF
	goto SETUP_BUFF_MENU
SETUP_BUFF_SELF_TEST_ON:
	setvariable huntbuddy_buff_self_test ON
	goto SETUP_BUFF_MENU
SETUP_BUFF_SELF_TEST_OFF:
	setvariable huntbuddy_buff_self_test OFF
	goto SETUP_BUFF_MENU
SETUP_BUFF_MASTER_TEST_ON:
	setvariable huntbuddy_buff_master_test ON
	goto SETUP_BUFF_MENU
SETUP_BUFF_MASTER_TEST_OFF:
	setvariable huntbuddy_buff_master_test OFF
	goto SETUP_BUFF_MENU
SETUP_BUFF_RETREAT_TEST_ON:
	setvariable huntbuddy_buff_retreat_test ON
	goto SETUP_BUFF_MENU
SETUP_BUFF_RETREAT_TEST_OFF:
	setvariable huntbuddy_buff_retreat_test OFF
	goto SETUP_BUFF_MENU

#-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*

SETUP_BUFF_DETAIL:
	goto SETUP_BUFF_DETAIL_JUMP_%s

SETUP_BUFF_DETAIL_JUMP_1:
	save 1
	setvariable huntbuddy_buff_test_display %huntbuddy_buff_test_1
	setvariable huntbuddy_buff_name_display %huntbuddy_buff_name_1
	setvariable huntbuddy_buff_prep_power_display %huntbuddy_buff_prep_power_1
	setvariable huntbuddy_buff_harn_test_display %huntbuddy_buff_harn_test_1
	setvariable huntbuddy_buff_harn_power_display %huntbuddy_buff_harn_power_1
	setvariable huntbuddy_buff_harn_loop_display %huntbuddy_buff_harn_loop_1
	setvariable huntbuddy_buff_cam_test_display %huntbuddy_buff_cam_test_1
	setvariable huntbuddy_buff_cam_power_display %huntbuddy_buff_cam_power_1
	setvariable huntbuddy_buff_cam_loop_display %huntbuddy_buff_cam_loop_1
	setvariable huntbuddy_buff_cast_pause_display %huntbuddy_buff_cast_pause_1
	goto SETUP_BUFF_DETAIL_JUMPED
SETUP_BUFF_DETAIL_JUMP_2:
	save 2
	setvariable huntbuddy_buff_test_display %huntbuddy_buff_test_2
	setvariable huntbuddy_buff_name_display %huntbuddy_buff_name_2
	setvariable huntbuddy_buff_prep_power_display %huntbuddy_buff_prep_power_2
	setvariable huntbuddy_buff_harn_test_display %huntbuddy_buff_harn_test_2
	setvariable huntbuddy_buff_harn_power_display %huntbuddy_buff_harn_power_2
	setvariable huntbuddy_buff_harn_loop_display %huntbuddy_buff_harn_loop_2
	setvariable huntbuddy_buff_cam_test_display %huntbuddy_buff_cam_test_2
	setvariable huntbuddy_buff_cam_power_display %huntbuddy_buff_cam_power_2
	setvariable huntbuddy_buff_cam_loop_display %huntbuddy_buff_cam_loop_2
	setvariable huntbuddy_buff_cast_pause_display %huntbuddy_buff_cast_pause_2
	goto SETUP_BUFF_DETAIL_JUMPED
SETUP_BUFF_DETAIL_JUMP_3:
	save 3
	setvariable huntbuddy_buff_test_display %huntbuddy_buff_test_3
	setvariable huntbuddy_buff_name_display %huntbuddy_buff_name_3
	setvariable huntbuddy_buff_prep_power_display %huntbuddy_buff_prep_power_3
	setvariable huntbuddy_buff_harn_test_display %huntbuddy_buff_harn_test_3
	setvariable huntbuddy_buff_harn_power_display %huntbuddy_buff_harn_power_3
	setvariable huntbuddy_buff_harn_loop_display %huntbuddy_buff_harn_loop_3
	setvariable huntbuddy_buff_cam_test_display %huntbuddy_buff_cam_test_3
	setvariable huntbuddy_buff_cam_power_display %huntbuddy_buff_cam_power_3
	setvariable huntbuddy_buff_cam_loop_display %huntbuddy_buff_cam_loop_3
	setvariable huntbuddy_buff_cast_pause_display %huntbuddy_buff_cast_pause_3
	goto SETUP_BUFF_DETAIL_JUMPED
SETUP_BUFF_DETAIL_JUMP_4:
	save 4
	setvariable huntbuddy_buff_test_display %huntbuddy_buff_test_4
	setvariable huntbuddy_buff_name_display %huntbuddy_buff_name_4
	setvariable huntbuddy_buff_prep_power_display %huntbuddy_buff_prep_power_4
	setvariable huntbuddy_buff_harn_test_display %huntbuddy_buff_harn_test_4
	setvariable huntbuddy_buff_harn_power_display %huntbuddy_buff_harn_power_4
	setvariable huntbuddy_buff_harn_loop_display %huntbuddy_buff_harn_loop_4
	setvariable huntbuddy_buff_cam_test_display %huntbuddy_buff_cam_test_4
	setvariable huntbuddy_buff_cam_power_display %huntbuddy_buff_cam_power_4
	setvariable huntbuddy_buff_cam_loop_display %huntbuddy_buff_cam_loop_4
	setvariable huntbuddy_buff_cast_pause_display %huntbuddy_buff_cast_pause_4
	goto SETUP_BUFF_DETAIL_JUMPED
SETUP_BUFF_DETAIL_JUMP_5:
	save 5
	setvariable huntbuddy_buff_test_display %huntbuddy_buff_test_5
	setvariable huntbuddy_buff_name_display %huntbuddy_buff_name_5
	setvariable huntbuddy_buff_prep_power_display %huntbuddy_buff_prep_power_5
	setvariable huntbuddy_buff_harn_test_display %huntbuddy_buff_harn_test_5
	setvariable huntbuddy_buff_harn_power_display %huntbuddy_buff_harn_power_5
	setvariable huntbuddy_buff_harn_loop_display %huntbuddy_buff_harn_loop_5
	setvariable huntbuddy_buff_cam_test_display %huntbuddy_buff_cam_test_5
	setvariable huntbuddy_buff_cam_power_display %huntbuddy_buff_cam_power_5
	setvariable huntbuddy_buff_cam_loop_display %huntbuddy_buff_cam_loop_5
	setvariable huntbuddy_buff_cast_pause_display %huntbuddy_buff_cast_pause_5
	goto SETUP_BUFF_DETAIL_JUMPED
SETUP_BUFF_DETAIL_JUMP_6:
	save 6
	setvariable huntbuddy_buff_test_display %huntbuddy_buff_test_6
	setvariable huntbuddy_buff_name_display %huntbuddy_buff_name_6
	setvariable huntbuddy_buff_prep_power_display %huntbuddy_buff_prep_power_6
	setvariable huntbuddy_buff_harn_test_display %huntbuddy_buff_harn_test_6
	setvariable huntbuddy_buff_harn_power_display %huntbuddy_buff_harn_power_6
	setvariable huntbuddy_buff_harn_loop_display %huntbuddy_buff_harn_loop_6
	setvariable huntbuddy_buff_cam_test_display %huntbuddy_buff_cam_test_6
	setvariable huntbuddy_buff_cam_power_display %huntbuddy_buff_cam_power_6
	setvariable huntbuddy_buff_cam_loop_display %huntbuddy_buff_cam_loop_6
	setvariable huntbuddy_buff_cast_pause_display %huntbuddy_buff_cast_pause_6
	goto SETUP_BUFF_DETAIL_JUMPED

SETUP_BUFF_DETAIL_JUMPED:
put echo /on
waitfor echocolumn
echo
echo
echo =======================================================================
echo ***                    BUFF %s DETAIL - VIEW/CHANGE
echo =======================================================================
echo Buff slot %s is:        %huntbuddy_buff_test_display
echo
echo Spell Name:             %huntbuddy_buff_name_display
echo .    prep power:        %huntbuddy_buff_prep_power_display
echo .    cast pause:        %huntbuddy_buff_cast_pause_display  seconds
echo Harness:                %huntbuddy_buff_harn_test_display
echo .    power:             %huntbuddy_buff_harn_power_display
echo .    loop:              %huntbuddy_buff_harn_loop_display   harnesses per cast
echo Cambrinth:              %huntbuddy_buff_cam_test_display
echo .    item name:         %huntbuddy_cam_name
echo .    charge:            %huntbuddy_buff_cam_power_display
echo .    loop:              %huntbuddy_buff_cam_loop_display   cams per cast
echo =======================================================================
echo General:                                           
echo .    Turn slot ON              slot=on
echo .    Turn slot OFF             slot=off
echo .    Set spell                 .huntbuddy set buff slot %s prep <name> <mana#> <pause#>
echo 
echo Harness:
echo .    Turn ON                   harn=on
echo .    Turn OFF                  harn=off
echo .    Set harness               .huntbuddy set buff slot %s harn <mana#> <loop#>
echo 
echo Cambrinth:
echo .    Name of cambrinth         .huntbuddy set cambrinth <name>
echo .    Turn ON                   cam=on
echo .    Turn OFF                  cam=off
echo .    Set cambrinth             .huntbuddy set buff slot %s cam <charge#> <loop#>
echo
echo Return to Buff Menu..................... z1
echo Jump to a different slot.................. view=#
echo =======================================================================
echo
put echo /off
pause 1
	match SETUP_BUFF_SLOT_TEST_ON slot=on
	match SETUP_BUFF_SLOT_TEST_OFF slot=off
	match SETUP_BUFF_HARN_TEST_ON harn=on
	match SETUP_BUFF_HARN_TEST_OFF harn=off
	match SETUP_BUFF_CAM_TEST_ON cam=on
	match SETUP_BUFF_CAM_TEST_OFF cam=off
	match SETUP_BUFF_DETAIL_JUMP_1 view=1
	match SETUP_BUFF_DETAIL_JUMP_2 view=2
	match SETUP_BUFF_DETAIL_JUMP_3 view=3
	match SETUP_BUFF_DETAIL_JUMP_4 view=4
	match SETUP_BUFF_DETAIL_JUMP_5 view=5
	match SETUP_BUFF_DETAIL_JUMP_6 view=6
	match SETUP_BUFF_MENU z1
	matchwait

SETUP_BUFF_SLOT_TEST_ON:
	setvariable huntbuddy_buff_test_%s ON
	goto SETUP_BUFF_DETAIL
SETUP_BUFF_SLOT_TEST_OFF:
	setvariable huntbuddy_buff_test_%s OFF
	goto SETUP_BUFF_DETAIL
SETUP_BUFF_HARN_TEST_ON:
	setvariable huntbuddy_buff_harn_test_%s ON
	goto SETUP_BUFF_DETAIL
SETUP_BUFF_HARN_TEST_OFF:
	setvariable huntbuddy_buff_harn_test_%s OFF
	goto SETUP_BUFF_DETAIL
SETUP_BUFF_CAM_TEST_ON:
	setvariable huntbuddy_buff_cam_test_%s ON
	goto SETUP_BUFF_DETAIL
SETUP_BUFF_CAM_TEST_OFF:
	setvariable huntbuddy_buff_cam_test_%s OFF
	goto SETUP_BUFF_DETAIL


#-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*
SETUP_ENCHANTE_MENU:
put echo /on
waitfor echocolumn
echo
echo
echo =======================================================================
echo ***                       Enchante MENU
echo =======================================================================
echo
echo Sing:                %huntbuddy_sing_test
echo .  sing type:        %huntbuddy_sing_type
echo
echo Chant:               %huntbuddy_chant_test
echo .  chant type:       %huntbuddy_chant_type
echo
echo
echo =======================================================================
echo Sing.................................... sing=[on|off]
echo .  Setup sing........................... .huntbuddy set sing <type>
echo
echo Chant................................... chant=[on|off]
echo .  Setup chant.......................... .huntbuddy set chant <type>
echo
echo Return to Main Menu..................... z1
echo =======================================================================
echo Notes:
echo 1) Either sing or chant can be on...both can't be on at same time...both can be off though
echo
put echo /off
pause 1
	match SETUP_ENCHANTE_SING_ON sing=on
	match SETUP_ENCHANTE_SING_OFF sing=off
	match SETUP_ENCHANTE_chant_ON chant=on
	match SETUP_ENCHANTE_chant_OFF chant=off
	match SETUP_MAIN_MENU z1
	matchwait


SETUP_ENCHANTE_SING_ON:
	setvariable huntbuddy_sing_test ON
	setvariable huntbuddy_chant_test OFF
	goto SETUP_ENCHANTE_MENU
SETUP_ENCHANTE_SING_OFF:
	setvariable huntbuddy_sing_test OFF
	goto SETUP_ENCHANTE_MENU

SETUP_ENCHANTE_CHANT_ON:
	setvariable huntbuddy_sing_test OFF
	setvariable huntbuddy_chant_test ON
	goto SETUP_ENCHANTE_MENU
SETUP_ENCHANTE_CHANT_OFF:
	setvariable huntbuddy_chant_test OFF
	goto SETUP_ENCHANTE_MENU




#-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*
SETUP_SCRIPT_MECH_MENU:
put echo /on
waitfor echocolumn
echo
echo
echo =======================================================================
echo ***                        SCRIPT MECHANICS MENU
echo =======================================================================
echo
echo Change highlighting of the *** string:
echo
echo ENTER..............   .huntbuddy set highlight <color> 
echo
echo .    Where color is a palette color number
echo .    For palette colors: In SF, go to OPTIONS then HIGHLIGHTS and mouse-over the colors.
echo .    yellow is #FFFF00 and is good for dark backgrounds
echo .    red is #FF0000 and is good for light backgrounds
echo
echo .       ex) .huntbuddy set highlight #FFFF00
echo _______________________________________________________________________
echo
echo It is highly recommended that you configure SF to ignore the following strings to reduce scroll:
echo
echo .         setVariable:                (note the capital V and colon)
echo .         EchoColumn                  (note the capital E and C)
echo .         rtchecking
echo .         not a valid flag
echo
echo In SF, go to Options, then Highlights, then Ignore, and then the ADD button.
echo
echo _______________________________________________________________________
echo
echo High level emergencies are flagged by echoing:         WARNING
echo
echo Lower level problems are flagged by echoing:           ATTENTION
echo
echo _______________________________________________________________________
echo
echo
echo Change the speed of the script by editing pause variables.  Open/edit the script,
echo near the top you will find a message about pause variables.
echo
echo =======================================================================
echo
echo Return to Main Menu...................................... z1
echo =======================================================================
echo
echo
put echo /off
pause 1

	match SETUP_MAIN_MENU z1
	matchwait





#-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*
SETUP_NDC_MENU:
put echo /on
waitfor echocolumn
echo
echo
echo =======================================================================
echo ***                  Other Actions MENU
echo =======================================================================
echo <<< IMPORTANT >>>   Use at RISK!
echo Hands will not have a shield or weapon out when using!
echo _______________________________________________________________________
echo
echo Other Actions Master Switch is:  %huntbuddy_ndc_master_test
echo 
echo Hum:                       %huntbuddy_ndc_hum_test
echo . hum tune:                %huntbuddy_ndc_hum_item
echo
echo POW:                       %huntbuddy_ndc_pow_test
echo
echo Juggle:                    %huntbuddy_ndc_juggle_test
echo . juggle item:             %huntbuddy_ndc_juggle_item
echo
echo Study compendium:          %huntbuddy_ndc_comp_test
echo
echo Combine stones:            %huntbuddy_ndc_stones_test
echo
echo Pyramid:                   %huntbuddy_ndc_pyramid_test
echo . forage item:             %huntbuddy_ndc_pyramid_item
echo
echo Forage:                    %huntbuddy_ndc_forage_test
echo . forage item:             %huntbuddy_ndc_forage_item
echo
echo Origami:                   %huntbuddy_ndc_origami_test
echo . origami item:            %huntbuddy_ndc_origami_item
echo
echo =======================================================================
echo Other Master Switch............................. other=[on|off]
echo
echo Hum............................................. hum=[on|off]
echo Set Hum tune.................................... .huntbuddy set hum <tune>
echo
echo POW............................................. pow=[on|off]
echo
echo Juggle.......................................... juggle=[on|off]
echo Set juggle item................................. .huntbuddy set juggle <item>
echo
echo Compendium...................................... comp=[on|off]
echo
echo Stones.......................................... stones=[on|off]
echo
echo Pyramid......................................... pyramid=[on|off]
echo Set pyramid forage item......................... .huntbuddy set pyramid <item>
echo
echo Forage.......................................... forage=[on|off]
echo Set forage item................................. .huntbuddy set forage <item>
echo
echo Origami......................................... origami=[on|off]
echo Set origami item................................ .huntbuddy set origami <item>
echo
echo Return to Main Menu............................. z1
echo =======================================================================
echo
echo
put echo /off
pause 1
	match SETUP_NDC_MASTER_SWITCH_ON other=on
	match SETUP_NDC_MASTER_SWITCH_OFF other=off
	match SETUP_NDC_HUM_ON hum=on
	match SETUP_NDC_HUM_OFF hum=off
	match SETUP_NDC_POW_ON pow=on
	match SETUP_NDC_POW_OFF pow=off
	match SETUP_NDC_JUGGLE_ON juggle=on
	match SETUP_NDC_JUGGLE_OFF juggle=off
	match SETUP_NDC_COMP_ON comp=on
	match SETUP_NDC_COMP_OFF comp=off
	match SETUP_NDC_STONES_ON stones=on
	match SETUP_NDC_STONES_OFF stones=off
	match SETUP_NDC_PYRAMID_ON pyramid=on
	match SETUP_NDC_PYRAMID_OFF pyramid=off
	match SETUP_NDC_FORAGE_ON forage=on
	match SETUP_NDC_FORAGE_OFF forage=off
	match SETUP_NDC_ORIGAMI_ON origami=on
	match SETUP_NDC_ORIGAMI_OFF origami=off
	match SETUP_MAIN_MENU z1
	matchwait

SETUP_NDC_MASTER_SWITCH_ON:
	setvariable huntbuddy_ndc_master_test ON
	goto SETUP_NDC_MENU
SETUP_NDC_MASTER_SWITCH_OFF:
	setvariable huntbuddy_ndc_master_test OFF
	goto SETUP_NDC_MENU
SETUP_NDC_HUM_ON:
	setvariable huntbuddy_ndc_hum_test ON
	goto SETUP_NDC_MENU
SETUP_NDC_HUM_OFF:
	setvariable huntbuddy_ndc_hum_test OFF
	goto SETUP_NDC_MENU
SETUP_NDC_POW_ON:
	setvariable huntbuddy_ndc_pow_test ON
	goto SETUP_NDC_MENU
SETUP_NDC_POW_OFF:
	setvariable huntbuddy_ndc_pow_test OFF
	goto SETUP_NDC_MENU
SETUP_NDC_JUGGLE_ON:
	setvariable huntbuddy_ndc_juggle_test ON
	goto SETUP_NDC_MENU
SETUP_NDC_JUGGLE_OFF:
	setvariable huntbuddy_ndc_juggle_test OFF
	goto SETUP_NDC_MENU
SETUP_NDC_COMP_ON:
	setvariable huntbuddy_ndc_comp_test ON
	goto SETUP_NDC_MENU
SETUP_NDC_COMP_OFF:
	setvariable huntbuddy_ndc_comp_test OFF
	goto SETUP_NDC_MENU
SETUP_NDC_STONES_ON:
	setvariable huntbuddy_ndc_stones_test ON
	goto SETUP_NDC_MENU
SETUP_NDC_STONES_OFF:
	setvariable huntbuddy_ndc_stones_test OFF
	goto SETUP_NDC_MENU
SETUP_NDC_PYRAMID_ON:
	setvariable huntbuddy_ndc_pyramid_test ON
	goto SETUP_NDC_MENU
SETUP_NDC_PYRAMID_OFF:
	setvariable huntbuddy_ndc_pyramid_test OFF
	goto SETUP_NDC_MENU
SETUP_NDC_FORAGE_ON:
	setvariable huntbuddy_ndc_forage_test ON
	goto SETUP_NDC_MENU
SETUP_NDC_FORAGE_OFF:
	setvariable huntbuddy_ndc_forage_test OFF
	goto SETUP_NDC_MENU
SETUP_NDC_ORIGAMI_ON:
	setvariable huntbuddy_ndc_origami_test ON
	goto SETUP_NDC_MENU
SETUP_NDC_ORIGAMI_OFF:
	setvariable huntbuddy_ndc_origami_test OFF
	goto SETUP_NDC_MENU



#-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*
SETUP_GUILD_SPECIALS_MENU:
put echo /on
waitfor echocolumn
echo
echo
echo =======================================================================
echo ***                        GUILD SPECIALS MENU
echo =======================================================================
echo *** Warrior Mage
echo .      Fissure (FISS):                    %huntbuddy_fissure_master_test
echo .      Mantle of Flame (MOF):             %huntbuddy_mof_master_test
echo
echo
echo =======================================================================
echo
echo Turn Fissure ON.............................. fissure=on
echo Turn Fissure OFF............................. fissure=off
echo Setup fissure................................ view=fissure
echo
echo Turn MOF ON.................................. mof=on
echo Turn MOF OFF................................. mof=off
echo Setup MOF.................................... view=mof
echo
echo
echo Return to Main Menu.......................... z1
echo =======================================================================
echo
echo
put echo /off
pause 1
	match SETUP_FISSURE_MASTER_TEST_ON fissure=on
	match SETUP_FISSURE_MASTER_TEST_OFF fissure=off
	match SETUP_MOF_MASTER_TEST_ON mof=on
	match SETUP_MOF_MASTER_TEST_OFF mof=off
	match SETUP_FISSURE_DETAIL view=fissure
	match SETUP_MOF_DETAIL view=mof
	match SETUP_MAIN_MENU z1
	matchwait


SETUP_FISSURE_MASTER_TEST_ON:
	setvariable huntbuddy_fissure_master_test ON
	goto SETUP_GUILD_SPECIALS_MENU
SETUP_FISSURE_MASTER_TEST_OFF:
	setvariable huntbuddy_fissure_master_test OFF
	goto SETUP_GUILD_SPECIALS_MENU
SETUP_MOF_MASTER_TEST_ON:
	setvariable huntbuddy_mof_master_test ON
	goto SETUP_GUILD_SPECIALS_MENU
SETUP_MOF_MASTER_TEST_OFF:
	setvariable huntbuddy_mof_master_test OFF
	goto SETUP_GUILD_SPECIALS_MENU


#-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*
SETUP_FISSURE_DETAIL:
put echo /on
waitfor echocolumn
echo
echo
echo =======================================================================
echo ***                    FISSURE DETAIL - VIEW/CHANGE
echo =======================================================================
echo FISSURE:
echo .    element:           %huntbuddy_fissure_element
echo .    prep power:        %huntbuddy_fissure_prep_power
echo .    cast pause:        %huntbuddy_fissure_cast_pause  seconds
echo Harness:                %huntbuddy_fissure_harn_test
echo .    power:             %huntbuddy_fissure_harn_power
echo .    loop:              %huntbuddy_fissure_harn_loop   harnesses per cast
echo Cambrinth:              %huntbuddy_fissure_cam_test
echo .    cam name:          %huntbuddy_cam_name
echo .    charge:            %huntbuddy_fissure_cam_power
echo .    loop:              %huntbuddy_fissure_cam_loop   cams per cast
echo =======================================================================
echo General:                                           
echo .    Set spell                 .huntbuddy set fissure prep <element> <mana#> <pause#>
echo 
echo Harness:
echo .    Turn ON                   harn=on
echo .    Turn OFF                  harn=off
echo .    Set harness               .huntbuddy set fissure harn <mana#> <loop#>
echo 
echo Cambrinth:
echo .    Name of cambrinth         .huntbuddy set cambrinth <name>
echo .    Turn ON                   cam=on
echo .    Turn OFF                  cam=off
echo .    Set cambrinth             .huntbuddy set fissure cam <charge#> <loop#>
echo
echo Return to Guild Specials Menu..................... z1
echo =======================================================================
echo Note: If fissure is already out, the script skips thereby not adding to the fissure
echo
put echo /off
pause 1
	match SETUP_FISSURE_HARN_TEST_ON harn=on
	match SETUP_FISSURE_HARN_TEST_OFF harn=off
	match SETUP_FISSURE_CAM_TEST_ON cam=on
	match SETUP_FISSURE_CAM_TEST_OFF cam=off
	match SETUP_GUILD_SPECIALS_MENU z1
	matchwait

SETUP_FISSURE_HARN_TEST_ON:
	setvariable huntbuddy_fissure_harn_test ON
	goto SETUP_FISSURE_DETAIL
SETUP_FISSURE_HARN_TEST_OFF:
	setvariable huntbuddy_fissure_harn_test OFF
	goto SETUP_FISSURE_DETAIL
SETUP_FISSURE_CAM_TEST_ON:
	setvariable huntbuddy_fissure_cam_test ON
	goto SETUP_FISSURE_DETAIL
SETUP_FISSURE_CAM_TEST_OFF:
	setvariable huntbuddy_fissure_cam_test OFF
	goto SETUP_FISSURE_DETAIL

#-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*
SETUP_MOF_DETAIL:
put echo /on
waitfor echocolumn
echo
echo
echo =======================================================================
echo ***                    Mantle of Flame DETAIL - VIEW/CHANGE
echo =======================================================================
echo MOF:
echo .    prep power:        %huntbuddy_mof_prep_power
echo .    cast pause:        %huntbuddy_mof_cast_pause  seconds
echo Harness:                %huntbuddy_mof_harn_test
echo .    power:             %huntbuddy_mof_harn_power
echo .    loop:              %huntbuddy_mof_harn_loop   harnesses per cast
echo Cambrinth:              %huntbuddy_mof_cam_test
echo .    cam name:          %huntbuddy_cam_name
echo .    charge:            %huntbuddy_mof_cam_power
echo .    loop:              %huntbuddy_mof_cam_loop   cams per cast
echo =======================================================================
echo General:                                           
echo .    Set spell                 .huntbuddy set mof prep <mana#> <pause#>
echo 
echo Harness:
echo .    Turn ON                   harn=on
echo .    Turn OFF                  harn=off
echo .    Set harness               .huntbuddy set mof harn <mana#> <loop#>
echo 
echo Cambrinth:
echo .    Name of cambrinth         .huntbuddy set cambrinth <name>
echo .    Turn ON                   cam=on
echo .    Turn OFF                  cam=off
echo .    Set cambrinth             .huntbuddy set mof cam <charge#> <loop#>
echo
echo Return to Guild Specials Menu..................... z1
echo =======================================================================
echo Note:
echo 1) ES is auto-cast prior to MoF; ES casts at 5 mana every 1 second until full.
echo 2) You can change the mofesmana and mofespause variables at the top of script.
echo
put echo /off
pause 1
	match SETUP_MOF_HARN_TEST_ON harn=on
	match SETUP_MOF_HARN_TEST_OFF harn=off
	match SETUP_MOF_CAM_TEST_ON cam=on
	match SETUP_MOF_CAM_TEST_OFF cam=off
	match SETUP_GUILD_SPECIALS_MENU z1
	matchwait

SETUP_MOF_HARN_TEST_ON:
	setvariable huntbuddy_mof_harn_test ON
	goto SETUP_MOF_DETAIL
SETUP_MOF_HARN_TEST_OFF:
	setvariable huntbuddy_mof_harn_test OFF
	goto SETUP_MOF_DETAIL
SETUP_MOF_CAM_TEST_ON:
	setvariable huntbuddy_mof_cam_test ON
	goto SETUP_MOF_DETAIL
SETUP_MOF_CAM_TEST_OFF:
	setvariable huntbuddy_mof_cam_test OFF
	goto SETUP_MOF_DETAIL





#-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*-----*
SETUP_MISC_MENU:
put echo /on
waitfor echocolumn
echo
echo
echo =======================================================================
echo ***                        MISCELLANEOUS MENU
echo =======================================================================
echo
echo Mind state check is:             %huntbuddy_mindstate_test
echo .    change mind state testing........................ mindstate=[on|off]
echo
echo Hide is:                         %huntbuddy_hide_test
echo .    change hide...................................... hide=[on|off]   
echo
echo =======================================================================
echo Return to Main Menu................................. z1
echo =======================================================================
echo 
echo
put echo /off
pause 1

	match SETUP_MISC_HIDE_ON hide=on
	match SETUP_MISC_HIDE_OFF hide=off
	match SETUP_MINDSTATE_TEST_ON mindstate=on
	match SETUP_MINDSTATE_TEST_OFF mindstate=off
	match SETUP_MAIN_MENU z1
	matchwait

SETUP_MINDSTATE_TEST_ON:
	setvariable huntbuddy_mindstate_test ON
	goto SETUP_MISC_MENU
SETUP_MINDSTATE_TEST_OFF:
	setvariable huntbuddy_mindstate_test ON
	goto SETUP_MISC_MENU

SETUP_MISC_HIDE_ON:
	setvariable huntbuddy_hide_test ON
	goto SETUP_MISC_MENU
SETUP_MISC_HIDE_OFF:
	setvariable huntbuddy_hide_test OFF
	goto SETUP_MISC_MENU


#############################################################################
###########################    FACTORY INITIALIZE SECTION    ################
#############################################################################

INITIALIZE_FACTORY_SETTINGS:

echo
echo *** Resetting variables START
echo
echo *** Resetting variables [|___________________________________]

setvariable huntbuddy_weapon_style_main_test ON
setvariable huntbuddy_weapon_name Katar
setvariable huntbuddy_weapon_style_noweap_test OFF
setvariable huntbuddy_shield_use ARMWORN
setvariable huntbuddy_shield_name shield
setvariable huntbuddy_mindstate_test ON
setvariable huntbuddy_hide_test OFF

echo *** Resetting variables [||__________________________________]
echo *** Resetting variables [|||_________________________________]
echo *** Resetting variables [||||________________________________]
echo *** Resetting variables [|||||_______________________________]
echo *** Resetting variables [||||||______________________________]
echo *** Resetting variables [|||||||_____________________________]
echo *** Resetting variables [||||||||____________________________]
echo *** Resetting variables [|||||||||___________________________]
echo *** Resetting variables [||||||||||__________________________]
echo *** Resetting variables [|||||||||||_________________________]
echo *** Resetting variables [||||||||||||________________________]
echo *** Resetting variables [|||||||||||||_______________________]
echo *** Resetting variables [||||||||||||||______________________]
echo *** Resetting variables [|||||||||||||||_____________________]
echo *** Resetting variables [||||||||||||||||____________________]
echo *** Resetting variables [|||||||||||||||||___________________]
echo *** Resetting variables [||||||||||||||||||__________________]
echo *** Resetting variables [|||||||||||||||||||_________________]
echo *** Resetting variables [||||||||||||||||||||________________]
echo *** Resetting variables [|||||||||||||||||||||_______________]
echo *** Resetting variables [||||||||||||||||||||||______________]

setvariable huntbuddy_sing_test OFF
setvariable huntbuddy_sing_type x
setvariable huntbuddy_chant_test OFF
setvariable huntbuddy_chant_type rage

echo *** Resetting variables [|||||||||||||||||||||||_____________]

setvariable huntbuddy_magic_master_test OFF
setvariable huntbuddy_buff_master_test OFF
setvariable huntbuddy_cam_name armband
setvariable huntbuddy_buff_retreat_test OFF

echo *** Resetting variables [||||||||||||||||||||||||____________]
echo *** Resetting variables [|||||||||||||||||||||||||___________]

setvariable huntbuddy_buff_partner_test ON
setvariable huntbuddy_buff_self_test ON

echo *** Resetting variables [||||||||||||||||||||||||||__________]

setvariable huntbuddy_buff_test_1 OFF
setvariable huntbuddy_buff_name_1 sw
setvariable huntbuddy_buff_prep_power_1 25
setvariable huntbuddy_buff_harn_test_1 ON
setvariable huntbuddy_buff_harn_power_1 10
setvariable huntbuddy_buff_harn_loop_1 2
setvariable huntbuddy_buff_cam_test_1 OFF
setvariable huntbuddy_buff_cam_power_1 11
setvariable huntbuddy_buff_cam_loop_1 1
setvariable huntbuddy_buff_cast_pause_1 1

setvariable huntbuddy_buff_test_2 OFF
setvariable huntbuddy_buff_name_2 suf
setvariable huntbuddy_buff_prep_power_2 25
setvariable huntbuddy_buff_harn_test_2 ON
setvariable huntbuddy_buff_harn_power_2 10
setvariable huntbuddy_buff_harn_loop_2 2
setvariable huntbuddy_buff_cam_test_2 OFF
setvariable huntbuddy_buff_cam_power_2 11
setvariable huntbuddy_buff_cam_loop_2 1
setvariable huntbuddy_buff_cast_pause_2 1

setvariable huntbuddy_buff_test_3 OFF
setvariable huntbuddy_buff_name_3 ys
setvariable huntbuddy_buff_prep_power_3 25
setvariable huntbuddy_buff_harn_test_3 ON
setvariable huntbuddy_buff_harn_power_3 10
setvariable huntbuddy_buff_harn_loop_3 2
setvariable huntbuddy_buff_cam_test_3 OFF
setvariable huntbuddy_buff_cam_power_3 11
setvariable huntbuddy_buff_cam_loop_3 1
setvariable huntbuddy_buff_cast_pause_3 1

echo *** Resetting variables [|||||||||||||||||||||||||||_________]

setvariable huntbuddy_buff_test_4 OFF
setvariable huntbuddy_buff_name_4 tw
setvariable huntbuddy_buff_prep_power_4 25
setvariable huntbuddy_buff_harn_test_4 ON
setvariable huntbuddy_buff_harn_power_4 10
setvariable huntbuddy_buff_harn_loop_4 2
setvariable huntbuddy_buff_cam_test_4 OFF
setvariable huntbuddy_buff_cam_power_4 11
setvariable huntbuddy_buff_cam_loop_4 1
setvariable huntbuddy_buff_cast_pause_4 1

setvariable huntbuddy_buff_test_5 OFF
setvariable huntbuddy_buff_name_5 aes
setvariable huntbuddy_buff_prep_power_5 25
setvariable huntbuddy_buff_harn_test_5 ON
setvariable huntbuddy_buff_harn_power_5 10
setvariable huntbuddy_buff_harn_loop_5 2
setvariable huntbuddy_buff_cam_test_5 OFF
setvariable huntbuddy_buff_cam_power_5 11
setvariable huntbuddy_buff_cam_loop_5 1
setvariable huntbuddy_buff_cast_pause_5 1

setvariable huntbuddy_buff_test_6 OFF
setvariable huntbuddy_buff_name_6 es
setvariable huntbuddy_buff_prep_power_6 8
setvariable huntbuddy_buff_harn_test_6 OFF
setvariable huntbuddy_buff_harn_power_6 10
setvariable huntbuddy_buff_harn_loop_6 2
setvariable huntbuddy_buff_cam_test_6 OFF
setvariable huntbuddy_buff_cam_power_6 11
setvariable huntbuddy_buff_cam_loop_6 1
setvariable huntbuddy_buff_cast_pause_6 1.5

echo *** Resetting variables [||||||||||||||||||||||||||||________]
echo *** Resetting variables [|||||||||||||||||||||||||||||_______]
echo *** Resetting variables [||||||||||||||||||||||||||||||______]
echo *** Resetting variables [|||||||||||||||||||||||||||||||_____]
echo *** Resetting variables [||||||||||||||||||||||||||||||||____]
echo *** Resetting variables [|||||||||||||||||||||||||||||||||___]

setvariable huntbuddy_ndc_master_test OFF
setvariable huntbuddy_ndc_hum_test OFF
setvariable huntbuddy_ndc_hum_item hymn
setvariable huntbuddy_ndc_pow_test OFF
setvariable huntbuddy_ndc_juggle_test OFF
setvariable huntbuddy_ndc_juggle_item lobsters
setvariable huntbuddy_ndc_comp_test OFF
setvariable huntbuddy_ndc_stones_test OFF
setvariable huntbuddy_ndc_pyramid_test OFF
setvariable huntbuddy_ndc_pyramid_item grass
setvariable huntbuddy_ndc_forage_test OFF
setvariable huntbuddy_ndc_forage_item oak stick
setvariable huntbuddy_ndc_origami_test OFF
setvariable huntbuddy_ndc_origami_item horse

echo *** Resetting variables [||||||||||||||||||||||||||||||||||__]

setvariable huntbuddy_fissure_master_test OFF
setvariable huntbuddy_fissure_element air
setvariable huntbuddy_fissure_prep_power 15
setvariable huntbuddy_fissure_cast_pause 0
setvariable huntbuddy_fissure_harn_test ON
setvariable huntbuddy_fissure_harn_power 12
setvariable huntbuddy_fissure_harn_loop 2
setvariable huntbuddy_fissure_cam_test ON
setvariable huntbuddy_fissure_cam_power 18
setvariable huntbuddy_fissure_cam_loop 1

setvariable huntbuddy_mof_master_test OFF
setvariable huntbuddy_mof_prep_power 12
setvariable huntbuddy_mof_cast_pause 1
setvariable huntbuddy_mof_harn_test ON
setvariable huntbuddy_mof_harn_power 12
setvariable huntbuddy_mof_harn_loop 1
setvariable huntbuddy_mof_cam_test ON
setvariable huntbuddy_mof_cam_power 18
setvariable huntbuddy_mof_cam_loop 1

echo *** Resetting variables [|||||||||||||||||||||||||||||||||||_]
echo *** Resetting variables [||||||||||||||||||||||||||||||||||||]
echo
echo *** Resetting variables COMPLETED
echo

INITIALIZE_FACTORY_SETTINGS_END:
	echo
	echo
	echo *** Variables initialized to factory settings
	echo
	echo
	goto SUBRETURN_%subreturnflag




#############################################################################
###########################    SCRIPT UPDATE SECTION    #####################
#############################################################################

FIRST_RUN_POPUP:
put echo /on
waitfor echocolumn
echo
echo
echo ***********************************************************************
echo ***       This appears to be your first run of this script.         ***  
echo ***********************************************************************
echo ***                                                                 ***
echo ***       The script needs to initialize variables.                 ***
echo ***       Please be patient while variables are set.                ***
echo ***                                                                 ***
echo ***       This will take ~ a minute and cause considerable scroll.  ***
echo ***       The script can not run until this is completed.           ***
echo ***                                                                 ***
echo ***********************************************************************
echo ***                                                                 ***
echo ***       To continue:      type GLANCE                             ***
echo ***                                                                 ***
echo ***********************************************************************
echo
put echo /off
pause 1
	waitfor You glance
	setvariable subreturnflag FIRST_RUN_POPUP
	goto INITIALIZE_FACTORY_SETTINGS
SUBRETURN_FIRST_RUN_POPUP:
	setvariable huntbuddy_firstruntest itsran


put echo /on
waitfor echocolumn
echo
echo
echo ***********************************************************************
echo ***                                                                 ***
echo ***********************************************************************
echo ***                                                                 ***
echo ***       Variables have been successfully initialized.             ***
echo ***       Now you need to customize the script.                     ***
echo ***                                                                 ***
echo ***       Get to a safe spot and continue to the menu section.      ***
echo ***       You can access menu at anytime by entering:               ***
echo ***                                                                 ***
echo ***                    .huntbuddy menu                              ***
echo ***                                                                 ***
echo ***********************************************************************
echo
echo =======================================================================
echo *** To continue from here,
echo .   type and enter the following:           z1
echo =======================================================================
echo
echo
put echo /off
pause 1
	match SETUP_MAIN_MENU z1
	matchwait



#############################################################################
###########################    MAJOR ERROR SECTION    #######################
#############################################################################

ERROR_WEAPON:
	echo 
	echo ************************************************************* 
	echo
	echo *** <<< WARNING ERROR >>>
	echo
	echo Weapon error
	echo
	echo Go to weapon menu and check your setup.
	echo
	echo Exiting script
	echo
	echo *************************************************************
	echo
	goto END_SCRIPT

ERROR_SHIELD:
	echo 
	echo ************************************************************* 
	echo
	echo *** <<< WARNING ERROR >>>
	echo
	echo Shield error
	echo
	echo Go to shield menu and check your setup.
	echo
	echo Exiting script
	echo
	echo *************************************************************
	echo
	goto END_SCRIPT

ERROR_STOW:
	echo
	echo *************************************************************
	echo
	echo *** <<< WARNING ERROR >>>
	echo
	echo Stow error
	echo
	echo Script tried to stow an item and failed.
	echo
	echo 1) check if stow container is full or closed
	echo 2) make sure stow is set... type STOW HELP
	echo
	echo Exiting script
	echo
	echo *************************************************************
	echo
	goto END_SCRIPT

ERROR_WRONGUSAGE:
	echo
	echo *************************************************************
	echo *** Script syntax:
	echo
	echo Main usage is:    .huntbuddy start <name>    where <name> is your hunting partner
	echo
	echo Menu usage is:    .huntbuddy menu
	echo
	echo *************************************************************
	echo
	goto END_SCRIPT

#_________________________________________________________________________
#Version notes:
#version 1.2 4/20/10 updated to new mindstate triggers
#version 1.1 7/26/08 fixed problems with shield.
#version 1.0 released July 25, 2008
#_________________________________________________________________________


END_SCRIPT:
	exit

BOTTOM:
Personal tools
SUPPORT ELANTHIPEDIA