Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function get_sets()
- mote_include_version = 2
- -- Load and initialize the include file.
- include('Mote-Include.lua')
- end
- function job_setup()
- state.Buff.sleep = buffactive.sleep or false
- state.Buff.Stoneskin = buffactive.stoneskin or false
- state.Buff.doom = buffactive.doom or false
- state.Buff.Souleater = buffactive.souleater or false
- state.Buff['Last Resort'] = buffactive['Last Resort'] or false
- state.Buff["Aftermath: Lv.1"] = buffactive["Aftermath: Lv.1"] or false
- state.Buff["Aftermath: Lv.2"] = buffactive["Aftermath: Lv.2"] or false
- state.Buff["Aftermath: Lv.3"] = buffactive["Aftermath: Lv.3"] or false
- include('Organizer-lib.lua')
- end
- function user_setup()
- -- Options: Override default values
- state.OffenseMode:options('Normal', 'Mid', 'Acc')
- state.HybridMode:options('Normal', 'PDT')
- state.WeaponskillMode:options('Normal', 'Mid', 'Acc')
- state.CastingMode:options('Normal', 'Acc')
- state.IdleMode:options('Normal', 'Sphere')
- state.RestingMode:options('Normal')
- state.PhysicalDefenseMode:options('PDT', 'Reraise')
- state.MagicalDefenseMode:options('MDT')
- --state.Auto_Kite = M(false, 'Auto_Kite')
- Haste = 0
- DW_needed = 0
- DW = false
- --moving = false
- update_combat_form()
- determine_haste_group()
- end
- function user_unload()
- end
- function init_gear_sets()
- -- Basic defined sets for any weapon
- sets.engaged = {
- ammo="Ginsen",
- head="Flam. Zucchetto +2",
- body={ name="Valorous Mail", augments={'Accuracy+30','"Dbl.Atk."+4',}},
- hands="Sulev. Gauntlets +2",
- legs="Ig. Flanchard +3",
- feet="Flam. Gambieras +2",
- neck="Abyssal Beads",
- waist="Ioskeha Belt",
- left_ear="Cessance Earring",
- right_ear="Brutal Earring",
- left_ring="Hetairoi Ring",
- right_ring="Niqmaddu Ring",
- back={ name="Ankou's Mantle", augments={'STR+20','Accuracy+20 Attack+20','STR+10','Weapon skill damage +10%',}},
- }
- sets.engaged.Mid = set_combine(sets.engaged, {})
- sets.engaged.Acc = set_combine(sets.engaged.Mid, {})
- -- max haste gear sets
- -- need 12% gear haste with capped job ability haste
- sets.engaged['H: 908+'] = set_combine(sets.engaged, {body="Hjarrandi Breast.",})
- sets.engaged.Mid['H: 908+'] = set_combine(sets.engaged['H: 908+'], {})
- sets.engaged.Acc['H: 908+'] = set_combine(sets.engaged.Mid['H: 908+'], {})
- -- Caladbolg sets
- sets.engaged['Greatsword'] = set_combine(sets.engaged, {})
- sets.engaged['Greatsword'].Mid = set_combine(sets.engaged['Greatsword'], {})
- sets.engaged['Greatsword'].Acc = set_combine(sets.engaged['Greatsword'].Mid, {})
- sets.engaged['Greatsword']['AM3'] = set_combine(sets.engaged['Greatsword'], {hands="Flam. Manopolas +2",})
- sets.engaged['Greatsword'].Mid['AM3'] = set_combine(sets.engaged['Greatsword'], {})
- sets.engaged['Greatsword'].Acc['AM3'] = set_combine(sets.engaged['Greatsword'].Mid, {})
- sets.engaged['Greatsword']['H: 908+'] = set_combine(sets.engaged['H: 908+'], {body="Hjarrandi Breast.",})
- sets.engaged['Greatsword'].Mid['H: 908+'] = set_combine(sets.engaged['Greatsword']['H: 908+'], {})
- sets.engaged['Greatsword'].Acc['H: 908+'] = set_combine(sets.engaged['Greatsword'].Mid['H: 908+'], {})
- sets.engaged['Greatsword']['H: 908+']['AM3'] = set_combine(sets.engaged['Greatsword']['AM3'], {})
- sets.engaged['Greatsword'].Mid['H: 908+']['AM3'] = set_combine(sets.engaged['Greatsword']['H: 908+']['AM3'], {})
- sets.engaged['Greatsword'].Acc['H: 908+']['AM3'] = set_combine(sets.engaged['Greatsword'].Mid['H: 908+']['AM3'], {})
- -- Apocalypse
- -- Anguta
- end
- function job_buff_change(buff, gain, buff_info)
- if state.Buff[buff] ~= nil then
- state.Buff[buff] = gain
- end
- end
- function job_status_change(new_status, old_status)
- --table.vprint(sets)
- handle_equipping_gear(player.status)
- end
- function job_handle_equipping_gear(playerStatus, eventArgs)
- update_combat_form()
- determine_haste_group()
- --check_moving()
- end
- --function customize_idle_set(idleSet)
- --if state.Auto_Kite.value == true then
- --idleSet = set_combine(idleSet, sets.Kiting)
- --end
- --return idleSet
- --end
- function job_update(cmdParams, eventArgs)
- if player.equipment.main == 'Ragnarok' or player.equipment.main == 'Caladbolg' then
- state.CombatWeapon:set('Greatsword')
- elseif player.equipment.main == 'Apocalypse' then
- state.CombatWeapon:set('Apocalypse')
- elseif player.equipment.main == 'Redemption' then
- state.CombatWeapon:set('Redemption')
- elseif player.equipment.main == 'Liberator' then
- state.CombatWeapon:set('Liberator')
- else -- use regular set
- state.CombatWeapon:reset()
- end
- 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 check_moving()
- if state.DefenseMode.value == 'None' and state.Kiting.value == false then
- if state.Auto_Kite.value == false and moving then
- state.Auto_Kite:set(true)
- elseif state.Auto_Kite.value == true and moving == false then
- state.Auto_Kite:set(false)
- end
- end
- end
- function determine_haste_group()
- classes.CustomMeleeGroups:clear()
- -- Choose gearset based on DW needed
- if Haste >= 908 then
- classes.CustomMeleeGroups:append('H: 908+')
- elseif Haste > 855 and Haste < 908 then
- classes.CustomMeleeGroups:append('H: 856')
- elseif Haste > 819 and Haste < 856 then
- classes.CustomMeleeGroups:append('H: 819')
- end
- --if state.Buff["Aftermath: Lv.3"] and player.equipment.main == 'Caladbolg' then
- -- or player.equipment.main == 'Redemption' or player.equipment.main == 'Liberator'
- --classes.CustomMeleeGroups:append('AM3')
- --end
- --if DW == true then
- --if DW_needed <= 5 then
- --classes.CustomMeleeGroups:append('DW: 5-0')
- --elseif DW_needed > 5 and DW_needed < 12 then
- --classes.CustomMeleeGroups:append('DW: 6-11')
- --elseif DW_needed > 11 and DW_needed < 22 then
- --classes.CustomMeleeGroups:append('DW: 12-21')
- --elseif DW_needed > 21 and DW_needed < 37 then
- --classes.CustomMeleeGroups:append('DW: 22-36')
- --elseif DW_needed > 36 then
- --classes.CustomMeleeGroups:append('DW: 37+')
- --end
- --end
- end
- function job_self_command(cmdParams, eventArgs)
- gearinfo(cmdParams, eventArgs)
- 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 not midaction() then
- --job_update()
- --end
- if type(cmdParams[4]) == 'string' then
- if cmdParams[4] == 'true' then
- moving = true
- elseif cmdParams[4] == 'false' then
- moving = false
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement