Auto‐Reraise - shastaxc/silver-libs GitHub Wiki
Equips Auto-Reraise gear when appropriate, according to your defined preferences. There are 3 modes:
- Off: essentially disables this feature
- On: Keeps Auto-Reraise gear equipped full-time
- Auto: Automatically swaps on your Auto-Reraise gear if you fall below 10% health (or whatever % your configure)
Ensure you have the silibs post precast, post midcast, post aftercast, customize idle, customize melee, and customize defense hooks in your job lua. See the Installation page for more details. If you followed all the installation steps already then you are good to go!
If the specified functions already exist, just put the silibs part inside of it in the appropriate spot. Please add the following:
function job_setup()
silibs.enable_auto_reraise({
set = {head="Crepuscular Helm", body="Crepuscular Mail"},
mode = 'auto',
hpp = 10,
})
endIf the specified functions already exist, just put the silibs part inside of it in the appropriate spot. Please add the following in your char_job_gear.lua file:
function user_job_setup()
silibs.enable_auto_reraise({
set = {head="Crepuscular Helm", body="Crepuscular Mail"},
mode = 'auto',
hpp = 10,
})
end- set: A table of Auto-Reraise gear to be equipped. This is the same format as your other sets, such as
{head="Crepuscular Helm", body="Crepuscular Mail"} - mode: The default Auto-Reraise mode. It can be changed with a command later (which you can keybind). Allowed values are 'on', 'off', or 'auto'.
- hpp: HP percentage which will trigger Auto-Reraise gear to equip when in 'auto' mode. Allowed values: Number 0-100.
This feature does not restrict any particular jobs or gear slots. It will be used if you add the silibs.enable_auto_reraise() command to any job lua. But it is recommended to only use it for jobs that have Auto-Reraise gear. It does not check to see if you actually have the own the gear, does not check if your job can equip the gear, and does not check if it's in a wardrobe or inventory. Make sure your job can actually equip the gear you tell it to or nothing will happen.
This feature does not restrict the slots you can equip in the 'set' config option, but it is recommended to only include Auto-Reraise gear in the configured set because it will override all other gear in every situation (i.e. idle, engaged, weaponskilling, precast, midcast, etc). It is recommended only to include the Auto-Reraise gear in this set in order to be minimally disruptive to your other sets.
You can change the AutoReraise mode using GearSwap "self command".
- From the in-game chat:
//gs c autoreraise <mode> - From in-game macro:
/console gs c autoreraise <mode>
In the commands above, <mode> must be either on, off, auto, or cycle. If you exclude the mode from the command it will default to "cycle".