R0bert199O

Untitled

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