Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -------------------------------------------------------------------------------------------------------------------
- -- Setup functions for this job. Generally should not be modified.
- -------------------------------------------------------------------------------------------------------------------
- --[[
- Custom commands:
- Shorthand versions for each strategem type that uses the version appropriate for
- the current Arts.
- Light Arts Dark Arts
- gs c scholar light Light Arts/Addendum
- gs c scholar dark Dark Arts/Addendum
- gs c scholar cost Penury Parsimony
- gs c scholar speed Celerity Alacrity
- gs c scholar aoe Accession Manifestation
- gs c scholar power Rapture Ebullience
- gs c scholar duration Perpetuance
- gs c scholar accuracy Altruism Focalization
- gs c scholar enmity Tranquility Equanimity
- gs c scholar skillchain Immanence
- gs c scholar addendum Addendum: White Addendum: Black
- --]]
- -- Initialization function for this job file.
- function get_sets()
- mote_include_version = 2
- -- Load and initialize the include file.
- include('Mote-Include.lua')
- end
- -- Setup vars that are user-independent. state.Buff vars initialized here will automatically be tracked.
- function job_setup()
- info.addendumNukes = S{"Stone IV", "Water IV", "Aero IV", "Fire IV", "Blizzard IV", "Thunder IV",
- "Stone V", "Water V", "Aero V", "Fire V", "Blizzard V", "Thunder V"}
- state.Buff['Sublimation: Activated'] = buffactive['Sublimation: Activated'] or false
- update_active_strategems()
- end
- -------------------------------------------------------------------------------------------------------------------
- -- User setup functions for this job. Recommend that these be overridden in a sidecar file.
- -------------------------------------------------------------------------------------------------------------------
- -- Setup vars that are user-dependent. Can override this function in a sidecar file.
- function user_setup()
- state.OffenseMode:options('None', 'Normal', 'Refresh')
- state.CastingMode:options('Normal', 'Seidr', 'Resistant')
- state.IdleMode:options('Normal', 'PDT', 'MDT')
- state.MagicBurst = M(false, 'Magic Burst')
- state.MPCoat = M(false, 'MP Coat')
- info.low_nukes = S{"Stone", "Water", "Aero", "Fire", "Blizzard", "Thunder"}
- info.mid_nukes = S{"Stone II", "Water II", "Aero II", "Fire II", "Blizzard II", "Thunder II",
- "Stone III", "Water III", "Aero III", "Fire III", "Blizzard III", "Thunder III",
- "Stone IV", "Water IV", "Aero IV", "Fire IV", "Blizzard IV", "Thunder IV",
- "Stone V", "Water V", "Aero V", "Fire V", "Blizzard V", "Thunder V"}
- info.mid_nukes = S{}
- info.high_nukes = S{}
- gear.default.weaponskill_waist = "Windbuffet Belt +1"
- gear.default.obi_waist = "Refoccilation Stone"
- gear.default.obi_back = "Bookworm's Cape"
- gear.MPCoat = "Seidr Cotehardie"
- -- Additional local binds
- send_command('bind ^` input /ma Stun <t>')
- send_command('bind !` gs c toggle MagicBurst')
- send_command('bind ^- gs c scholar light')
- send_command('bind ^= gs c scholar dark')
- send_command('bind !- gs c scholar addendum')
- send_command('bind != gs c scholar addendum')
- send_command('bind ^[ gs c scholar power')
- send_command('bind ^] gs c scholar accuracy')
- send_command('bind ![ gs c scholar aoe')
- send_command('bind !] gs c scholar duration')
- send_command('bind ^, input /ma Sneak <stpc>')
- send_command('bind ^. input /ma Invisible <stpc>')
- select_default_macro_book()
- end
- -- Called when this job file is unloaded (eg: job change)
- function user_unload()
- send_command('unbind ^`')
- send_command('unbind !`')
- send_command('unbind ^-')
- send_command('unbind ^=')
- send_command('unbind !-')
- send_command('unbind !=')
- send_command('unbind ^[')
- send_command('unbind ^]')
- send_command('unbind ![')
- send_command('unbind !]')
- send_command('unbind ^,')
- send_command('unbind !.')
- end
- -- Define sets and vars used by this job file.
- function init_gear_sets()
- --------------------------------------
- -- Start defining the sets
- --------------------------------------
- ---- Precast Sets ----
- -- Precast sets to enhance JAs
- sets.precast.JA['Tabula Rasa'] = {
- legs="Pedagogy Pants"
- }
- sets.precast.JA['Enlightenment'] = {
- body="Peda. Gown +1"
- }
- -- Fast cast sets for spells
- sets.precast.FC = {
- head="Vanya Hood", --10
- body="Shango Robe", --8
- hands="Gende. Gages +1", --7
- legs="Psycloth Lappas", --7
- feet="Regal Pumps +1", --7
- neck="Orunmila's Torque", --5
- ear1="Halasz Earring",
- ear2="Loquacious Earring", --2
- ring1="Prolix Ring", --2
- ring2="Weather. Ring", --5
- back="Swith Cape +1", --3
- waist="Witful Belt", --2
- }
- sets.precast.FC['Enhancing Magic'] = set_combine(sets.precast.FC, {
- ammo="Impatiens",
- waist="Siegel Sash",
- })
- --[[ sets.precast.FC.Stoneskin = set_combine(sets.precast.FC['Enhancing Magic'], {
- head="Umuthi Hat",
- })
- ]]
- sets.precast.FC['Elemental Magic'] = set_combine(sets.precast.FC, {
- waist="Refoccilation Stone"
- })
- sets.precast.FC.Cure = set_combine(sets.precast.FC, {
- sub="Sors Shield", --5
- ammo="Impatiens",
- body="Vanya Robe", --7
- feet="Vanya Clogs", --15
- back="Pahtli Cape",
- })
- sets.precast.FC.Curaga = sets.precast.FC.Cure
- --[[ sets.precast.FC.Impact = set_combine(sets.precast.FC['Elemental Magic'], {
- head=empty,
- body="Twilight Cloak"
- })
- ]]
- sets.precast.WS = {
- head="Telchine Cap",
- body="Telchine Chas.",
- hands="Telchine Gloves",
- legs="Telchine Braconi",
- feet="Battlecast Gaiters",
- neck="Lissome Necklace",
- ear1="Steelflash Earring",
- ear2="Bladeborn Earring",
- ring1="Petrov Ring",
- ring2="Ramuh Ring +1",
- back="Toro Cape",
- waist="Windbuffet Belt +1",
- }
- sets.precast.WS['Myrkr'] = {
- ammo="Ghastly Tathlum +1",
- head="Pixie Hairpin +1",
- body="Helios Jacket",
- hands="Telchine Gloves",
- legs="Merlinic Shalwar",
- feet="Telchine Pigaches",
- neck="Eddy Necklace",
- ear1="Barkaro. Earring",
- ear2="Loquac. Earring",
- ring1="Mephitas's Ring +1",
- ring2="Sangoma Ring",
- back="Bane Cape",
- waist="Acuity Belt",
- } -- Max MP
- ---- Precast Sets ----
- sets.midcast.FastRecast = {
- head="Merlinic Hood",
- hands="Gende. Gages +1",
- legs="Merlinic Shalwar",
- feet="Regal Pumps +1",
- ear2="Loquac. Earring",
- ring1="Prolix Ring",
- back="Swith Cape +1",
- waist="Witful Belt",
- } -- Haste
- sets.midcast.Cure = {
- main="Tamaxchi", --22
- sub="Sors Shield", --3
- head="Gende. Caubeen +1", --10
- body="Vanya Robe",
- hands="Telchine Gloves", --10
- legs="Acad. Pants +1",
- feet="Medium's Sabots", --12
- neck="Incanter's Torque",
- ear2="Loquac. Earring",
- ring1="Haoma's Ring",
- ring2="Sirona's Ring",
- back="Oretan. Cape +1", --6
- waist="Bishop's Sash",
- }
- sets.midcast.CureWithLightWeather = set_combine(sets.midcast.Cure, {
- main="Chatoyant Staff",
- })
- sets.midcast.Curaga = sets.midcast.Cure
- sets.midcast.Regen = {
- main="Bolelabunga",
- sub="Genbu's Shield",
- ammo="Savant's Treatise",
- head="Arbatel Bonnet +1",
- head="Telchine Cap",
- body="Telchine Chas.",
- hands="Telchine Gloves",
- legs="Telchine Braconi",
- feet="Telchine Pigaches",
- neck="Incanter's Torque",
- ear2="Andoaa Earring",
- back="Bookworm's Cape",
- waist="Olympus Sash",
- }
- sets.midcast.StatusRemoval = {
- main="Tamaxchi",
- sub="Sors Shield",
- head="Gende. Caubeen +1",
- body="Vanya Robe",
- hands="Telchine Gloves",
- legs="Acad. Pants +1",
- feet="Vanya Clogs",
- neck="Incanter's Torque",
- ear2="Loquac. Earring",
- ring1="Sirona's Ring",
- ring2="Haoma's Ring",
- back="Oretan. Cape +1",
- waist="Bishop's Sash",
- }
- sets.midcast.Cursna = {
- feet="Gende. Galoshes +1",
- ring2="Haoma's Ring",
- back="Oretan. Cape +1",
- }
- sets.midcast['Enhancing Magic'] = {
- main="Bolelabunga",
- sub="Genbu's Shield",
- ammo="Savant's Treatise",
- head="Befouled Crown",
- body="Telchine Chasuble",
- hands="Telchine Gloves",
- legs="Telchine Braconi",
- feet="Telchine Pigaches",
- neck="Incanter's Torque",
- ear2="Andoaa Earring",
- back="Fi Follet Cape",
- waist="Olympus Sash",
- }
- sets.midcast.Stoneskin = set_combine(sets.midcast['Enhancing Magic'], {
- neck="Nodens Gorget",
- waist="Siegel Sash",
- })
- sets.midcast.Storm = set_combine(sets.midcast['Enhancing Magic'], {
- feet="Peda. Loafers",
- })
- sets.midcast.Protect = {
- ring2="Sheltered Ring",
- }
- sets.midcast.Protectra = sets.midcast.Protect
- sets.midcast.Shell = sets.midcast.Protect
- sets.midcast.Shellra = sets.midcast.Shell
- sets.midcast.EnhancingDuration = {
- head="Telchine Cap",
- body="Telchine Chas.",
- hands="Telchine Gloves",
- legs="Telchine Braconi",
- feet="Telchine Pigaches",
- }
- -- Custom spell classes
- sets.midcast.MndEnfeebles = {
- main="Akademos",
- sub="Mephitis Grip",
- -- range="Aureole",
- head="Merlinic Hood",
- body="Vanya Robe",
- hands="Amalric Gages",
- legs="Psycloth Lappas",
- feet="Medium's Sabots",
- neck="Imbodla Necklace",
- ear1="Barkaro. Earring",
- ear2="Gwati Earring",
- ring1="Sangoma Ring",
- ring2="Weather. Ring",
- back="Aurist's Cape +1",
- waist="Acuity Belt",
- }
- sets.midcast.IntEnfeebles = sets.midcast.IntEnfeebles
- sets.midcast.ElementalEnfeeble = sets.midcast.IntEnfeebles
- sets.midcast['Dark Magic'] = {
- main="Akademos",
- sub="Mephitis Grip",
- ammo="Ghastly Tathlum +1",
- head="Merlinic Hood",
- body="Shango Robe",
- hands="Amalric Gages",
- legs="Pedagogy Pants",
- feet="Medium's Sabots",
- neck="Incanter's Torque",
- ear1="Barkaro. Earring",
- ear2="Gwati Earring",
- ring1="Evanescence Ring",
- ring2="Weather. Ring",
- back="Bookworm's Cape",
- waist=gear.ElementalObi,
- }
- sets.midcast.Kaustra = {
- main="Akademos",
- sub="Niobid Strap",
- ammo="Ghastly Tathlum +1",
- head="Pixie Hairpin +1",
- body="Amalric Doublet",
- hands="Amalric Gages",
- legs="Psycloth Lappas",
- feet="Merlinic Crackows",
- neck="Incanter's Torque",
- ear1="Barkaro. Earring",
- ear2="Friomisi Earring",
- ring1="Shiva Ring +1",
- ring2="Shiva Ring +1",
- back=gear.ElementalCape,
- waist=gear.ElementalObi,
- }
- sets.midcast.Drain = set_combine(sets.midcast['Dark Magic'], {
- head="Pixie Hairpin +1",
- ear2="Hirudinea Earring",
- ring2="Excelsis Ring",
- waist="Fucho-no-obi",
- })
- sets.midcast.Aspir = sets.midcast.Drain
- sets.midcast.Stun = sets.midcast['Dark Magic']
- -- Elemental Magic
- sets.midcast['Elemental Magic'] = {
- main="Akademos",
- sub="Niobid Strap",
- ammo="Ghastly Tathlum +1",
- head="Merlinic Hood",
- body="Amalric Doublet",
- hands="Amalric Gages",
- legs="Merlinic Shalwar",
- feet="Merlinic Crackows",
- neck="Saevus Pendant +1",
- ear1="Barkaro. Earring",
- ear2="Friomisi Earring",
- ring1="Shiva Ring +1",
- ring2="Shiva Ring +1",
- back="Toro Cape",
- waist=gear.ElementalObi,
- }
- sets.midcast['Elemental Magic'].Seidr = set_combine(sets.midcast['Elemental Magic'], {
- body="Seidr Cotehardie",
- })
- sets.midcast['Elemental Magic'].Resistant = set_combine(sets.midcast['Elemental Magic'], {
- ear2="Hermetic Earring",
- ring2="Weather. Ring",
- back="Aurist's Cape +1",
- waist="Acuity Belt",
- })
- sets.midcast['Elemental Magic'].HighTierNuke = sets.midcast['Elemental Magic']
- sets.midcast['Elemental Magic'].HighTierNuke.Resistant = sets.midcast['Elemental Magic'].Resistant
- --[[ sets.midcast.Impact = set_combine(sets.midcast['Elemental Magic'], {
- head=empty,
- body="Twilight Cloak"
- })
- ]]
- sets.midcast.Helix = set_combine(sets.midcast['Elemental Magic'], {waist=gear.default.obi_waist})
- sets.midcast.Noctohelix = set_combine(sets.midcast.Helix, {head="Pixie Hairpin +1"})
- sets.midcast.Luminohelix = set_combine(sets.midcast.Helix, {ring1="Weatherspoon Ring"})
- ------------------------------------------------------------------------------------------------
- ------------------------------------------ Idle Sets -------------------------------------------
- ------------------------------------------------------------------------------------------------
- sets.idle = {
- main="Bolelabunga",
- sub="Genbu's Shield",
- ammo="Homiliary",
- head="Befouled Crown",
- body="Arbatel Gown +1",
- hands="Arbatel Bracers +1",
- legs="Assiduity Pants +1",
- feet="Herald's Gaiters",
- neck="Twilight Torque",
- ear1="Barkaro. Earring",
- ear2="Infused Earring",
- ring1="Shiva Ring +1",
- ring2="Shiva Ring +1",
- back="Bookworm's Cape",
- waist="Refoccilation Stone",
- }
- sets.idle.Town = set_combine(sets.idle, {
- main="Akademos",
- sub="Niobid Strap",
- })
- sets.resting = set_combine(sets.idle, {
- main="Chatoyant Staff",
- waist="Austerity Belt +1",
- })
- ------------------------------------------------------------------------------------------------
- ---------------------------------------- Defense Sets ------------------------------------------
- ------------------------------------------------------------------------------------------------
- sets.defense.PDT = {
- main="Bolelabunga",
- sub="Genbu's Shield",
- neck="Twilight Torque",
- ring2="Dark Ring",
- }
- sets.defense.MDT = {
- ring2="Dark Ring",
- }
- sets.Kiting = {
- feet="Herald's Gaiters"
- }
- sets.latent_refresh = {
- waist="Fucho-no-obi"
- }
- ------------------------------------------------------------------------------------------------
- ---------------------------------------- Engaged Sets ------------------------------------------
- ------------------------------------------------------------------------------------------------
- sets.engaged = {
- head="Telchine Cap",
- body="Helios Jacket",
- hands="Telchine Gloves",
- legs="Telchine Braconi",
- feet="Battlecast Gaiters",
- neck="Lissome Necklace",
- ear1="Steelflash Earring",
- ear2="Bladeborn Earring",
- ring1="Petrov Ring",
- ring2="Ramuh Ring +1",
- back="Bookworm's Cape",
- waist="Windbuffet Belt +1",
- }
- sets.engaged.Refresh = sets.idle
- ------------------------------------------------------------------------------------------------
- ---------------------------------------- Special Sets ------------------------------------------
- ------------------------------------------------------------------------------------------------
- sets.magic_burst = { -- Staff 10
- hands="Amalric Gages", --(5)
- feet="Merlinic Crackows", --11
- neck="Mizu. Kubikazari", --10
- ear2="Static Earring", --5
- ring1="Locus Ring", --5
- ring2="Mujin Band", --(5)
- }
- sets.buff['Ebullience'] = {head="Arbatel Bonnet +1"}
- sets.buff['Rapture'] = {head="Arbatel Bonnet +1"}
- sets.buff['Perpetuance'] = {hands="Arbatel Bracers +1"}
- sets.buff['Immanence'] = {hands="Arbatel Bracers +1"}
- sets.buff['Penury'] = {legs="Arbatel Pants +1"}
- sets.buff['Parsimony'] = {legs="Arbatel Pants +1"}
- sets.buff['Celerity'] = {feet="Peda. Loafers"}
- sets.buff['Alacrity'] = {feet="Peda. Loafers"}
- sets.buff['Klimaform'] = {feet="Arbatel Loafers +1"}
- sets.buff.FullSublimation = {
- head="Acad. Mortar. +1",
- ear1="Savant's Earring",
- body="Peda. Gown +1",
- }
- end
- -------------------------------------------------------------------------------------------------------------------
- -- Job-specific hooks for standard casting events.
- -------------------------------------------------------------------------------------------------------------------
- -- Run after the general midcast() is done.
- function job_post_midcast(spell, action, spellMap, eventArgs)
- if spell.action_type == 'Magic' then
- apply_grimoire_bonuses(spell, action, spellMap, eventArgs)
- end
- if spell.skill == 'Elemental Magic' and state.MagicBurst.value then
- equip(sets.magic_burst)
- end
- if spell.skill == 'Enhancing Magic' and classes.NoSkillSpells:contains(spell.english) then
- equip(sets.midcast.EnhancingDuration)
- end
- end
- function job_aftercast(spell, action, spellMap, eventArgs)
- if not spell.interrupted then
- if spell.skill == 'Elemental Magic' then
- --state.MagicBurst:reset()
- end
- end
- end
- -------------------------------------------------------------------------------------------------------------------
- -- Job-specific hooks for non-casting events.
- -------------------------------------------------------------------------------------------------------------------
- -- Called when a player gains or loses a buff.
- -- buff == buff gained or lost
- -- gain == true if the buff was gained, false if it was lost.
- function job_buff_change(buff, gain)
- if buff == "Sublimation: Activated" then
- handle_equipping_gear(player.status)
- end
- end
- -- Handle notifications of general user state change.
- function job_state_change(stateField, newValue, oldValue)
- if stateField == 'Offense Mode' then
- if newValue == 'None' then
- enable('main','sub','range')
- else
- disable('main','sub','range')
- end
- end
- end
- -------------------------------------------------------------------------------------------------------------------
- -- User code that supplements standard library decisions.
- -------------------------------------------------------------------------------------------------------------------
- -- Custom spell mapping.
- function job_get_spell_map(spell, default_spell_map)
- if spell.action_type == 'Magic' then
- if default_spell_map == 'Cure' or default_spell_map == 'Curaga' then
- if world.weather_element == 'Light' then
- return 'CureWithLightWeather'
- end
- elseif spell.skill == 'Enfeebling Magic' then
- if spell.type == 'WhiteMagic' then
- return 'MndEnfeebles'
- else
- return 'IntEnfeebles'
- end
- elseif spell.skill == 'Elemental Magic' then
- if info.low_nukes:contains(spell.english) then
- return 'LowTierNuke'
- elseif info.mid_nukes:contains(spell.english) then
- return 'MidTierNuke'
- elseif info.high_nukes:contains(spell.english) then
- return 'HighTierNuke'
- end
- end
- end
- end
- function customize_idle_set(idleSet)
- if state.Buff['Sublimation: Activated'] then
- if state.IdleMode.value == 'Normal' then
- idleSet = set_combine(idleSet, sets.buff.FullSublimation)
- elseif state.IdleMode.value == 'PDT' then
- idleSet = set_combine(idleSet, sets.buff.PDTSublimation)
- end
- end
- if player.mpp < 51 then
- idleSet = set_combine(idleSet, sets.latent_refresh)
- end
- return idleSet
- end
- -- Called by the 'update' self-command.
- function job_update(cmdParams, eventArgs)
- --[[ if cmdParams[1] == 'user' and not (buffactive['light arts'] or buffactive['dark arts'] or
- buffactive['addendum: white'] or buffactive['addendum: black']) then
- if state.IdleMode.value == 'Stun' then
- send_command('@input /ja "Dark Arts" <me>')
- else
- send_command('@input /ja "Light Arts" <me>')
- end
- end]]
- update_active_strategems()
- update_sublimation()
- end
- -- Function to display the current relevant user state when doing an update.
- -- Return true if display was handled, and you don't want the default info shown.
- function display_current_job_state(eventArgs)
- display_current_caster_state()
- eventArgs.handled = true
- end
- -------------------------------------------------------------------------------------------------------------------
- -- User code that supplements self-commands.
- -------------------------------------------------------------------------------------------------------------------
- -- Called for direct player commands.
- function job_self_command(cmdParams, eventArgs)
- if cmdParams[1]:lower() == 'scholar' then
- handle_strategems(cmdParams)
- eventArgs.handled = true
- elseif cmdParams[1]:lower() == 'nuke' then
- handle_nuking(cmdParams)
- eventArgs.handled = true
- end
- end
- -------------------------------------------------------------------------------------------------------------------
- -- Utility functions specific to this job.
- -------------------------------------------------------------------------------------------------------------------
- -- Reset the state vars tracking strategems.
- function update_active_strategems()
- state.Buff['Ebullience'] = buffactive['Ebullience'] or false
- state.Buff['Rapture'] = buffactive['Rapture'] or false
- state.Buff['Perpetuance'] = buffactive['Perpetuance'] or false
- state.Buff['Immanence'] = buffactive['Immanence'] or false
- state.Buff['Penury'] = buffactive['Penury'] or false
- state.Buff['Parsimony'] = buffactive['Parsimony'] or false
- state.Buff['Celerity'] = buffactive['Celerity'] or false
- state.Buff['Alacrity'] = buffactive['Alacrity'] or false
- state.Buff['Klimaform'] = buffactive['Klimaform'] or false
- end
- function update_sublimation()
- state.Buff['Sublimation: Activated'] = buffactive['Sublimation: Activated'] or false
- end
- -- Equip sets appropriate to the active buffs, relative to the spell being cast.
- function apply_grimoire_bonuses(spell, action, spellMap)
- if state.Buff.Perpetuance and spell.type =='WhiteMagic' and spell.skill == 'Enhancing Magic' then
- equip(sets.buff['Perpetuance'])
- end
- if state.Buff.Rapture and (spellMap == 'Cure' or spellMap == 'Curaga') then
- equip(sets.buff['Rapture'])
- end
- if spell.skill == 'Elemental Magic' and spellMap ~= 'ElementalEnfeeble' then
- if state.Buff.Ebullience and spell.english ~= 'Impact' then
- equip(sets.buff['Ebullience'])
- end
- if state.Buff.Immanence then
- equip(sets.buff['Immanence'])
- end
- if state.Buff.Klimaform and spell.element == world.weather_element then
- equip(sets.buff['Klimaform'])
- end
- end
- if state.Buff.Penury then equip(sets.buff['Penury']) end
- if state.Buff.Parsimony then equip(sets.buff['Parsimony']) end
- if state.Buff.Celerity then equip(sets.buff['Celerity']) end
- if state.Buff.Alacrity then equip(sets.buff['Alacrity']) end
- end
- -- General handling of strategems in an Arts-agnostic way.
- -- Format: gs c scholar <strategem>
- function handle_strategems(cmdParams)
- -- cmdParams[1] == 'scholar'
- -- cmdParams[2] == strategem to use
- if not cmdParams[2] then
- add_to_chat(123,'Error: No strategem command given.')
- return
- end
- local strategem = cmdParams[2]:lower()
- if strategem == 'light' then
- if buffactive['light arts'] then
- send_command('input /ja "Addendum: White" <me>')
- elseif buffactive['addendum: white'] then
- add_to_chat(122,'Error: Addendum: White is already active.')
- else
- send_command('input /ja "Light Arts" <me>')
- end
- elseif strategem == 'dark' then
- if buffactive['dark arts'] then
- send_command('input /ja "Addendum: Black" <me>')
- elseif buffactive['addendum: black'] then
- add_to_chat(122,'Error: Addendum: Black is already active.')
- else
- send_command('input /ja "Dark Arts" <me>')
- end
- elseif buffactive['light arts'] or buffactive['addendum: white'] then
- if strategem == 'cost' then
- send_command('input /ja Penury <me>')
- elseif strategem == 'speed' then
- send_command('input /ja Celerity <me>')
- elseif strategem == 'aoe' then
- send_command('input /ja Accession <me>')
- elseif strategem == 'power' then
- send_command('input /ja Rapture <me>')
- elseif strategem == 'duration' then
- send_command('input /ja Perpetuance <me>')
- elseif strategem == 'accuracy' then
- send_command('input /ja Altruism <me>')
- elseif strategem == 'enmity' then
- send_command('input /ja Tranquility <me>')
- elseif strategem == 'skillchain' then
- add_to_chat(122,'Error: Light Arts does not have a skillchain strategem.')
- elseif strategem == 'addendum' then
- send_command('input /ja "Addendum: White" <me>')
- else
- add_to_chat(123,'Error: Unknown strategem ['..strategem..']')
- end
- elseif buffactive['dark arts'] or buffactive['addendum: black'] then
- if strategem == 'cost' then
- send_command('input /ja Parsimony <me>')
- elseif strategem == 'speed' then
- send_command('input /ja Alacrity <me>')
- elseif strategem == 'aoe' then
- send_command('input /ja Manifestation <me>')
- elseif strategem == 'power' then
- send_command('input /ja Ebullience <me>')
- elseif strategem == 'duration' then
- add_to_chat(122,'Error: Dark Arts does not have a duration strategem.')
- elseif strategem == 'accuracy' then
- send_command('input /ja Focalization <me>')
- elseif strategem == 'enmity' then
- send_command('input /ja Equanimity <me>')
- elseif strategem == 'skillchain' then
- send_command('input /ja Immanence <me>')
- elseif strategem == 'addendum' then
- send_command('input /ja "Addendum: Black" <me>')
- else
- add_to_chat(123,'Error: Unknown strategem ['..strategem..']')
- end
- else
- add_to_chat(123,'No arts has been activated yet.')
- end
- end
- -- Gets the current number of available strategems based on the recast remaining
- -- and the level of the sch.
- function get_current_strategem_count()
- -- returns recast in seconds.
- local allRecasts = windower.ffxi.get_ability_recasts()
- local stratsRecast = allRecasts[231]
- local maxStrategems = (player.main_job_level + 10) / 20
- local fullRechargeTime = 4*60
- local currentCharges = math.floor(maxStrategems - maxStrategems * stratsRecast / fullRechargeTime)
- return currentCharges
- end
- -- Select default macro book on initial load or subjob change.
- function select_default_macro_book()
- set_macro_page(1, 9)
- end
Advertisement
Add Comment
Please, Sign In to add comment