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.Saboteur = buffactive.saboteur 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.HybridMode:options('Normal', 'PhysicalDef', 'MagicalDef')
- state.CastingMode:options('Normal', 'Resistant')
- state.IdleMode:options('Normal', 'PDT', 'MDT')
- gear.default.obi_waist = "Sekhmet Corset"
- select_default_macro_book()
- 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['Chainspell'] = {}
- -- Waltz set (chr and vit)
- sets.precast.Waltz = {}
- -- Don't need any special gear for Healing Waltz.
- sets.precast.Waltz['Healing Waltz'] = {}
- -- Fast cast sets for spells
- sets.precast.FC = {}
- sets.precast.FC.Impact = set_combine(sets.precast.FC, {head=empty,body="Twilight Cloak"})
- -- Weaponskill sets
- sets.precast.WS = {}
- sets.precast.WS['Requiescat'] = {}
- -- Midcast Sets
- sets.midcast['Elemental Magic'] = {}
- sets.midcast.Impact = set_combine(sets.midcast['Elemental Magic'], {head=empty,body="Twilight Cloak"})
- sets.midcast.Cure = {}
- sets.midcast.Curaga = sets.midcast.Cure
- sets.midcast.CureSelf = set_combine(sets.midcast.Cure, {})
- sets.midcast.IntEnfeeble = {}
- sets.midcast.MndEnfeeble = {}
- sets.midcast['Dia III'] = {}
- sets.midcast['Slow II'] = set_combine(sets.midcast.MndEnfeeble, {})
- sets.midcast['Paralyze II'] = set_combine(sets.midcast.MndEnfeeble, {})
- sets.midcast['Blind II'] = set_combine(sets.midcast.IntEnfeeble, {})
- sets.midcast['Blind'] = sets.midcast.IntEnfeeble
- sets.midcast['Slow'] = sets.midcast.MndEnfeeble
- sets.midcast['Paralyze'] = sets.midcast.MndEnfeeble
- sets.midcast.Distract = sets.midcast.IntEnfeeble
- sets.midcast.Gravity = sets.midcast.IntEnfeeble
- sets.midcast.Poison = sets.midcast.IntEnfeeble
- sets.midcast.Sleep = sets.midcast.IntEnfeeble
- sets.midcast.Sleepga = sets.midcast.IntEnfeeble
- sets.midcast.Frazzle = sets.midcast.IntEnfeeble
- sets.midcast.Break = sets.midcast.IntEnfeeble
- sets.midcast.Bind = sets.midcast.IntEnfeeble
- sets.midcast.Addle = sets.midcast.MndEnfeeble
- sets.midcast.Silence = sets.midcast.MndEnfeeble
- -- Sets for special buff conditions on spells.
- sets.midcast.EnhancingSkill = {}
- sets.midcast.EnhancingDuration = {back="Estoqueur's Cape"}
- sets.buff.ComposureOther = {}
- sets.midcast.Stoneskin = set_combine(set.EnhancingSkill, {waist="Siegel Sash"})
- sets.midcast.Aquaveil = sets.midcast.EnhancingSkill
- sets.midcast.Temper = sets.midcast.EnhancingSkill
- sets.midcast.Phalanx = sets.midcast.EnhancingSkill
- sets.midcast.['Gain-STR'] = sets.midcast.EnhancingSkill
- sets.midcast.['Gain-DEX'] = sets.midcast.EnhancingSkill
- sets.midcast.['Gain-AGI'] = sets.midcast.EnhancingSkill
- sets.midcast.['Gain-VIT'] = sets.midcast.EnhancingSkill
- sets.midcast.['Gain-INT'] = sets.midcast.EnhancingSkill
- sets.midcast.['Gain-MND'] = sets.midcast.EnhancingSkill
- sets.midcast.['Gain-CHR'] = sets.midcast.EnhancingSkill
- sets.midcast.Regen = sets.midcast.EnhancingDuration
- sets.midcast.Haste = sets.midcast.EnhancingDuration
- sets.midcast.Flurry = sets.midcast.EnhancingDuration
- sets.midcast.Refresh = set_combine(sets.midcast.EnhancingDuration, {})
- sets.midcast.Baraera = sets.midcast.EnhancingDuration
- sets.midcast.Baraero = sets.midcast.EnhancingDuration
- sets.midcast.Baramnesia = sets.midcast.EnhancingDuration
- sets.midcast.Barsmnesra = sets.midcast.EnhancingDuration
- sets.midcast.Barblind = sets.midcast.EnhancingDuration
- sets.midcast.Barblindra = sets.midcast.EnhancingDuration
- sets.midcast.Barblizzara = sets.midcast.EnhancingDuration
- sets.midcast.Barblizzard = sets.midcast.EnhancingDuration
- sets.midcast.Barfira = sets.midcast.EnhancingDuration
- sets.midcast.Barfire = sets.midcast.EnhancingDuration
- sets.midcast.Barparalyze = sets.midcast.EnhancingDuration
- sets.midcast.Barparalyzra = sets.midcast.EnhancingDuration
- sets.midcast.Barpetra = sets.midcast.EnhancingDuration
- sets.midcast.Barpetrify = sets.midcast.EnhancingDuration
- sets.midcast.Barpoison = sets.midcast.EnhancingDuration
- sets.midcast.Barpoisonra = sets.midcast.EnhancingDuration
- sets.midcast.Barsilence = sets.midcast.EnhancingDuration
- sets.midcast.Barsilencera = sets.midcast.EnhancingDuration
- sets.midcast.Barsleep = sets.midcast.EnhancingDuration
- sets.midcast.Barsleepra = sets.midcast.EnhancingDuration
- sets.midcast.Barstone = sets.midcast.EnhancingDuration
- sets.midcast.Barstonra = sets.midcast.EnhancingDuration
- sets.midcast.Barthunder = sets.midcast.EnhancingDuration
- sets.midcast.Barthundra = sets.midcast.EnhancingDuration
- sets.midcast.Barvira = sets.midcast.EnhancingDuration
- sets.midcast.Barvirus = sets.midcast.EnhancingDuration
- sets.midcast.Barwater = sets.midcast.EnhancingDuration
- sets.midcast.Barwatera = sets.midcast.EnhancingDuration
- sets.midcast.['Blaze Spikes'] = set_combine(sets.midcast.EnhancingDuration, {})
- sets.midcast.['Shock Spikes'] = set_combine(sets.midcast.EnhancingDuration, {})
- sets.midcast.['Ice Spikes'] = set_combine(sets.midcast.EnhancingDuration, {})
- sets.midcast.Blink = sets.midcast.EnhancingDuration
- sets.midcast.Deodorize = sets.midcast.EnhancingDuration
- sets.midcast.Invisible = sets.midcast.EnhancingDuration
- sets.midcast.Sneak = sets.midcast.EnhancingDuration
- sets.buff.Saboteur = {hands="Estoqueur's Gantherots +2"}
- -- Sets to return to when not performing an action.
- -- Resting sets
- sets.resting = {}
- -- Idle sets
- sets.idle = {}
- sets.idle.Town = {}
- sets.idle.Weak = {}
- sets.idle.PDT = {}
- sets.idle.MDT = {}
- -- Defense sets
- sets.defense.PDT = {}
- sets.defense.MDT = {}
- sets.Kiting = {}
- sets.latent_refresh = {}
- -- 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
- -- Normal melee group
- sets.engaged = {
- head="Atrophy Chapeau +1",neck="Asperity Necklace",ear1="Bladeborn Earring",ear2="Steelflash Earring",
- body="Atrophy Tabard +1",hands="Atrophy Gloves +1",ring1="Rajas Ring",ring2="K'ayres Ring",
- back="Atheling Mantle",waist="Goading Belt",legs="Osmium Cuisses",feet="Atrophy Boots"}
- sets.engaged.Defense = {}
- end
- -------------------------------------------------------------------------------------------------------------------
- -- Job-specific hooks for standard casting events.
- -------------------------------------------------------------------------------------------------------------------
- -- Run after the default midcast() is done.
- -- eventArgs is the same one used in job_midcast, in case information needs to be persisted.
- function job_post_midcast(spell, action, spellMap, eventArgs)
- if spell.skill == 'Enfeebling Magic' and state.Buff.Saboteur then
- equip(sets.buff.Saboteur)
- elseif spell.skill == 'Enhancing Magic' and buffactive.composure and spell.target.type == 'PLAYER' then
- equip(sets.buff.ComposureOther)
- end
- elseif spellMap == 'Cure' and spell.target.type == 'SELF' then
- equip(sets.midcast.CureSelf)
- 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 == 'None' then
- enable('main','sub','range')
- else
- disable('main','sub','range')
- end
- end
- end
- -------------------------------------------------------------------------------------------------------------------
- -- User code that supplements standard library decisions.
- -------------------------------------------------------------------------------------------------------------------
- -- Modify the default idle set after it was constructed.
- --function customize_idle_set(idleSet)
- --if player.mpp < 51 then
- --idleSet = set_combine(idleSet, sets.latent_refresh)
- --end
- --return idleSet
- --end
- -- Set eventArgs.handled to true if we don't want the automatic display to be run.
- 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
- --if player.sub_job == 'DNC' then
- --set_macro_page(2, 4)
- --elseif player.sub_job == 'NIN' then
- -- set_macro_page(3, 4)
- --elseif player.sub_job == 'THF' then
- --set_macro_page(4, 4)
- --else
- --set_macro_page(1, 4)
- --end
- --end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement