﻿Click Buff Macro Scripting v1.0 by Aditu of Permafrost (ACT Author) aditu@maine.rr.com

Synopsis:
Essentially the purpose of this mod was to reduce the tedium of the most annoying part of my personal gameplay. Which was buffing my group after every death. Maybe 90% of my gameplay is raiding content so death is a rather common part of my playing experience.

The windows is a listing of buff names and targets that are preconfigured in the XML file.  Each buff will be marked red or green depending on if the script thinks it has already been cast.  Clicking the script toggle button will make the script attempt to cast the red-marked buffs in order until it: runs out of red buffs; is stopped early within a cast; a spell other than the one it attempted is cast; you enter combat or a spell failure message appears(such as Target out of range).  If all buffs are able to cast successfully, the script should be able to queue the entire list of buffs.  The script does not simply cast a static order of buffs but casts buffs that are missing in the maintained effects window.  If nothing is missing, it will cast nothing.

Installation:
This is a "Custom" UI mod in which it does not replace any other UI piece. It is standalone in which it is not dependent on having any other UI piece installed already.

That said, you *are* required to be using a non-default UI in order to view this UI piece. If you are using Default as your current UI, you will need to create a new UI folder for this mod as you cannot simply copy it into the Default folder and have it function. If you fall into this category, please follow this guide to set up a non-Default UI folder. http://www.eq2interface.com/forums/faq.php?faq=howto_install#faq_new_faq_item

As this is a "Custom" namespace UI mod, you will either need to have a "eq2ui_custom.xml" file to add this file's reference to, or use a new one. If you do not already have this file, one is included in the download archive. If you do already have it, do not overwrite it, open it in a text editor and before the last line add the following:

<Include>eq2ui_custom_clickbuff.xml</Include>

Before using this mod you must edit the XML file to enter the buff names and initial targets.  Near the top of the file there will be twenty lines labeled Spell00 to Spell19.  There will be properties named Checked, Value and Target.  Checked is true or false and determine if the entry is checked in the window initially.  Unchecked entries are ignored by the script.  For Value, enter the name of the buff to cast exactly as it would appear in your maintained effects window.  For Target, enter the target's name as it would appear in the maintained effects window.  This may be a player name or it may be something like Group, Self, Pet etc.

There are two copies of this file in the archive; presumably for two different characters with different spell sets.  For installation purposes you will need to add both to the eq2ui_custom.xml file if you wish to use both.

Usage:
To view the new UI window, you can type or make a hotkey with the following command:
/show_window Custom.ClickBuff
You can also make a hotkey that will click the start button without having the window open:
/show_window Custom.ClickBuff.ToggleAuto

If you wish to access the second file instead, use ClickBuff2 in the following commands.  (Just add a '2')

The spell names are statically defined in the XML file, however you may change the spell targets while playing.  To change a spell target, target the player you wish to switch to and press the 'T' button next to the entry you wish to change.  The script will take the name of the current target.  For that reason, it would be hard to input Group or Self into the target this way; so avoid changing those entries in-game.
