Updated the Ranger LUA (shows up as 1/15/2014 on link), with some documentation at top of what's there:
Code:
-- Normal/Accuracy/TP build modes for Ranged Attacks (Offense Mode)
-- Normal/Accuracy for Weaponskills
-- Engaged set for Normal/Accuracy/TP
-- The Casting, Resting, PDT/MDT modes aren't really used, but the sets are there
-- so fill in equipment as needed, they're merged from idle
--
-- Precast set for Ranged (Misc->Ranged) set
-- Midcast set for Ranged (Follows Offense Mode)
--
-- A set for Unlimited Shot is there, filled with ammo that should only be used with unlimited shot
-- There's a function in precast that makes sure the buff is active, otherwise equips the default ammo
-- this check won't protect against multi-hit WS or barrage.
--
-- Ability to set the default amunition used for different weapons
-- simply set DefaultAmmo["Name of Ranged Weapon"] = "Name of Ammo"
-- This is used in case ammo slot is empty, or special ammo needs to be replaced in precast
-- If it can't find the ammo or weapon, it'll simply keep the ammo slot empty to protect
-- against the possibility of spending the rare/ex amunition.
--
-- A Ranged WS set has been created to prevent WS from being fired over 21 yalms
-- All other WS not included are prevent from being fired over 8 yalms
-- the Ranged WS set does not include short-ranged WS or cor-only WS
--
-- Belt/Gorget specific sets have been created, specifically for Light/Soil
-- If the WS being used matches one of them, that belt/gorget will be used precast
--
-- A simple JA precast for Steps, BountyShot, and Scavenge are set
--
-- Low ammunition warning implemented (warns if the TOTAL amount of ammo in the current slot is under 15)
--
-- Sneak-Cancelation performed when Spectral Jig is used, and sneak is still active.