Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -------------------------------------------------------------------------------------------------------------------
- -- Setup functions for this job. Generally should not be modified.
- -------------------------------------------------------------------------------------------------------------------
- -- 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()
- state.Buff['Afflatus Solace'] = buffactive['Afflatus Solace'] or false
- state.Buff['Afflatus Misery'] = buffactive['Afflatus Misery'] or false
- 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')
- state.CastingMode:options('Normal', 'Resistant')
- state.IdleMode:options('Normal', 'PDT')
- select_default_macro_book()
- end
- -- Define sets and vars used by this job file.
- function init_gear_sets()
- --------------------------------------
- -- Start defining the sets
- --------------------------------------
- -- Precast Sets
- -- Fast cast sets for spells
- sets.precast.FC = {
- head="Vanya Hood",
- ammo="Impatiens",
- body="Inyanga Jubbah +1",
- left_ear="Loquac. Earring",
- left_ring="Kishar Ring",
- right_ring="Prolix Ring",
- back={ name="Alaunus's Cape", augments={'MND+20','Eva.+20 /Mag. Eva.+20','MND+10','"Fast Cast"+10','Phys. dmg. taken-10%',}},
- }
- sets.precast.FC['Enhancing Magic'] = set_combine(sets.precast.FC, {})
- sets.precast.FC.Stoneskin = set_combine(sets.precast.FC['Enhancing Magic'], {})
- sets.precast.FC['Healing Magic'] = set_combine(sets.precast.FC, {})
- sets.precast.FC.StatusRemoval = sets.precast.FC['Healing Magic']
- sets.precast.FC.Cure = set_combine(sets.precast.FC['Healing Magic'], {
- main="Raetic Rod +1",
- sub="Thuellaic Ecu +1",
- head="Piety Cap +1",
- legs="Ebers Pant. +1",
- ear1="Mendicant's earring",
- ear2="Nourishing earring",
- feet="Vanya Clogs",
- })
- sets.precast.FC.Curaga = sets.precast.FC.Cure
- sets.precast.FC.CureSolace = sets.precast.FC.Cure
- -- CureMelee spell map should default back to Healing Magic.
- -- Precast sets to enhance JAs
- sets.precast.JA.Benediction = {body="Piety Briault +1"}
- -- Waltz set (chr and vit)
- sets.precast.Waltz = {}
- -- Weaponskill sets
- -- Default set for any weaponskill that isn't any more specifically defined
- sets.precast.WS = {}
- sets.precast.WS['Flash Nova'] = {}
- -- Midcast Sets
- sets.midcast.FastRecast = set_combine(sets.precast.FC, {})
- -- Cure sets
- sets.midcast.Cure = {
- main="Raetic Rod +1",
- sub="Thuellaic Ecu +1",
- ammo="Esper Stone +1",
- head="Kaykaus Mitra +1",
- body ="Ebers Bliaud +1",
- --body="Theo. Briault +1",
- hands="Theophany Mitts +3",
- legs="Ebers Pant. +1",
- feet="Kaykaus Boots +1",
- neck="Cleric's Torque +2",
- waist="Austerity Belt +1",
- right_ear="Beatific Earring",
- left_ear="Glorious Earring",
- left_ring="Haoma's Ring",
- right_ring="Janniston Ring",
- back={ name="Alaunus's Cape", augments={'MND+20','Eva.+20 /Mag. Eva.+20','MND+10','"Fast Cast"+10','Phys. dmg. taken-10%',}},
- }
- sets.midcast.CureSolace = set_combine(sets.midcast.Cure, {
- body ="Ebers Bliaud +1",
- })
- sets.midcast.Curaga = set_combine(sets.midcast.Cure, {})
- sets.midcast.CureMelee = set_combine(sets.midcast.Cure, {})
- sets.midcast.Cursna = {
- body="Ebers Bliaud +1",
- hands="Theophany Mitts +3",
- legs="Theo. Pant. +1",
- feet="Gende. Galosh. +1",
- left_ear="Beatific Earring",
- left_ring="Haoma's Ring",
- right_ring="Menelaus's Ring",
- back={ name="Alaunus's Cape", augments={'MND+20','Eva.+20 /Mag. Eva.+20','MND+10','"Fast Cast"+10','Phys. dmg. taken-10%',}},
- waist="Austerity Belt +1",
- }
- sets.midcast.StatusRemoval = {
- head="Ebers cap +1",
- hands="Ebers Mitts +1",
- legs="Theo. Pant. +1",
- feet={ name="Medium's Sabots", augments={'MP+45','MND+9','"Conserve MP"+5','"Cure" potency +4%',}},
- neck="Cleric's Torque +2",
- right_ear="Mendi. Earring",
- back="Mending Cape",
- waist="Austerity Belt +1",
- }
- -- 110 total Enhancing Magic Skill; caps even without Light Arts
- sets.midcast['Enhancing Magic'] = {}
- sets.midcast.Stoneskin = {}
- sets.midcast.Auspice = {feet="Ebers duckbills +1"}
- sets.midcast.BarElement = {
- head="Ebers Cap +1",
- body="Ebers Bliaud +1",
- hands="Ebers Mitts +1",
- legs="Piety Pantaln. +1",
- feet="Ebers Duckbills +1",
- waist="Austerity Belt +1",
- }
- sets.midcast.Regen = {
- main="Bolelabunga",
- head="Inyanga Tiara +1",
- body="Piety Briault +1",
- hands="Ebers Mitts +1",
- waist="Austerity Belt +1",
- }
- sets.midcast.Protectra = {ring1="Sheltered ring"}
- sets.midcast.Shellra = {ring1="Sheltered ring"}
- sets.midcast['Divine Magic'] = {}
- sets.midcast['Dark Magic'] = {}
- -- Custom spell classes
- sets.midcast.MndEnfeebles = {}
- sets.midcast.IntEnfeebles = {}
- -- Sets to return to when not performing an action.
- -- Resting sets
- sets.resting = {}
- -- Idle sets (default idle set not needed since the other three are defined, but leaving for testing purposes)
- sets.idle = {
- main="Bolelabunga",
- sub="Sors Shield",
- ammo="Staunch Tathlum",
- head="Befouled Crown",
- body={ name="Witching Robe", augments={'MP+50','Mag. Acc.+15','"Mag.Atk.Bns."+15','"Refresh"+1',}},
- legs="Assiduity Pants",
- neck="Cleric's Torque +2",
- -- neck="Loricate Torque +1",
- left_ear="Infused Earring",
- left_ring="Defending Ring",
- right_ring="Patricius Ring",
- feet="Herald's Gaiters",
- back={ name="Alaunus's Cape", augments={'MND+20','Eva.+20 /Mag. Eva.+20','MND+10','"Fast Cast"+10','Phys. dmg. taken-10%',}}
- }
- sets.idle.PDT = set_combine(sets.idle, {})
- sets.idle.Town = set_combine(sets.idle, {})
- sets.idle.Weak = set_combine(sets.idle, {})
- -- Defense sets
- sets.defense.PDT = {}
- sets.defense.MDT = {}
- sets.Kiting = {feet="Herald's Gaiters"}
- sets.latent_refresh = {waist="Fucho-no-obi"}
- -- Engaged sets
- -- Variations for TP weapon and (optional) offense/defense modes. Code will fall back on previous
- -- sets if more refined versions aren't defined.
- -- If you create a set with both offense and defense modes, the offense mode should be first.
- -- EG: sets.engaged.Dagger.Accuracy.Evasion
- -- Basic set for if no TP weapon is defined.
- sets.engaged = {}
- -- Buff sets: Gear that needs to be worn to actively enhance a current player buff.
- sets.buff['Divine Caress'] = {hands = "Ebers Mitts +1", back="Mending cape"}
- end
- -------------------------------------------------------------------------------------------------------------------
- -- Job-specific hooks for standard casting events.
- -------------------------------------------------------------------------------------------------------------------
- -- Set eventArgs.handled to true if we don't want any automatic gear equipping to be done.
- -- Set eventArgs.useMidcastGear to true if we want midcast gear equipped on precast.
- function job_precast(spell, action, spellMap, eventArgs)
- if spell.english == "Paralyna" and buffactive.Paralyzed then
- -- no gear swaps if we're paralyzed, to avoid blinking while trying to remove it.
- eventArgs.handled = true
- end
- -- if spell.skill == 'Healing Magic' then
- -- gear.default.obi_back = "Mending Cape"
- -- else
- -- gear.default.obi_back = "Toro Cape"
- -- end
- end
- function job_post_midcast(spell, action, spellMap, eventArgs)
- -- Apply Divine Caress boosting items as highest priority over other gear, if applicable.
- if spellMap == 'StatusRemoval' and buffactive['Divine Caress'] then
- equip(sets.buff['Divine Caress'])
- end
- end
- -------------------------------------------------------------------------------------------------------------------
- -- Job-specific hooks for non-casting events.
- -------------------------------------------------------------------------------------------------------------------
- -- Handle notifications of general user state change.
- function job_state_change(stateField, newValue, oldValue)
- if stateField == 'Offense Mode' then
- if newValue == 'Normal' then
- disable('main','sub','range')
- else
- enable('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') and player.status == 'Engaged' then
- return "CureMelee"
- elseif default_spell_map == 'Cure' and state.Buff['Afflatus Solace'] then
- return "CureSolace"
- elseif spell.skill == "Enfeebling Magic" then
- if spell.type == "WhiteMagic" then
- return "MndEnfeebles"
- else
- return "IntEnfeebles"
- end
- end
- end
- end
- function customize_idle_set(idleSet)
- 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 areas.Cities:contains(world.area) then
- local needsArts =
- player.sub_job:lower() == 'sch' and
- not buffactive['Light Arts'] and
- not buffactive['Addendum: White'] and
- not buffactive['Dark Arts'] and
- not buffactive['Addendum: Black']
- if not buffactive['Afflatus Solace'] and not buffactive['Afflatus Misery'] then
- if needsArts then
- send_command('@input /ja "Afflatus Solace" <me>;wait 1.2;input /ja "Light Arts" <me>')
- else
- send_command('@input /ja "Afflatus Solace" <me>')
- end
- end
- end
- end
- -- Function to display the current relevant user state when doing an update.
- function display_current_job_state(eventArgs)
- display_current_caster_state()
- eventArgs.handled = true
- end
- -------------------------------------------------------------------------------------------------------------------
- -- Utility functions specific to this job.
- -------------------------------------------------------------------------------------------------------------------
- -- Select default macro book on initial load or subjob change.
- function select_default_macro_book()
- -- Default macro set/book
- -- set_macro_page(4, 14)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement