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()
- indi_timer = ''
- indi_duration = 180
- 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')
- gear.default.weaponskill_waist = "Windbuffet Belt"
- 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
- -- Fast cast sets for spells
- sets.precast.Stun = {head="Nahtirah Hate",sub="Mephitis grip",ammo="Impatiens",neck="Eddy Necklace",
- ear1="Lifestorm earring",ear2="Psystorm Earring",body="Artsieq Jubbah",legs="Artsieq Hose",hands="Lurid Mitts",
- ring1="Sangoma Ring",ring2="Prolix Ring",back="Refraction Cape",waist="Witful Belt",feet="Chelona Boots"}
- sets.precast.FC = {
- head="Nahtirah Hat",ear2="Loquacious Earring",
- ring1="Prolix Ring",
- back="Lifestream Cape",waist="Witful Belt",legs="Geomancy Pants"}
- sets.precast.FC.Cure = {
- head="Nahtirah Hat",ear2="Loquacious Earring",
- ring1="Prolix Ring",
- back="Lifestream Cape",waist="Witful Belt",legs="Geomancy Pants"}
- -- Weaponskill sets
- -- Default set for any weaponskill that isn't any more specifically defined
- -- Specific weaponskill sets. Uses the base set if an appropriate WSMod version isn't found.
- sets.precast.WS['Flash Nova'] = {}
- sets.precast.WS['Starlight'] = {ear2="Moonshade Earring"}
- sets.precast.WS['Moonlight'] = {ear2="Moonshade Earring"}
- -- Midcast Sets
- sets.midcast.FastRecast = {
- head="Nahtirah Hat",ear2="Loquacious Earring",
- ring1="Prolix Ring",body="Bagua Tunic +1",hands="Geo. Mitaines +1",
- back="Lifestream Cape",waist="Witful Belt",legs="Geomancy Pants",feet="Bagua Sandals +1"}
- sets.midcast.Geomancy = {main="Seveneyes",range="Dunna",body="Bagua Tunic +1",back="Lifestream Cape",legs="Bagua Pants",hands="Geo. Mitaines +1",
- head="Artsieq Hat",ear1="Gifted Earring",ear2="Magnetic Earring",waist="Austerity Belt",feet="Umbani Boots"}
- sets.midcast['Enfeebling Magic'] = {main="Lehbrailg +2",sub="Mephitis Grip",ammo="Kalboron Stone",head="Kaabnax Hat",neck="Imbodla Necklace",
- ear1="Lifestorm Earring",ear2="Psystorm Earring",body="Artsieq Jubbah",hands="Lurid Mitts",ring1="Perception Ring",ring2="Leviathan Ring",
- back="Refraction Cape",waist="Tengu-no-Obi",legs="Mes'yohi Slacks",feet="Uk'uxkaj Boots"}
- sets.midcast['Elemental Magic'] = {main="Lehbrailg +2",sub="Mephitis Grip",ammo="Witchstone",head="Buremte Hat",neck="Eddy Necklace",
- ear1="Crematio Earring",ear2="Friomisi Earring",body="Artseiq Jubbah",hands="Yaoyotl Gloves",ring1="Fenrir Ring +1",ring2="Fenrir Ring +1",
- back="Toro Cape",waist="Tengu-no-Obi",legs="Hagondes Pants +1",feet="Umbani Boots"}
- sets.midcast.Cure = {main="Arka IV",sub="Curatio Grip",ammo="Clarus Stone",head="Nahtirah Hat",body="Heka's Kalasiris",hands="Geo. Mitaines +1",ring1="Haoma's Ring",ring2="Sirona's Ring",
- back="Tempered Cape",waist="Austerity Belt",legs="Nares Trews",feet="Umbani boots",neck="Colossus's Torque",ear1="Gifted Earring",ear2="Magnetic Earring"}
- sets.midcast.Protectra = {ring1="Sheltered Ring"}
- sets.midcast.Shellra = {ring1="Sheltered Ring"}
- -- JA precast sets
- sets.precast['Bolster'] = {body="Bagua Tunic +1"}
- sets.precast['Curative Recantation'] = {hands="Bagua Mitaines"}
- sets.precast['Mending Halation'] = {legs="Bagua Pants"}
- sets.precast['Radial Arcana'] = {feet="Bagua Sandals +1"}
- sets.precast['Life Cycle'] = {body="Geomancy Tunic"}
- -- Sets to return to when not performing an action.
- -- Resting sets
- sets.resting = {main="Iradal Staff",sub="Achaq Grip"}
- -- Idle sets (default idle set not needed since the other three are defined, but leaving for testing purposes)
- sets.idle.Town = {main="Terra's Staff",sub="Oneiros Grip",range="Dunna",head="Nahtirah Hat",neck="Wiglen Gorget",ear1="Flashward Earring",ear2="Sanare Earring",
- body="Artsieq Jubbah",hands="Bagua Mitaines",ring1="Paguroidea Ring",ring2="Sheltered Ring",back="Umbra Cape",waist="Fucho-no-Obi",legs="Assiduity Pants",feet="Geomancy Sandals"}
- sets.idle.Field = {main="Terra's Staff",sub="Oneiros Grip",range="Dunna",head="Nahtirah Hat",neck="Twilight Torque",ear1="Flashward Earring",ear2="Sanare Earring",
- body="Artsieq Jubbah",hands="Geo. Mitaines +1",ring1="Dark Ring",ring2="Dark Ring",back="Lifestream Cape",waist="Isa Belt",legs="Assiduity Pants",feet="Bagua Sandals +1"}
- -- {main="Terra's Staff",sub="Oneiros Grip",range="Dunna",head="Nahtirah Hat",neck="Wiglen Gorget",ear1="Flashward Earring",ear2="Sanare Earring",
- -- body="Artsieq Jubbah",hands="Bagua Mitaines",ring1="Paguroidea Ring",ring2="Sheltered Ring",back="Umbra Cape",waist="Fucho-no-Obi",legs="Nares Trews",feet="Geomancy Sandals"}
- sets.idle.Field.PDT = {main="Terra's Staff",sub="Oneiros Grip",range="Dunna",head="Nahtirah Hat",neck="Twilight Torque",ear1="Flashward Earring",ear2="Sanare Earring",
- body="Artsieq Jubbah",hands="Geo. Mitaines +1",ring1="Dark Ring",ring2="Dark Ring",back="Umbra Cape",waist="Isa Belt",legs="Assiduity Pants",feet="Bagua Sandals +1"}
- sets.idle.Weak = {main="Terra's Staff",sub="Oneiros Grip",range="Dunna",head="Nahtirah Hat",neck="Twilight Torque",ear1="Flashward Earring",ear2="Sanare Earring",
- body="Artsieq Jubbah",hands="Geo. Mitaines +1",ring1="Dark Ring",ring2="Dark Ring",back="Umbra Cape",waist="Isa Belt",legs="Assiduity Pants",feet="Bagua Sandals +1"}
- -- Defense sets
- sets.defense.PDT = {main="Earth Staff",sub="Mephitis Grip",range="Dunna",head="Nahtirah Hat",neck="Twilight Torque",ear1="Bloodgem Earring",ear2="Novia Earring",
- body="Geo. Tunic +1",hands="Geo. Mitaines +1",ring1="Sheltered Ring",ring2="Paguroidea Ring",back="Repulse Mantle",waist="Isa Belt",legs="Geo. Pants +1",feet="Bagua Sandals +1"}
- sets.defense.MDT = {main="Earth Staff",sub="Mephitis Grip",range="Dunna",head="Nahtirah Hat",neck="Twilight Torque",ear1="Bloodgem Earring",ear2="Novia Earring",
- body="Geo. Tunic +1",hands="Geo. Mitaines +1",ring1="Sheltered Ring",ring2="Paguroidea Ring",back="Repulse Mantle",waist="Isa Belt",legs="Geo. Pants +1",feet="Bagua Sandals +1"}
- sets.Kiting = {}
- -- 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 = {}
- end
- -------------------------------------------------------------------------------------------------------------------
- -- Job-specific hooks for standard casting events.
- -------------------------------------------------------------------------------------------------------------------
- function job_aftercast(spell, action, spellMap, eventArgs)
- if not spell.interrupted then
- if spell.english:startswith('Indi') then
- if not classes.CustomIdleGroups:contains('Indi') then
- classes.CustomIdleGroups:append('Indi')
- end
- send_command('@timers d "'..indi_timer..'"')
- indi_timer = spell.english
- send_command('@timers c "'..indi_timer..'" '..indi_duration..' down spells/00136.png')
- elseif spell.english == 'Sleep' or spell.english == 'Sleepga' then
- send_command('@timers c "'..spell.english..' ['..spell.target.name..']" 60 down spells/00220.png')
- elseif spell.english == 'Sleep II' or spell.english == 'Sleepga II' then
- send_command('@timers c "'..spell.english..' ['..spell.target.name..']" 90 down spells/00220.png')
- end
- elseif not player.indi then
- classes.CustomIdleGroups:clear()
- 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 player.indi and not classes.CustomIdleGroups:contains('Indi')then
- classes.CustomIdleGroups:append('Indi')
- handle_equipping_gear(player.status)
- elseif classes.CustomIdleGroups:contains('Indi') and not player.indi then
- classes.CustomIdleGroups:clear()
- handle_equipping_gear(player.status)
- end
- end
- 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.
- -------------------------------------------------------------------------------------------------------------------
- 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
- elseif spell.skill == 'Geomancy' then
- if spell.english:startswith('Indi') then
- return 'Indi'
- 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)
- classes.CustomIdleGroups:clear()
- if player.indi then
- classes.CustomIdleGroups:append('Indi')
- 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
- function pet_change(pet, gain)
- if gain then
- equip(sets.idle.Field.PDT)
- else
- equip(sets.idle.Field)
- end
- end
- -------------------------------------------------------------------------------------------------------------------
- -- Utility functions specific to this job.
- -------------------------------------------------------------------------------------------------------------------
- -- Select default macro book on initial load or subjob change.
- function select_default_macro_book()
- set_macro_page(1, 4)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement