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
- --Variables
- acc = 1 --1 = Standard enfeeble, 2 = acc
- -- 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"
- end
- -- Define sets and vars used by this job file.
- function init_gear_sets()
- --------------------------------------
- -- Start defining the sets
- --------------------------------------
- --Variables
- acc = 1 --1 = Standard potency, 2 = Magic Accuracy
- idleset = 1 --1 = Standard, 2 = PDT
- sets.precast.FC = {head="Warlock's Chapeau", body="Goliard Saio"}
- --Variables
- -- Weaponskill sets
- -- Default set for any weaponskill that isn't any more specifically defined
- sets.precast.WS = {}
- -- Midcast Sets
- sets.midcast.FastRecast = {head="Warlock's Chapeau", body="Goliard Saio", hands="Dusk Gloves +1", waist="Speed Belt", feet="Dusk Ledelsens +1"}
- sets.midcast.Cure = {main="Chatoyant Staff", sub="Staff Grip", head="Warlock's Chapeau", neck="Fylgja Torque +1", ear1="Roundel Earring",
- ear2="Celestial Earring", body="Goliard Saio", hands="Dusk Goves +1", ring1="Celestal Ring", ring2="Celestial Ring", back="Mahatma Cape",
- waist="Pythia Sash +1", legs="Mahatma Slops", feet="Dusk Ledelsens +1"}
- sets.midcast.Curaga = sets.midcast.Cure
- sets.midcast.CureSelf = {main="Chatoyant Staff", sub="Staff Grip", head="Warlock's Chapeau", neck="Fylgja Torque +1", ear1="Roundel Earring",
- ear2="Celestial Earring", body="Goliard Saio", hands="Dusk Goves +1", ring1="Celestal Ring", ring2="Celestial Ring", back="Mahatma Cape",
- waist="Pythia Sash +1", legs="Mahatma Slops", feet="Dusk Ledelsens +1"}
- sets.midcast['Enhancing Magic'] = {head="Warlock's Chapeau", body="Goliard Saio", neck="Enhancing Torque", ear1="Augment. Earring", legs="Warlock's Tights",
- hands="Duelist's Gloves", feet="Dusk Ledelsens +1", waist="Speed Belt"}
- sets.midcast.Refresh = {head="Warlock's Chapeau", body="Goliard Saio", legs="Warlock's Tights",
- hands="Dusk Gloves +1", feet="Dusk Ledelsens +1", waist="Speed Belt"}
- sets.midcast.Stoneskin = {head="Warlock's Chapeau", body="Goliard Saio", neck="Enhancing Torque", ear1="Augment. Earring", ear2="Celestial Earring",
- legs="Warlock's Tights", hands="Dusk gloves +1", feet="Dusk Ledelsens +1", waist="Speed Belt", back="Prism Cape", ring1="celestial Ring",
- ring2="Celestial Ring"}
- sets.midcast['Enfeebling Magic'] = {main="Chatoyant Staff", sub="Vivid Strap +1", head="Blood Mask", neck="Enfeebling Torque", ear1="Incubus Earring +1",
- ear2="Incubus Earring +1", body="Warlock's Tabard", back="Hecate's Cape", waist="Witch Sash"}
- sets.midcast.MND = {main="Mistelteinn", sub="Nms. Shield +1",
- head="blood Mask", neck="Promis Badge", ear1="Celestial Earring",
- ear2="Celestial Earring", body="Mahatma Houppelande", hands="Devotee's Mitts +1",
- ring1="Celestial Ring", ring2="Celestial Ring", back="Prism Cape",
- waist="Witch Sash", legs="Mahatma Slops", feet="Mahatma Pigaches"}
- sets.midcast['Elemental Magic'] = {main="Lehbrailg +2", sub="Mephitis Grip", range="Aureole",
- head="Hagondes Hat", neck="Eddy Necklace", ear1="Friomisi Earring", ear2="Hecate's Earring",
- body="Hagondes Coat", hands="Hagondes Cuffs", ring1="Sangoma Ring", ring2="Acumen Ring",
- back="Toro Cape", waist="Sekhmet Corset", legs="Hagondes Pants", feet="Umbani Boots"}
- sets.midcast['Dark Magic'] = {}
- --sets.midcast.Stun = set_combine(sets.midcast['Dark Magic'], {})
- sets.midcast.Drain = set_combine(sets.midcast['Dark Magic'], {})
- sets.midcast.Aspir = sets.midcast.Drain
- -- Sets to return to when not performing an action.
- -- Resting sets
- sets.resting = {}
- -- Idle sets
- sets.idle = {main="Terra's Staff", sub="Vivid Strap +1", ammo="Hedgehog Bomb",
- neck="Orocho Nodowa +1", ear1="Merman's Earring", ear2="Merman's Earring",
- body="Ixion Cloak", hands="Dst. Mittens +1", ring1="Merman's Ring", ring2="Merman's Ring",
- back="Umbra Cape", waist="Ocean Rope", legs="Blood Cuiises", feet="Dst. Leggings +1"}
- -- Defense sets
- sets.defense.PDT = {}
- sets.defense.MDT = {}
- sets.Kiting = {legs="Blood Cuisses"}
- -- 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 = {}
- 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)
- end
- function midcast(spell)
- if spell.action_type == 'Magic' then
- if spell.type == 'Enfeebling Magic' then
- if string.find(spell.english,'Slow') then
- if acc == 2 then
- equip(sets.midcast.MND,{main="Chatoyant Staff", sub="Raptor Strap +1",
- head="blood Mask", neck="Enfebling Torque", ear1="Incubus Earring +1",
- ear2="Incubus Earring +1", body="Warlock's Tabard", hands="Devotee's Mitts +1",
- ring1="Celestial Ring", ring2="Celestial Ring", back="Hecate's Cape",
- waist="Witch Sash", legs="Mahatma Slops", feet="Mahatma Pigaches"})
- else
- equip(sets.midcast.MND)
- end
- elseif spell.skill == 'Healing Magic' then
- if string.find(spell.english,'Cur') and spell.name ~= 'Cursna' then
- equip(sets.midcast.cure)
- else
- equip(sets.midcast.fastcast)
- end
- elseif spell.skill == 'Enhancing Magic' then
- if string.find(spell.english,'Stoneskin') then
- equip(sets.midcast.stoneskin)
- else
- equip(sets.midcast.fastcast)
- end
- end
- 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
- function self_command(command)
- if command == 'toggle acc' then
- acc = acc +1
- if acc > 2 then
- acc = 1
- send_command('@input /echo ----- Magic Accuracy Disabled -----')
- elseif acc == 2 then
- send_command('@input /echo ----- MAgic Accuracy Enabled -----')
- end
- end
- 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
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement