Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -------------------------------------------------------------------------------------------------------------------
- -- Initialization function that defines sets and variables to be used.
- -------------------------------------------------------------------------------------------------------------------
- -- IMPORTANT: Make sure to also get the Mote-Include.lua file (and its supplementary files) to go with this.
- -- Initialization function for this job file.
- function get_sets()
- -- Load and initialize the include file.
- include('Mote-Include.lua')
- end
- -- Setup vars that are user-independent.
- function job_setup()
- end
- -- Setup vars that are user-dependent. Can override this function in a sidecar file.
- function user_setup()
- -- Options: Override default values
- options.CastingModes = {'Normal', 'Resistant'}
- options.OffenseModes = {'Normal','Staff','Club','StaffACC','ClubACC'}
- options.DefenseModes = {'Normal'}
- options.WeaponskillModes = {'Normal'}
- options.IdleModes = {'Normal','Hybrid','PDT','petPDT'}
- options.RestingModes = {'Normal'}
- options.PhysicalDefenseModes = {'PDT'}
- options.MagicalDefenseModes = {'MDT'}
- state.Defense.PhysicalMode = 'PDT'
- lowTierNukes = 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',
- 'Stonega', 'Waterga', 'Aeroga', 'Firaga', 'Blizzaga', 'Thundaga',
- 'Stonega II', 'Waterga II', 'Aeroga II', 'Firaga II', 'Blizzaga II', 'Thundaga II', 'Stonera', 'Thundara', 'Fira', 'Blizzara', 'Aerora', 'Watera'}
- -- Default macro set/book
- set_macro_page(1, 1)
- end
- -- Called when this job file is unloaded (eg: job change)
- function file_unload()
- if binds_on_unload then
- binds_on_unload()
- end
- 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['Life Cycle'] = {body="Geomancy Tunic"}
- sets.precast.JA['Bolster'] = {body="Bagua Tunic"}
- sets.precast.JA['Curative Recantation'] = {hands="Bagua Mitaines +1"}
- sets.precast.JA['Mending Halation'] = {legs="Bagua Pants"}
- sets.precast.JA['Radial Arcana'] = {feet="Bagua Sandals +1"}
- -- Fast cast sets for spells
- sets.precast.FC = {main="Terra's staff",sub="vivid strap",
- head="nahtirah hat",neck="Jeweled Collar",ear1="",ear2="Loquacious Earring",
- body="",ring1="Prolix Ring",hands="repartie gloves",
- back="lifestream Cape",waist="Witful Belt",legs="Geomancy Pants",feet=""}
- sets.precast.FC.Cure = {main="tamaxchi",sub="genbu's shield",
- head="nahtirah hat",neck="Jeweled Collar",ear1="magnetic Earring",ear2="Loquacious Earring",
- body="",ring1="Prolix Ring",hands="repartie gloves",
- back="pahtli Cape",waist="Witful Belt",legs="Geomancy Pants",feet="umbani Boots"}
- sets.precast.FC.Stoneskin = {main="Terra's staff",sub="vivid strap",
- head="nahtirah hat",neck="Jeweled Collar",ear1="magnetic Earring",ear2="Loquacious Earring",
- body="",ring1="Prolix Ring",hands="carapacho cuffs",
- back="lifestream Cape",waist="siegel sash",legs="Geomancy Pants",feet="umbani Boots"}
- -- Weaponskill sets
- -- Default set for any weaponskill that isn't any more specifically defined
- sets.precast.WS = {
- head="Hagondes Hat",neck="Stoicheion Medal",ear1="Friomisi Earring",ear2="Hecate's Earring",
- body="Hagondes Coat +1",hands="Yaoyotl Gloves",ring2="Strendu Ring",
- back="Toro Cape",waist="Snow Belt",legs="Hagondes Pants",feet="Hagondes Sabots"}
- -- Specific weaponskill sets. Uses the base set if an appropriate WSMod version isn't found.
- sets.precast.WS['Flash Nova'] = {
- head="Hagondes Hat",neck="Stoicheion Medal",ear1="Friomisi Earring",ear2="Hecate's Earring",
- body="Hagondes Coat +1",hands="Yaoyotl Gloves",ring2="Strendu Ring",
- back="Toro Cape",waist="Snow Belt",legs="Hagondes Pants",feet="Hagondes Sabots"}
- sets.precast.WS['Exudation'] = {
- head="Hagondes Hat",neck="Stoicheion Medal",ear1="Friomisi Earring",ear2="Hecate's Earring",
- body="Hagondes Coat +1",hands="Yaoyotl Gloves",ring2="Strendu Ring",
- back="Toro Cape",waist="Snow Belt",legs="Hagondes Pants",feet="Hagondes Sabots"}
- sets.precast.WS['Hexa Strike'] = {
- head="Hagondes Hat",neck="Stoicheion Medal",ear1="Friomisi Earring",ear2="Hecate's Earring",
- body="Hagondes Coat +1",hands="Yaoyotl Gloves",ring2="Strendu Ring",
- back="Toro Cape",waist="Snow Belt",legs="Hagondes Pants",feet="Hagondes Sabots"}
- sets.precast.WS['Starlight'] = {ear2="Moonshade Earring"}
- sets.precast.WS['Moonlight'] = {ear2="Moonshade Earring"}
- sets.precast.WS['Retribution'] = {
- head="Hagondes Hat",neck="Stoicheion Medal",ear1="Friomisi Earring",ear2="Hecate's Earring",
- body="Hagondes Coat +1",hands="Yaoyotl Gloves",ring2="Strendu Ring",
- back="Toro Cape",waist="Snow Belt",legs="Hagondes Pants",feet="Hagondes Sabots"}
- sets.precast.WS['Cataclysm'] = {
- head="Hagondes Hat",neck="Stoicheion Medal",ear1="Friomisi Earring",ear2="Hecate's Earring",
- body="Hagondes Coat +1",hands="Yaoyotl Gloves",ring2="Strendu Ring",
- back="Toro Cape",waist="Snow Belt",legs="Hagondes Pants",feet="Hagondes Sabots"}
- -- Midcast Sets
- sets.midcast.FastRecast = {main="Terra's staff",sub="vivid strap",
- head="laurel wreath",neck="Jeweled Collar",ear1="magnetic Earring",ear2="Loquacious Earring",
- body="",ring1="Prolix Ring",hands="repartie gloves",
- back="lifestream Cape",waist="Witful Belt",legs="Geomancy Pants",feet="umbani Boots"}
- sets.midcast.Geomancy = {main="Terra's staff",sub="vivid strap",
- range="dunna",head="laurel wreath",hands="geomancy mitaines",back="lifestream Cape",
- body="bagua tunic",ear1="gifted earring",ear2="magnetic earring",
- waist="austerity belt",feet="umbani boots",legs="bagua pants"}
- -- Cure potency =
- sets.midcast.Cure = {main="tamaxchi",sub="genbu's shield",
- head="laurel wreath",neck="phalaina locket",ear1="magnetic Earring",ear2="gifted Earring",
- body="",ring1="sirona's Ring",hands="bokwus gloves",
- back="tempered Cape",waist="austerity Belt",legs="Geomancy Pants",feet="umbani Boots"}
- sets.midcast.Stoneskin = {main="Terra's staff",sub="vivid strap",
- head="laurel wreath",hands=""
- ,back="",body=""
- ,ear1="earthcry earring",ear2="magnetic earring",waist="austerity belt"
- ,feet="umbani Boots",legs="haven hose",neck="stone gorget",feet="umbani Boots"}
- sets.midcast.Protectra = {ring1="Sheltered Ring"}
- sets.midcast.Shellra = {ring1="Sheltered Ring"}
- -- Custom Spell Classes
- sets.midcast['Enfeebling Magic'] = {main="baqil staff",sub="mephitis grip",ranged="",
- head="bagua galero +1",neck="eddy necklace",ear1="Psystorm Earring",ear2="Lifestorm Earring",
- body="Ischemia chasuble",hands="lurid mitts ",ring1="",ring2="",
- back="kumbira Cape",waist="Aswang Sash",legs="hagondes pants",feet="Bagua sandals +1"}
- sets.midcast.IntEnfeebles = {main="baqil staff",sub="mephitis grip",ranged="",
- head="bagua galero +1",neck="eddy necklace",ear1="Psystorm Earring",ear2="Lifestorm Earring",
- body="Ischemia chasuble",hands="lurid mitts ",ring1="",ring2="",
- back="kumbira Cape",waist="Aswang Sash",legs="hagondes pants",feet="Bagua sandals +1"}
- sets.midcast.ElementalEnfeeble = sets.midcast['Enfeebling Magic']
- sets.midcast['Dark Magic'] = {main="Bolelabunga",sub="genbu's shield",ranged="",
- head="bagua galero +1",neck="eddy necklace",ear1="hirudinea Earring",ear2="loquacious Earring",
- body="geomancy tunic",hands="yaoyotl gloves ",ring1=" ring",ring2="",
- back="kumbira Cape",waist="fucho-no-obi",legs="",feet="kandza crackows"}
- -- Elemental Magic sets are default for handling low-tier nukes.
- sets.midcast.LowTierNuke = {main="baqil Staff",sub="wise strap",ammo="",
- head="geomancy galero",neck="Eddy Necklace",ear1="strophadic Earring",ear2="hecate's Earring",
- body="artsieq jubbah ",hands="yaoyotl gloves",ring1="locus Ring",ring2="demon's Ring",
- back="Toro Cape",waist="Aswang Sash",legs="hagondes pants",feet="hagondes sabots"}
- sets.midcast.LowTierNuke.Resistant = {main="baqil Staff",sub="wise strap",ammo="",
- head="geomancy galero",neck="Eddy Necklace",ear1="strophadic Earring",ear2="hecate's Earring",
- body="artsieq jubbah ",hands="yaoyotl gloves",ring1="locus Ring",ring2="demon's Ring",
- back="Toro Cape",waist="Aswang Sash",legs="hagondes pants",feet="hagondes sabots"}
- -- Custom classes for high-tier nukes.
- sets.midcast.HighTierNuke = {main="baqil Staff",sub="wise strap",ammo="",
- head="bagua galero +1",neck="Eddy Necklace",ear1="strophadic Earring",ear2="hecate's Earring",
- body="artsieq jubbah",hands="lurid mitts",ring1="locus Ring",ring2="demon's Ring",
- back="kumbira Cape",waist="Aswang Sash",legs="hagondes pants",feet="kandza crackows"}
- sets.midcast.HighTierNuke.Resistant = {main="baqil Staff",sub="wise strap",ammo="",
- head="bagua galero +1",neck="Eddy Necklace",ear1="Psystorm Earring",ear2="Lifestorm Earring",
- body="artsieq jubbah",hands="yaoyotl gloves",ring1="locus Ring",ring2="demon's Ring",
- back="kumbira Cape",waist="Aswang Sash",legs="hagondes pants",feet="kandza crackows"}
- -- Sets to return to when not performing an action.
- -- Resting sets
- sets.resting = {main="Bolelabunga",sub="Genbu's Shield",range="dunna",
- head="wivre hairpin",neck="wiglen gorget",ear1="merman's Earring",ear2="merman's Earring",
- body="geomancy tunic",hands="bagua mitaines +1",ring1="Sheltered Ring",ring2="Paguroidea Ring",
- back="kumbira Cape",waist="fucho-no-obi",legs="stearc subligar",feet="geomancy sandals"}
- -- Idle sets (default idle set not needed since the other three are defined, but leaving for testing purposes)
- sets.idle.Town = {main="Bolelabunga",sub="Genbu's Shield",range="Dunna",
- head="geomancy galero",neck="twilight torque",ear1="merman's Earring",ear2="merman's Earring",
- body="geomancy tunic",hands="geomancy mitaines",ring1="Sheltered Ring",ring2="Paguroidea Ring",
- back="kumbira Cape",waist="fucho-no-obi",legs="geomancy pants",feet="geomancy sandals +1"}
- sets.idle.Field = {main="Terra's staff",sub="vivid strap",range="",
- head="Selenian cap",neck="Twilight Torque",ear1="Merman's Earring",ear2="Merman's Earring",
- body="Hagondes Coat +1",hands="geomancy mitaines",ring1="Dark Ring",ring2="Dark Ring",
- back="Iximulew Cape",waist="Isa belt",legs="Hagondes pants",feet="Bagua sandals +1"}
- sets.idle.Field.PDT = {main="Terra's staff",sub="vivid strap",range="",
- head="hagondes Hat",neck="Twilight Torque",ear1="",ear2="",
- body="Hagondes Coat +1",hands="hagondes cuffs +1",ring1="Dark Ring",ring2="dark Ring",
- back="iximulew Cape",waist="fucho-no-obi",legs="hagondes pants",feet="Hagondes sabots"}
- sets.idle.Weak = {main="Bolelabunga",sub="Genbu's Shield",range="dunna",
- head="wivre hairpin",neck="wiglen gorget",ear1="merman's Earring",ear2="merman's Earring",
- body="geomancy tunic",hands="bagua mitaines +1",ring1="Sheltered Ring",ring2="Paguroidea Ring",
- back="kumbira Cape",waist="fucho-no-obi",legs="stearc subligar",feet="geomancy sandals"}
- -- Defense sets
- sets.defense.PDT = {main="terra's staff",sub="",range="",
- head="hagondes Hat",neck="Twilight Torque",ear1="",ear2="",
- body="Hagondes Coat +1",hands="hagondes cuffs +1",ring1="Dark Ring",ring2="dark Ring",
- back="iximulew Cape",waist="",legs="hagondes pants",feet="Hagondes sabots"}
- sets.defense.MDT = {main="",sub="",range="",
- head="bagua galero +1",neck="Twilight Torque",ear1="merman's Earring",ear2="merman's Earring",
- body="Hagondes Coat +1",hands="hagondes cuffs +1",ring1="Dark Ring",ring2="dark Ring",
- back="",waist="",legs="hagondes pants",feet="Bagua sandals +1"}
- sets.Kiting = {feet="Geomancy Sandals"}
- -- 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 = {main="bolelabunga",sub="tamaxchi",range="Dunna",
- head="bagua galero +1",neck="asperity necklace",ear1="Bladeborn Earring",ear2="Steelflash Earring",
- body="hagondes coat +1",hands="Hagondes Cuffs +1",ring1="k'ayres Ring",ring2="rajas Ring",
- back="iximulew Cape",waist="goading belt",legs="hagondes pants",feet="Hagondes Sabots"}
- end
- -------------------------------------------------------------------------------------------------------------------
- -- Job-specific hooks that are called to process player actions at specific points in time.
- -------------------------------------------------------------------------------------------------------------------
- -- 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
- -- Run after the general precast() is done.
- function job_post_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)
- if spell.action_type == 'Magic' then
- -- Default base equipment layer of fast recast.
- equip(sets.midcast.FastRecast)
- end
- end
- -- Custom spell mapping.
- function job_get_spell_map(spell, default_spell_map)
- if spell.skill == 'Elemental Magic' and default_spell_map ~= 'ElementalEnfeeble' then
- if lowTierNukes:contains(spell.english) then
- return 'LowTierNuke'
- else
- return 'HighTierNuke'
- end
- end
- end
- -- Run after the general midcast() is done.
- function job_post_midcast(spell, action, spellMap, eventArgs)
- end
- -- Set eventArgs.handled to true if we don't want any automatic gear equipping to be done.
- function job_aftercast(spell, action, spellMap, eventArgs)
- end
- -------------------------------------------------------------------------------------------------------------------
- -- Customization hooks for idle and melee sets, after they've been automatically constructed.
- -------------------------------------------------------------------------------------------------------------------
- function customize_idle_set(idleSet)
- return idleSet
- end
- function customize_melee_set(meleeSet)
- return meleeSet
- end
- -------------------------------------------------------------------------------------------------------------------
- -- General hooks for other events.
- -------------------------------------------------------------------------------------------------------------------
- -- Called when the player's status changes.
- function job_status_change(newStatus,oldStatus)
- end
- -- 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)
- --handle_equipping_gear(player.status)
- end
- -------------------------------------------------------------------------------------------------------------------
- -- User code that supplements self-commands.
- -------------------------------------------------------------------------------------------------------------------
- -- Called for custom player commands.
- function job_self_command(cmdParams, eventArgs)
- end
- -- Called by the 'update' self-command.
- function job_update(cmdParams, eventArgs)
- end
- -- Function to display the current relevant user state when doing an update.
- -- Return true if display was handled, and you don't want the default info shown.
- function display_current_job_state()
- end
- -------------------------------------------------------------------------------------------------------------------
- -- Utility functions specific to this job.
- -------------------------------------------------------------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement