Auto Set Lockstyle - shastaxc/silver-libs GitHub Wiki

Sets your lockstyle on job or subjob change. Also reapplies your lockstyle when encumbrance changes or when your gear is forcibly unequipped by an enemy (which normally breaks lockstyle).

Implementation

If Using Mote Libs

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_lockstyle(n)
end

Replace n with a number 1-200 indicating the lockstyle set number you wish to use for that job. You must create the lockstyle set using the in-game menus found in Main Menu -> Macros -> Edit Equip. Set.

If Using Selindrile Libs

If 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_lockstyle(n)
end

Replace n with a number 1-200 indicating the lockstyle set number you wish to use for that job. You must create the lockstyle set using the in-game menus found in Main Menu -> Macros -> Edit Equip. Set.