promotional bannermobile promotional banner
premium banner

RangeSwitch

Abandoned
RangeSwitch

Description

This addon flips between action bar pages when a hostile target is selected. It chooses a certain page when a certain spell is in range of the target. The page numbers and spells are configurable along with a
few other parameters.

Use the options window to select a custom set of spells and pages. Note: the selected actions must also exist somewhere in the action bar.

OPTIONS WINDOW
Bind a key or use the slash command to bring up the options winodow. The top four rows are used to allow four different spells to flip to four different pages. The next two rows are use to flip to a chosen page at the moment a target is selected or deselected. Here is a description of the parameters:

Priority: The higher row has higher priority. The top-most row where all of the configured parameters are satisfied, is the page that will be selected.

Enabled: For convenience, a single row can be disabled to prevent it from checking and flipping to that page.

Action: Drag and drop a spell from the spellbook or action bar into this slot in order to select an action. The spell should have a range value which can be determined by looking at the spell's tooltip. Now make sure the selected actions are also somewhere in the action bar. The range of a spell can only be determined when it is placed in the action bar.

Range: Enforces the condition that the selected action must be in range of the selected target. This is the pimarily used parameter.

Usable: Enforces the condition that the selected action must be usable. I threw this in at the last minute and don't really know how useful it will be.

Combat: Enforces the condition that the player must also be in combat.

Page: When all the conditions that have been selected are met, the action bar will flip to this page. Note: as long as a target is selected, this addon is constantly checking the above conditions. If you manually switch to a different page, this addon will quickly override your selection and go back to the page that it is configured to go to.

The "Enable RangeSwitch" checkbox, the slash commands, or the button binding can be used to globally disable the automatic page flipping to allow you to have full manual control over paging.


GETTING STARTED

Here is a basic configuration for hunters that utilizes 3 pages:

Row 1: Enabled [on], Action [Wing Clip (any rank)], Range [on], Usable [off], Combat [off], Page [2]

Row 2: Enabled [on], Action [Auto Shot], Range [on], Usable [off], Combat [off], Page [1]

Row 3: Disabled
Row 4: Disabled

On Gain Target: Disabled
On Lose Target: Enabled [on], Page [3]

With this setup you want to put ranged attacks on page 1, melee attacks on page 2, and non combat actions on page 3.

See the readme.txt file for more details.