Advertisement
R0bert199O

Elgorian_MNK.lua

Jul 9th, 2014
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 6.06 KB | None | 0 0
  1. function get_sets()
  2.     sets.misc = {}
  3.     sets.misc.SM = {back="Shadow Mantle"}  
  4.     sets.misc.Impetus = {body="Tantra Cyclas +2"}
  5.     sets.misc.Idle = {
  6.         head="Ocelo. Headpiece", neck="Twilight Torque",
  7.         body="Hesychast's Cyclas", ring1="Paguroidea Ring", ring2="Sheltered Ring",
  8.         feet="Hermes' Sandals" }
  9.        
  10.     sets.misc.Chakra = {
  11.         ammo="Tantra Tathlum",
  12.         head="Uk'uxkaj Cap", neck="Tjukurrpa Medal", ear1="Soil Pearl", ear2="Soil Pearl",
  13.         body="Anchorite's Cyclas", hands="Hesychast's Gloves +1", ring1="Terrasoul Ring", ring2="Terrasoul Ring",
  14.         back="Anchoret's Mantle", waist="Caudata Belt", legs="Quiahuiz Trousers", feet="Thurandaut Boots +1" } 
  15.  
  16.     sets.precast = {}
  17.     sets.precast['Perfect Counter'] = {}
  18.     sets.precast['Hundred Fists'] = {legs="Hesychast's Hose"}
  19.     sets.precast.Boost = {hands="Temple Gloves"}
  20.     sets.precast.Counterstance = {feet="Melee Gaiters +1"}
  21.     sets.precast['Formless Strikes'] = {body="Hesychast's Cyclas"}
  22.     sets.precast.Dodge = {feet="Anchorite's Gaiters"}  
  23.     sets.precast.Focus = {head="Temple Crown"}
  24.     sets.precast.Mantra = {}
  25.     sets.precast.Waltz = {}
  26.    
  27.     sets.precast['Shijin Spiral'] = {
  28.         ammo="Honed Tathlum",
  29.         head="Uk'uxkaj Cap", neck="Asperity Necklace", ear1="Bladeborn Earring", ear2="Steelflash Earring",
  30.         body="Qaaxo Harness", hands="Hesychast's Gloves +1", ring1="Epona's Ring", ring2="Jupiter's Ring",
  31.         back="Atheling Mantle", waist="Caudata Belt", legs="Manibozho Brais", feet="Espial Socks" }
  32.    
  33.     sets.VS = {}
  34.     sets.VS.index = {'DD', 'Acc'}
  35.     VS_Index = 1
  36.    
  37.     sets.VS.DD = { -- 119 AF Body
  38.         ammo="Potestas Bomblet",
  39.         head="Uk'uxkaj Cap", neck="Tjukurrpa Medal", ear1="Brutal Earring", ear2="Moonshade Earring",
  40.         body="Espial Gambison", hands="Hesychast's Gloves +1", ring1="Epona's Ring", ring2="Rajas Ring",
  41.         back="Atheling Mantle", waist="Caudata Belt", legs="Manibozho Brais", feet="Manibozho Boots" }
  42.        
  43.     sets.VS.Acc = { -- get 119 AF body, letalis mantle, finish upgrading mani boots
  44.         ammo="Honed Tathlum",
  45.         head="Uk'uxkaj Cap", neck="Tjukurpa Medal", ear1="Brutal Earring", ear2="Moonshade Earring",
  46.         body="Espial Gambison", hands="Hesychast's Gloves +1", ring1="Epona's Ring", ring2="Rajas Ring",
  47.         back="Anchoret's Mantle", waist="Caudata Belt", legs="Manibozho Brais", feet="Manibozho Boots" }
  48.  
  49.     sets.TP = {}
  50.     sets.TP.index = {'DD','Acc','DT',}
  51.     TP_Index = 1   
  52.     sets.TP.DD = {
  53.         ammo="Potestas Bomblet",
  54.         head="Uk'uxkaj Cap", neck="Asperity Necklace", ear1="Bladeborn Earring", ear2="Steelflash Earring",
  55.         body="Qaaxo Harness", hands="Hesychast's Gloves +1", ring1="Epona's Ring", ring2="Oneiros Ring",
  56.         back="Atheling Mantle", waist="Windbuffet Belt", legs="Quiahuiz Trousers", feet="Manibozho Boots" }
  57.    
  58.     sets.TP.Acc = { -- upgrades: 119 weapon, letalis, potentially swap in agasaya/anguinus if still issues
  59.         ammo="Honed Tathlum",
  60.         head="Uk'uxkaj Cap", neck="Asperity Necklace", ear1="Bladeborn Earring", ear2="Steelflash Earring",
  61.         body="Qaaxo Harness", hands="Hesychast's Gloves +1", ring1="Epona's Ring", ring2="Oneiros Ring",
  62.         back="Anchoret's Mantle", waist="Windbuffet Belt", legs="Manibozho Brais", feet="Manibozho Boots" }
  63.        
  64.     sets.TP.DT = {
  65.         ammo="Tantra Tathlum",
  66.         head="Uk'uxkaj Cap", neck="Twilight Torque", ear1="Merman's Earring", ear2="Merman's Earring",
  67.         body="Qaaxo Harness", hands="Hesychast's Gloves +1", ring1="Dark Ring", ring2="Dark Ring",
  68.         back="Mollusca Mantle", waist="Black Belt", legs="Quiahuiz Trousers", feet="Thurandaut Boots +1" }
  69.  
  70.     sets.aftercast = {}
  71.     sets.aftercast.Idle = set_combine(sets.TP.DD, sets.misc.Idle)
  72. end
  73.  
  74. function precast(spell)
  75.     if player.equipment.head == 'Reraise Hairpin' then disable('head')
  76.     else enable('head') end
  77.     if player.equipment.left_ear == 'Reraise Earring' then disable('ear1')
  78.     else enable('ear1') end
  79.     if player.equipment.right_ear == 'Reraise Earring' then disable('ear2')
  80.     else enable('ear2') end
  81.    
  82.     if spell.name=="Chakra" and world.day_element=="Dark" then
  83.         equip(set_combine(sets.misc.Chakra, sets.misc.SM))
  84.     elseif spell.name=="Chakra" then
  85.         equip(sets.misc.Chakra)
  86.     end
  87.    
  88.     if sets.precast[spell.english] then
  89.         equip(sets.precast[spell.english])
  90.     end
  91.  
  92.     if (spell.english=="Victory Smite" or spell.english=="Ascetic's Fury") and buffactive['Impetus'] then
  93.         equip(set_combine(sets.VS[sets.VS.index[VS_Index]], sets.misc.Impetus))
  94.     elseif spell.type=="Victory Smite" or spell.english=="Ascetic's Fury" then
  95.         equip(sets.VS[sets.VS.index[VS_Index]])
  96.     elseif spell.type=="WeaponSkill" then
  97.         equip(sets.precast.WS) 
  98.     end
  99.    
  100.     if string.find(spell.english,'Waltz') then
  101.         equip(sets.precast.Waltz)
  102.     end
  103. end
  104.  
  105. function midcast(spell)
  106. end
  107.  
  108. function aftercast(spell)
  109.     if player.status =='Engaged' then
  110.         if TP_Index == 1 then
  111.             if player.mp >= 100 then
  112.                 equip(sets.TP[sets.TP.index[TP_Index]])
  113.             elseif player.mp < 100 then
  114.                 equip(sets.TP[sets.TP.index[TP_Index]], {ring2="Rajas Ring"})
  115.             end
  116.         else
  117.             equip(sets.TP[sets.TP.index[TP_Index]])
  118.         end
  119.     else
  120.         equip(sets.aftercast.Idle)
  121.     end
  122. end
  123.  
  124. function status_change(new,old)
  125.     if T{'Idle','Resting'}:contains(new) then
  126.         equip(sets.aftercast.Idle)
  127.     elseif new == 'Engaged' then
  128.         equip(sets.TP[sets.TP.index[TP_Index]])
  129.     end
  130. end
  131.  
  132. function self_command(command)
  133.     if command == 'TP' then    
  134.         TP_Index = TP_Index +1
  135.         if TP_Index > #sets.TP.index then TP_Index = 1 end
  136.         send_command('@ input /echo >>> TP set changed to '..sets.TP.index[TP_Index]..' ')
  137.         equip(sets.TP[sets.TP.index[TP_Index]])
  138.     end
  139.    
  140.     if command == "VS" then
  141.         VS_Index = VS_Index +1
  142.         if VS_Index > #sets.VS.index then VS_Index = 1 end
  143.         send_command('@ input /echo >>> VS set changed to '..sets.VS.index[VS_Index]..' ')
  144.     end
  145. end
  146.  
  147. function select_default_macro_book()
  148.     if player.sub_job == 'NIN' then
  149.         set_macro_page(3, 1)
  150.     elseif player.sub_job == 'DNC' then
  151.         set_macro_page(5, 1)
  152.     elseif player.sub_job == 'RUN' then
  153.         set_macro_page(7, 1)
  154.     else
  155.         set_macro_page(1, 1)    
  156.     end
  157. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement