Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function job_setup()
- --make macro '/con gs c cycle HasteMode' to switch between haste modes
- state.HasteMode = M{['description'] = 'Haste Mode', '1', '2'}
- determine_haste_group()
- update_combat_form()
- end
- --Engaged set table example
- function init_gear_sets()
- sets.engaged.DW.MaxHaste = {ammo="Ginsen",
- head=gear.adhemarhead_melee,neck="Asperity necklace",ear1="Telos Earring",ear2="Brutal earring",
- body="Adhemar jacket",hands=gear.herchands_acc,ring1="Hetairoi Ring",ring2="Epona's Ring",
- back=gear.blucape_tp,waist="Windbuffet belt +1",legs="Samnuha Tights",feet=gear.hercfeet_ta }
- sets.engaged.DW.Acc.MaxHaste = {ammo="Ginsen",
- head="Carmine Mask +1",neck="Lissome necklace",ear1="Telos earring",ear2="Brutal earring",
- body="Adhemar Jacket",hands="Adhemar wristbands",ring1="Hetairoi Ring",ring2="Epona's Ring",
- back=gear.blucape_tp,waist="Windbuffet belt +1",legs="Samnuha Tights",feet=gear.hercfeet_ta }
- end
- function job_update(cmdParams, eventArgs)
- update_combat_form()
- determine_haste_group()
- end
- function update_combat_form()
- -- Check for H2H or single-wielding
- if player.equipment.sub == 'empty' then
- state.CombatForm:reset()
- else
- state.CombatForm:set('DW')
- end
- end
- function job_buff_change(buff, gain)
- if S{'haste','march','embrava','mighty guard','Indi-Haste',''}:contains(buff:lower()) then
- determine_haste_group()
- handle_equipping_gear(player.status)
- elseif state.Buff[buff] ~= nil then
- state.Buff[buff] = gain
- handle_equipping_gear(player.status)
- end
- end
- function determine_haste_group()
- classes.CustomMeleeGroups:clear()
- if state.HasteMode.value == '2' then
- if buffactive[680] then
- if buffactive[33] or buffactive[604] or buffactive[228] or buffactive.march then
- classes.CustomMeleeGroups:append('MaxHaste')
- else
- classes.CustomMeleeGroups:append('HighHaste')
- end
- elseif buffactive[33] then
- if buffactive[604] or buffactive[228] or buffactive.march then
- classes.CustomMeleeGroups:append('MaxHaste')
- else
- classes.CustomMeleeGroups:append('HighHaste')
- end
- elseif buffactive[604] then
- if buffactive.march == 1 and buffactive[228] then
- classes.CustomMeleeGroups:append('MaxHaste')
- elseif buffactive.march == 2 or buffactive[228] then
- classes.CustomMeleeGroups:append('MaxHaste')
- elseif buffactive.march == 1 then
- classes.CustomMeleeGroups:append('HighHaste')
- else
- classes.CustomMeleeGroups:append('LowHaste')
- end
- elseif buffactive[228] then
- if buffactive.march then
- classes.CustomMeleeGroups:append('MaxHaste')
- else
- classes.CustomMeleeGroups:append('HighHaste')
- end
- end
- elseif state.HasteMode.value == '1' then
- if buffactive[680] then
- if buffactive[33] or buffactive[604] or buffactive[228] or buffactive.march then
- classes.CustomMeleeGroups:append('MaxHaste')
- else
- classes.CustomMeleeGroups:append('HighHaste')
- end
- elseif buffactive[33] then
- if buffactive[228] or buffactive.march == 2 then
- classes.CustomMeleeGroups:append('MaxHaste')
- elseif buffactive[604] or buffactive.march == 1 then
- classes.CustomMeleeGroups:append('HighHaste')
- else
- classes.CustomMeleeGroups:append('LowHaste')
- end
- elseif buffactive[604] then
- if buffactive.march == 1 and buffactive[228] then
- classes.CustomMeleeGroups:append('MaxHaste')
- elseif buffactive.march == 2 or buffactive[228] then
- classes.CustomMeleeGroups:append('MaxHaste')
- elseif buffactive.march == 1 then
- classes.CustomMeleeGroups:append('HighHaste')
- else
- classes.CustomMeleeGroups:append('LowHaste')
- end
- elseif buffactive[228] then
- if buffactive.march then
- classes.CustomMeleeGroups:append('MaxHaste')
- else
- classes.CustomMeleeGroups:append('HighHaste')
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement