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
- sets.obi = {Fire = {waist="Karin Obi"},
- Earth = {waist="Dorin Obi"},
- Water = {waist="Suirin Obi"},
- Wind = {waist="Furin Obi"},
- Ice = {waist="Hyorin Obi"},
- Lightning = {waist="Rairin Obi"},
- Light = {waist="Korin Obi"},
- Dark = {waist="Anrin Obi"}}
- sets.tonban = {legs="Sorcerer's Tonban +1"}
- sets.grips = {Fire = {sub="Fire Grip"},
- Earth = {sub="Earth Grip"},
- Water = {sub="Water Grip"},
- Wind = {sub="Wind Grip"},
- Ice = {sub="Ice Grip"},
- Lightning = {sub="Lightning Grip"},
- Light = {sub="Light Grip"},
- Dark = {sub="Dark Grip"}}
- -- 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()
- 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', 'Proc', 'MagicBurst')
- state.IdleMode:options('Normal', 'ConvertHP')
- --[[Nukes = S{'Stone', 'Water', 'Aero', 'Fire', 'Blizzard', 'Thunder',
- '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',
- 'Stonega', 'Waterga', 'Aeroga', 'Firaga', 'Blizzaga', 'Thundaga',
- 'Stonega II', 'Waterga II', 'Aeroga II', 'Firaga II', 'Blizzaga II', 'Thundaga II',
- 'Stonega III', 'Waterga III', 'Aeroga III', 'Firaga III', 'Blizzaga III', 'Thundaga III',
- 'Quake', 'Flood', 'Tornado', 'Flare', 'Freeze', 'Burst',
- 'Quake II', 'Flood II', 'Tornado II', 'Flare II', 'Freeze II', 'Burst II',}
- ]]
- select_default_macro_book()
- -- Additional local binds
- send_command('bind ^` input /ma "stun" <t>')
- end
- -- Called when this job file is unloaded (eg: job change)
- function user_unload()
- 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
- -- Fast cast sets for spells
- sets.precast.FC = {
- main="Earth Staff",
- sub="Bugard Leather Strap +1",
- ammo="Phantom Tathlum",
- head="Walahra Turban",
- neck="Orochi Nodowa",
- ear1="Loquacious Earring",
- ear2="Morion Earring +1",
- body="Dalmatica",
- hands="Sorcerer's Gloves +1",
- ring1="Snow Ring",
- ring2="Tamas Ring",
- back="Errant Cape",
- waist="Penitent's Rope",
- legs="Mahatma Slops",
- feet="Wizard's Sabots"}
- -- Midcast Sets
- sets.midcast.FastRecast = {
- head="Walahra Turban",
- neck="Orochi Nodowa",
- ear1="Loquacious Earring",
- ear2="Morion Earring +1",
- body="Dalmatica",
- hands="Sorcerer's Gloves +1",
- ring1="Snow Ring",
- ring2="Tamas Ring",
- back="Errant Cape",
- waist="Sorcerer's Belt",
- legs="Mahatma Slops",
- feet="Wizard's Sabots"}
- sets.midcast.Cure = {
- main="Chatoyant Staff",
- head="Errant Hat",
- neck="Fylgja Torque +1",
- ear1="Star Earring",
- ear2="Star Earring",
- body="Mahatma Houppelande",
- hands="Bricta's Cuffs",
- ring1="Celestial Ring",
- ring2="Tamas Ring",
- back="Prism Cape",
- waist="Penitent's Rope",
- legs="Mahatma Slops",
- feet="Wizard's Sabots"}
- sets.midcast.Curaga = sets.midcast.Cure
- sets.midcast['Enhancing Magic'] = {
- main="Chatoyant Staff",
- head="Walahra Turban",
- neck="Holy Phial",
- ear1="Star Earring",
- ear2="Loquacious Earring",
- body="Dalmatica",
- hands="Bricta's Cuffs",
- ring1="Celestial Ring",
- ring2="Tamas Ring",
- back="Prism Cape",
- waist="Penitent's Rope",
- legs="Mahatma Slops",
- feet="Wizard's Sabots"}
- -- Custom spell classes
- sets.midcast.MndEnfeebles = {
- main="Chatoyant Staff",
- head="Genie Tiara",
- neck="Enfeebling Torque",
- ear1="Star Earring",
- ear2="Star Earring",
- body="Wizard's Coat",
- hands="Bricta's Cuffs",
- ring1="Celestial Ring",
- ring2="Tamas Ring",
- back="Prism Cape",
- waist="Penitent's Rope",
- legs="Igqira Lappas",
- feet="Errant Pigaches"}
- sets.midcast.IntEnfeebles = {
- main="Chatoyant Staff",
- head="Genie Tiara",
- neck="Enfeebling Torque",
- ear1="Abyssal Earring",
- ear2="Morion Earring +1",
- body="Wizard's Coat",
- hands="Oracle's Gloves",
- ring1="Snow Ring",
- ring2="Tamas Ring",
- back="Prism Cape",
- waist="Penitent's Rope",
- legs="Igqira Lappas",
- feet="Sorcerer's Sabots +1"}
- sets.midcast.ElementalEnfeeble = {
- main="Chatoyant Staff",
- head="Demon Helm +1",
- neck="Lemegeton Medallion +1",
- ear1="Abyssal Earring",
- ear2="Morion Earring +1",
- body="Mahatma Houppelande",
- hands="Genie Gages",
- ring1="Snow Ring",
- ring2="Tamas Ring",
- back="Prism Cape",
- waist="Sorcerer's Belt",
- legs="Mahatma Slops",
- feet="Sorcerer's Sabots +1"}
- sets.midcast['Dark Magic'] = {
- main="Claustrum",
- sub="Dark Grip",
- head="Demon Helm +1",
- neck="Dark Torque",
- ear1="Abyssal Earring",
- ear2="Morion Earring +1",
- body="Mahatma Houppelande",
- hands="Sorcerer's Gloves +1",
- ring1="Snow Ring",
- ring2="Tamas Ring",
- back="Prism Cape",
- waist="Sorcerer's Belt",
- legs="Wizard's Tonban",
- feet="Sorcerer's Sabots +1"}
- sets.midcast.Drain = sets.midcast['Dark Magic']
- sets.midcast.Aspir = sets.midcast.Drain
- sets.midcast.Stun = sets.midcast['Dark Magic']
- sets.midcast.Bind = set_combine(sets.midcast.IntEnfeebles,{sub="Ice Grip"})
- sets.midcast.Blind = set_combine(sets.midcast.IntEnfeebles,{sub="Dark Grip"})
- sets.midcast.Dispel = set_combine(sets.midcast.IntEnfeebles,{sub="Dark Grip"})
- sets.midcast.Slow = set_combine(sets.midcast.MndEnfeebles,{sub="Earth Grip"})
- sets.midcast.Paralyze = set_combine(sets.midcast.MndEnfeebles,{sub="Ice Grip"})
- sets.midcast.Stoneskin = set_combine(sets.midcast.Enhancing,{main="Kirin's Pole",sub="Raptor Leather Strap +1",head="Errant Hat",body="Mahatma Houppelande",feet="Errant Pigaches"})
- sets.midcast.ring = {
- ring1="Sorcerer's Ring"}
- -- Elemental Magic sets are default for handling low-tier nukes.
- sets.midcast['Elemental Magic'] = {
- main="Claustrum",
- head="Demon Helm +1",
- neck="Lmg. Medallion +1",
- ear1="Moldavite Earring",
- ear2="Morion Earring +1",
- body="Genie Weskit",
- hands="Zenith Mitts +1",
- ring1="Snow Ring",
- ring2="Tamas Ring",
- back="Hecate's Cape",
- waist="Sorcerer's Belt",
- legs="Mahatma Slops",
- feet="Sorcerer's Sabots +1"}
- sets.midcast['Elemental Magic'].Resistant = set_combine(sets.midcast['Elemental Magic'],{head="Sorcerer's Petasos +1",hands="Wizard's Gloves"})
- sets.midcast['Elemental Magic'].MagicBurst = set_combine(sets.midcast['Elemental Magic'],{hands="Sorcerer's Gloves +1",ear="Static Earring"})
- -- Custom refinements for certain nuke tiers
- -- Sets to return to when not performing an action.
- -- Resting sets
- sets.resting = {
- main="Claustrum",
- sub="Bugard Leather Strap +1",
- head="Oracle's Cap",
- neck="Grandiose Chain",
- ear1="Abyssal Earring",
- ear2="Loquacious Earring",
- body="Mahatma Houppelande",
- hands="Oracle's Gloves",
- ring1="Celestial Ring",
- ring2="Celestial Ring",
- back="Viator Cape",
- waist="Mohbwa Sash +1",
- legs="Oracle's Braconi",
- feet="Numerist Pumps"}
- -- Idle sets (default idle set not needed since the other three are defined, but leaving for testing purposes)
- sets.idle = {
- main="Claustrum",
- sub="Buggard Leather Strap +1",
- head="Sorcerer's Petasos +1",
- neck="Lemegeton Medallion +1",
- ear1="Abyssal Earring",
- ear2="Loquac. Earring",
- body="Genie Weskit",
- hands="Sorcerer's Gloves +1",
- ring1="Sorcerer's Ring",
- ring2="Tamas Ring",
- back="Hecate's Cape",
- waist="Rairin Obi",
- legs="Igqira Lappas",
- feet="Sorcerer's Sabots +1"}
- sets.idle.Field = {
- main="Claustrum",
- sub="Buggard Leather Strap +1",
- head="Sorcerer's Petasos +1",
- neck="Chocobo Whistle",
- ear1="Abyssal Earring",
- ear2="Loquac. Earring",
- body="Dalmatica",
- hands="Sorcerer's Gloves +1",
- ring1="Snow Ring",
- ring2="Tamas Ring",
- back="Errant Cape",
- waist="Sorcerer's Belt",
- legs="Sorcerer's Tonban +1",
- feet="Sorcerer's Sabots +1"}
- sets.idle.Town = {
- main="Claustrum",
- sub="Buggard Leather Strap +1",
- head="Sorcerer's Petasos +1",
- neck="Chocobo Whistle",
- ear1="Abyssal Earring",
- ear2="Loquac. Earring",
- body="Genie Weskit",
- hands="Sorcerer's Gloves +1",
- ring1="Sorcerer's Ring",
- ring2="Tamas Ring",
- back="Nexus Cape",
- waist="Sorcerer's Belt",
- legs="Sorcerer's Tonban +1",
- feet="Sorcerer's Sabots +1"}
- sets.idle.Field.ConvertHP = {
- main="Claustrum",
- sub="Buggard Leather Strap +1",
- head="Zenith Crown",
- neck="Lemegeton Medallion +1",
- ear1="Astral Earring",
- ear2="Loquac. Earring",
- body="Dalmatica",
- hands="Zenith Mitts +1",
- ring1="Serket Ring",
- ring2="Ether Ring",
- back="Prism Cape",
- waist="Sorcerer's Belt",
- legs="Sorcerer's Tonban +1",
- feet="Zenith Pumps"}
- -- Defense sets
- sets.defense.PDT = {}
- sets.defense.MDT = {}
- -- 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 = {}
- -- Buff sets: Gear that needs to be worn to actively enhance a current player buff.
- sets.buff['Ebullience'] = {}
- sets.buff['Rapture'] = {}
- sets.buff['Perpetuance'] = {}
- sets.buff['Immanence'] = {}
- sets.buff['Penury'] = {}
- sets.buff['Parsimony'] = {}
- sets.buff['Celerity'] = {}
- sets.buff['Alacrity'] = {}
- sets.buff['Klimaform'] = {}
- sets.buff.FullSublimation = {}
- sets.buff.PDTSublimation = {}
- sets.buff['Sandstorm'] = {feet="Desert Boots +1"}
- sets.latent_refresh = {main="Claustrum", body="Dalmatica"}
- 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)
- end
- -- Set eventArgs.handled to true if we don't want any automatic gear equipping to be done.
- function job_midcast(spell, action, spellMap, eventArgs)
- end
- function job_post_midcast(spell, action, spellMap, eventArgs)
- if spell.skill == 'Elemental Magic' then
- if spell.element == world.day_element then
- equip(sets.tonban)
- end
- end
- if spell.action_type == "Magic" then
- if spell.element == world.weather_element or spell.element == world.day_element then
- equip(sets.obi[spell.element])
- end
- end
- if spell.action_type == "Magic" and state.CastingMode.value == 'Resistant' then
- equip(sets.grips[spell.element])
- end
- if player.hpp < 76 and spell.skill == 'Elemental Magic' then
- equip(sets.midcast.ring)
- end
- end
- --[[function job_post_midcast(spell, action, spellMap, eventArgs)
- if spell.skill == 'Elemental Magic' then
- if spell.element == world.day_element then
- equip(sets.tonban)
- end
- end
- end
- function job_post_midcast(spell, action, spellMap, eventArgs)
- if spell.skill == 'Elemental Magic' and player.hpp <= 76 then
- equip({ring1="Sorcerer's Ring"})
- end
- end]]
- function job_aftercast(spell, action, spellMap, eventArgs)
- if spell.english == 'Drain' or spell.english == 'Aspir' then
- send_command('@wait 50;input /echo ------- '..spell.english..' is Ready!!! -------')
- end
- if spell.english == 'Stun' then
- send_command('@wait 37;input /echo ------- '..spell.english..' is Ready!!! -------')
- end
- if spell.english == 'Sleep' or spell.english == 'Sleepga' then
- send_command('@wait 50;input /echo ------- '..spell.english..' is wearing off in 10 seconds -------')
- send_command('@wait 55;input /echo ------- '..spell.english..' is wearing off in 5 seconds -------')
- send_command('@wait 57;input /echo ------- '..spell.english..' is wearing off in 3 seconds -------')
- elseif spell.english == 'Sleep II' or spell.english == 'Sleepga II' then
- send_command('@wait 80;input /echo ------- '..spell.english..' is wearing off in 10 seconds -------')
- send_command('@wait 85;input /echo ------- '..spell.english..' is wearing off in 5 seconds -------')
- send_command('@wait 87;input /echo ------- '..spell.english..' is wearing off in 3 seconds -------')
- 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)
- end
- -- 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 spell.skill == 'Enfeebling Magic' then
- if spell.type == 'WhiteMagic' then
- return 'MndEnfeebles'
- else
- return 'IntEnfeebles'
- end
- end
- end
- --[[ if spell.action_type == 'Magic' then
- elseif spell.skill == 'Elemental Magic' then
- return 'Nukes'
- end
- end
- end]]
- end
- -- 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 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
- if player.sub_job == 'DNC' then
- set_macro_page(1, 8)
- elseif player.sub_job == 'WAR' then
- set_macro_page(1, 8)
- elseif player.sub_job == 'NIN' then
- set_macro_page(1, 8)
- else
- set_macro_page(1, 8)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement