Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Basic White Bitch Gearswap by Cambion
- -- 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 variables that are user-independent. state.Buff vars initialized here will automatically be tracked.
- function job_setup()
- state.Buff['Climactic Flourish'] = buffactive['climactic flourish'] or false
- end
- -------------------------------------------------------------------------------------------------------------------
- -- User setup functions for this job.
- -------------------------------------------------------------------------------------------------------------------
- -- Gear Modes
- function user_setup()
- Haste = 0
- DW_needed = 0
- DW = false
- moving = false
- update_combat_form()
- determine_haste_group()
- end
- -- Define sets and vars used by this job file.
- function init_gear_sets()
- ------------------------------------------------------------------------------------------------
- ---------------------------------------- Precast Sets ------------------------------------------
- ------------------------------------------------------------------------------------------------
- sets.precast.JA['No Foot Rise'] = {body="Horos Casaque +2"}
- sets.precast.Waltz = {}
- sets.precast.WaltzSelf = set_combine(sets.precast.Waltz, {ring1="Asklepian Ring"})
- sets.precast.Samba = {}
- sets.precast.Jig = {}
- sets.precast.Step = {}
- sets.precast.Flourish2['Reverse Flourish'] = {hands="Macu. Bangles +1",back="Toetapper Mantle"}
- sets.precast.Flourish3['Climactic Flourish'] = {head="Maculele Tiara +1"}
- sets.buff['Climactic Flourish'] = {head="Maculele Tiara +1", body="Meg. Cuirie +2"}
- ------------------------------------------------------------------------------------------------
- ------------------------------------- Weapon Skill Sets ----------------------------------------
- ------------------------------------------------------------------------------------------------
- sets.precast.WS = {}
- sets.precast.WS['Exenterator'] = {}
- sets.precast.WS['Pyrrhic Kleos'] = {}
- sets.precast.WS['Evisceration'] = {}
- sets.precast.WS['Rudra\'s Storm'] = {}
- sets.precast.WS['Aeolian Edge'] = {}
- ------------------------------------------------------------------------------------------------
- ----------------------------------------- Idle Sets --------------------------------------------
- ------------------------------------------------------------------------------------------------
- sets.idle = {}
- ------------------------------------------------------------------------------------------------
- -------------------------------------- Dual Wield Sets -----------------------------------------
- ------------------------------------------------------------------------------------------------
- -- * DNC Native DW Trait: 30% DW
- -- * DNC Job Points DW Gift: 5% DW
- -- No Magic Haste (39% DW to cap)
- sets.engaged.DW = {}
- -- 15% Magic Haste (32% DW to cap)
- sets.engaged.DW.LowHaste = {}
- -- 30% Magic Haste (21% DW to cap)
- sets.engaged.DW.MidHaste = {}
- -- 35% Magic Haste (16% DW to cap)
- sets.engaged.DW.HighHaste = {}
- -- 45% Magic Haste (1% DW to cap)
- sets.engaged.DW.MaxHaste = {}
- end
- -------------------------------------------------------------------------------------------------------------------
- -- Job-specific hooks for standard casting events.
- -------------------------------------------------------------------------------------------------------------------
- function job_post_precast(spell, action, spellMap, eventArgs)
- if spell.type == "WeaponSkill" then
- if state.Buff['Climactic Flourish'] then
- equip(sets.buff['Climactic Flourish'])
- end
- end
- if spell.type=='Waltz' and spell.target.type == 'SELF' then
- equip(sets.precast.WaltzSelf)
- end
- end
- -------------------------------------------------------------------------------------------------------------------
- -- Job-specific hooks for non-casting events.
- -------------------------------------------------------------------------------------------------------------------
- function job_buff_change(buff,gain)
- if buff == 'Climactic Flourish' then
- handle_equipping_gear(player.status)
- end
- end
- -------------------------------------------------------------------------------------------------------------------
- -- User code that supplements standard library decisions.
- -------------------------------------------------------------------------------------------------------------------
- function job_handle_equipping_gear(playerStatus, eventArgs)
- update_combat_form()
- determine_haste_group()
- end
- function job_update(cmdParams, eventArgs)
- handle_equipping_gear(player.status)
- end
- function update_combat_form()
- if DW == true then
- state.CombatForm:set('DW')
- elseif DW == false then
- state.CombatForm:reset()
- end
- end
- function customize_melee_set(meleeSet)
- if state.Buff['Climactic Flourish'] then
- meleeSet = set_combine(meleeSet, sets.buff['Climactic Flourish'])
- end
- return meleeSet
- end
- -------------------------------------------------------------------------------------------------------------------
- -- Utility functions specific to this job.
- -------------------------------------------------------------------------------------------------------------------
- function determine_haste_group()
- classes.CustomMeleeGroups:clear()
- if DW == true then
- if DW_needed <= 1 then
- classes.CustomMeleeGroups:append('MaxHaste')
- elseif DW_needed > 1 and DW_needed <= 9 then
- classes.CustomMeleeGroups:append('HighHaste')
- elseif DW_needed > 9 and DW_needed <= 21 then
- classes.CustomMeleeGroups:append('MidHaste')
- elseif DW_needed > 21 and DW_needed <= 39 then
- classes.CustomMeleeGroups:append('LowHaste')
- elseif DW_needed > 39 then
- classes.CustomMeleeGroups:append('')
- end
- end
- end
- function gearinfo(cmdParams, eventArgs)
- if cmdParams[1] == 'gearinfo' then
- if type(tonumber(cmdParams[2])) == 'number' then
- if tonumber(cmdParams[2]) ~= DW_needed then
- DW_needed = tonumber(cmdParams[2])
- DW = true
- end
- elseif type(cmdParams[2]) == 'string' then
- if cmdParams[2] == 'false' then
- DW_needed = 0
- DW = false
- end
- end
- if type(tonumber(cmdParams[3])) == 'number' then
- if tonumber(cmdParams[3]) ~= Haste then
- Haste = tonumber(cmdParams[3])
- end
- end
- if type(cmdParams[4]) == 'string' then
- if cmdParams[4] == 'true' then
- moving = true
- elseif cmdParams[4] == 'false' then
- moving = false
- end
- end
- if not midaction() then
- job_update()
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement