SHARE
TWEET

Untitled

a guest Jul 28th, 2019 119 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function get_sets()
  2.     mote_include_version = 2
  3.  
  4.     -- Load and initialize the include file.
  5.     include('Mote-Include.lua')
  6. end
  7.  
  8. function job_setup()
  9.     state.Buff.sleep = buffactive.sleep or false
  10.     state.Buff.Stoneskin =  buffactive.stoneskin or false
  11.     state.Buff.doom = buffactive.doom or false
  12.     state.Buff.Souleater = buffactive.souleater or false
  13.     state.Buff['Last Resort'] = buffactive['Last Resort'] or false
  14.    
  15.     state.Buff["Aftermath: Lv.1"] = buffactive["Aftermath: Lv.1"] or false
  16.     state.Buff["Aftermath: Lv.2"] = buffactive["Aftermath: Lv.2"] or false
  17.     state.Buff["Aftermath: Lv.3"] = buffactive["Aftermath: Lv.3"] or false
  18.    
  19.     include('Organizer-lib.lua')
  20.    
  21. end
  22.  
  23. function user_setup()
  24.     -- Options: Override default values
  25.     state.OffenseMode:options('Normal', 'Mid', 'Acc')
  26.     state.HybridMode:options('Normal', 'PDT')
  27.     state.WeaponskillMode:options('Normal', 'Mid', 'Acc')
  28.     state.CastingMode:options('Normal', 'Acc')
  29.     state.IdleMode:options('Normal', 'Sphere')
  30.     state.RestingMode:options('Normal')
  31.     state.PhysicalDefenseMode:options('PDT', 'Reraise')
  32.     state.MagicalDefenseMode:options('MDT')
  33.  
  34.     --state.Auto_Kite = M(false, 'Auto_Kite')  
  35.     Haste = 0
  36.     DW_needed = 0  
  37.     DW = false  
  38.     --moving = false  
  39.     update_combat_form()  
  40.     determine_haste_group()  
  41.  
  42. end
  43.  
  44. function user_unload()
  45. end
  46.  
  47. function init_gear_sets()
  48.  
  49.     -- Basic defined sets for any weapon
  50.    
  51.     sets.engaged = {
  52.         ammo="Ginsen",
  53.         head="Flam. Zucchetto +2",
  54.         body={ name="Valorous Mail", augments={'Accuracy+30','"Dbl.Atk."+4',}},
  55.         hands="Sulev. Gauntlets +2",
  56.         legs="Ig. Flanchard +3",
  57.         feet="Flam. Gambieras +2",
  58.         neck="Abyssal Beads",
  59.         waist="Ioskeha Belt",
  60.         left_ear="Cessance Earring",
  61.         right_ear="Brutal Earring",
  62.         left_ring="Hetairoi Ring",
  63.         right_ring="Niqmaddu Ring",
  64.         back={ name="Ankou's Mantle", augments={'STR+20','Accuracy+20 Attack+20','STR+10','Weapon skill damage +10%',}},
  65.     }
  66.     sets.engaged.Mid = set_combine(sets.engaged, {})
  67.     sets.engaged.Acc = set_combine(sets.engaged.Mid, {})
  68.  
  69.     -- max haste gear sets
  70.     -- need 12% gear haste with capped job ability haste
  71.    
  72.     sets.engaged['H: 908+'] = set_combine(sets.engaged, {body="Hjarrandi Breast.",})
  73.     sets.engaged.Mid['H: 908+'] = set_combine(sets.engaged['H: 908+'], {})
  74.     sets.engaged.Acc['H: 908+'] = set_combine(sets.engaged.Mid['H: 908+'], {})
  75.    
  76.     -- Caladbolg sets
  77.    
  78.     sets.engaged['Greatsword'] = set_combine(sets.engaged, {})
  79.     sets.engaged['Greatsword'].Mid = set_combine(sets.engaged['Greatsword'], {})
  80.     sets.engaged['Greatsword'].Acc = set_combine(sets.engaged['Greatsword'].Mid, {})
  81.    
  82.     sets.engaged['Greatsword']['AM3'] = set_combine(sets.engaged['Greatsword'], {hands="Flam. Manopolas +2",})
  83.     sets.engaged['Greatsword'].Mid['AM3'] = set_combine(sets.engaged['Greatsword'], {})
  84.     sets.engaged['Greatsword'].Acc['AM3'] = set_combine(sets.engaged['Greatsword'].Mid, {})
  85.    
  86.     sets.engaged['Greatsword']['H: 908+'] = set_combine(sets.engaged['H: 908+'], {body="Hjarrandi Breast.",})
  87.     sets.engaged['Greatsword'].Mid['H: 908+'] = set_combine(sets.engaged['Greatsword']['H: 908+'], {})
  88.     sets.engaged['Greatsword'].Acc['H: 908+'] = set_combine(sets.engaged['Greatsword'].Mid['H: 908+'], {})
  89.    
  90.     sets.engaged['Greatsword']['H: 908+']['AM3'] = set_combine(sets.engaged['Greatsword']['AM3'], {})
  91.     sets.engaged['Greatsword'].Mid['H: 908+']['AM3'] = set_combine(sets.engaged['Greatsword']['H: 908+']['AM3'], {})
  92.     sets.engaged['Greatsword'].Acc['H: 908+']['AM3'] = set_combine(sets.engaged['Greatsword'].Mid['H: 908+']['AM3'], {})
  93.    
  94.     -- Apocalypse
  95.    
  96.     -- Anguta
  97.  
  98.  
  99. end
  100.  
  101. function job_buff_change(buff, gain, buff_info)
  102.     if state.Buff[buff] ~= nil then
  103.         state.Buff[buff] = gain
  104.     end
  105. end
  106.  
  107. function job_status_change(new_status, old_status)
  108.     --table.vprint(sets)
  109.     handle_equipping_gear(player.status)
  110. end
  111.  
  112. function job_handle_equipping_gear(playerStatus, eventArgs)
  113.    
  114.     update_combat_form()
  115.     determine_haste_group()
  116.     --check_moving()
  117.    
  118. end
  119.  
  120. --function customize_idle_set(idleSet)
  121.    --if state.Auto_Kite.value == true then  
  122.      --idleSet = set_combine(idleSet, sets.Kiting)  
  123.     --end  
  124.     --return idleSet  
  125. --end
  126.  
  127. function job_update(cmdParams, eventArgs)
  128.     if player.equipment.main == 'Ragnarok' or player.equipment.main == 'Caladbolg' then
  129.         state.CombatWeapon:set('Greatsword')
  130.     elseif player.equipment.main == 'Apocalypse' then
  131.         state.CombatWeapon:set('Apocalypse')
  132.     elseif player.equipment.main == 'Redemption' then
  133.         state.CombatWeapon:set('Redemption')
  134.     elseif player.equipment.main == 'Liberator' then
  135.         state.CombatWeapon:set('Liberator')
  136.     else -- use regular set
  137.         state.CombatWeapon:reset()
  138.     end
  139.    
  140.     handle_equipping_gear(player.status)  
  141.    
  142. end
  143.  
  144. function update_combat_form()  
  145.     if DW == true then  
  146.         state.CombatForm:set('DW')  
  147.     elseif DW == false then  
  148.         state.CombatForm:reset()  
  149.     end  
  150. end
  151.  
  152. function check_moving()
  153.     if state.DefenseMode.value == 'None'  and state.Kiting.value == false then
  154.         if state.Auto_Kite.value == false and moving then
  155.             state.Auto_Kite:set(true)
  156.         elseif state.Auto_Kite.value == true and moving == false then
  157.             state.Auto_Kite:set(false)
  158.         end
  159.     end
  160. end
  161.  
  162. function determine_haste_group()
  163.  
  164.     classes.CustomMeleeGroups:clear()
  165.     -- Choose gearset based on DW needed
  166.     if Haste >= 908 then
  167.         classes.CustomMeleeGroups:append('H: 908+')
  168.     elseif Haste > 855 and Haste < 908 then
  169.         classes.CustomMeleeGroups:append('H: 856')
  170.     elseif Haste > 819 and Haste < 856 then
  171.         classes.CustomMeleeGroups:append('H: 819')
  172.     end
  173.    
  174.     --if state.Buff["Aftermath: Lv.3"] and player.equipment.main == 'Caladbolg' then
  175.         -- or player.equipment.main == 'Redemption' or player.equipment.main == 'Liberator'
  176.         --classes.CustomMeleeGroups:append('AM3')
  177.     --end
  178.    
  179.     --if DW == true then
  180.         --if DW_needed <= 5 then
  181.             --classes.CustomMeleeGroups:append('DW: 5-0')
  182.         --elseif DW_needed > 5 and DW_needed < 12 then
  183.             --classes.CustomMeleeGroups:append('DW: 6-11')
  184.         --elseif DW_needed > 11 and DW_needed < 22 then
  185.             --classes.CustomMeleeGroups:append('DW: 12-21')
  186.         --elseif DW_needed > 21 and DW_needed < 37 then
  187.             --classes.CustomMeleeGroups:append('DW: 22-36')
  188.         --elseif DW_needed > 36 then
  189.             --classes.CustomMeleeGroups:append('DW: 37+')
  190.         --end
  191.     --end
  192. end
  193.  
  194. function job_self_command(cmdParams, eventArgs)
  195.     gearinfo(cmdParams, eventArgs)
  196. end
  197.  
  198. function gearinfo(cmdParams, eventArgs)
  199.  
  200.     if cmdParams[1] == 'gearinfo' then
  201.         if type(tonumber(cmdParams[2])) == 'number' then
  202.             if tonumber(cmdParams[2]) ~= DW_needed then
  203.                 DW_needed = tonumber(cmdParams[2])
  204.                 DW = true
  205.             end
  206.         elseif type(cmdParams[2]) == 'string' then
  207.             if cmdParams[2] == 'false' then
  208.                 DW_needed = 0
  209.                 DW = false
  210.             end
  211.         end
  212.         if type(tonumber(cmdParams[3])) == 'number' then
  213.             if tonumber(cmdParams[3]) ~= Haste then
  214.                 Haste = tonumber(cmdParams[3])
  215.             end
  216.         end
  217.         --if not midaction() then
  218.             --job_update()
  219.         --end
  220.         if type(cmdParams[4]) == 'string' then
  221.             if cmdParams[4] == 'true' then
  222.                 moving = true
  223.             elseif cmdParams[4] == 'false' then
  224.                 moving = false
  225.             end
  226.         end
  227.     end
  228. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top