Advertisement
ErC8D

GS_NIN

Dec 14th, 2018
250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 6.82 KB | None | 0 0
  1.  
  2.  
  3. function get_sets()
  4.  
  5. --JA sets for Precast/Midcast Functions--
  6.         sets.JA = {}
  7.         sets.JA['Mijin Gakure'] = {legs="Mochizuki Hakama +1"}
  8.        
  9.     -- TP Sets--
  10.         sets.TP = {}
  11.         sets.TP.index = {'LoH','HiH','Acc','PDT'}
  12.         TP_Index = 1
  13.        
  14.         sets.TP.LoH = {ammo="Happo Shuriken",
  15.                 head="Adhemar Bonnet +1",neck="Asperity Necklace",ear1="Suppanomimi",ear2="Brutal Earring",
  16.                 body="Adhemar Jacket +1",hands="Herculean Gloves",ring1="Rajas Ring",ring2="Epona's Ring",
  17.                 back="Bleating Mantle",waist="Windbuffet Belt +1",legs="Taeon Tights +1",feet="Herculean Boots"}
  18.     --  sets.TP.HiH = {ammo="Happo Shuriken",
  19.         --      head="Felistris Mask",neck="Asperity Necklace",ear1="Trux Earring",ear2="Brutal Earring",
  20.         --      body="Mochizuki Chainmail +1",hands="Nomkahpa Mittens +1",ring1="Rajas Ring",ring2="Epona's Ring",
  21.         --      back="Bleating Mantle",waist="Cetl Belt",legs="Mochizuki Hakama +1",feet={ name="Qaaxo Leggings", augments={'Attack+15','Evasion+15','"Dbl.Atk."+2',}}}
  22.         sets.TP.Acc = {ammo="Happo Shuriken",
  23.                 head="Dampening Tam",neck="Ej Necklace",ear1="Dudgeon Earring",ear2="Heartseeker Earring",
  24.                 body="Adhemar Jacket +1",hands="Herculean Gloves",ring1="Beeline Ring",ring2="Patricius Ring",
  25.                 back="Agema Cape",waist="Anguinus Belt",legs="Herculean Trousers",feet="Herculean Boots"}
  26.                
  27.         sets.TP.PDT = {head="Lithelimb Cap",
  28.                 body="Emet Harness +1",hands="Umuthi Gloves",ring1="Defending Ring",ring2="Patricius Ring",
  29.                 back="Mollusca Mantle",waist="Flume Belt",legs="Kaabnax Trousers",feet="Otronif Boots +1",neck="Twilight Torque"}
  30.        
  31.     --WS sets--
  32.     --Generic WS set--
  33.         sets.WS = {}
  34.         sets.WS.index = {'Reg','Acc'}
  35.         WS_Index = 1
  36.        
  37.         sets.WS.Reg = {ammo="Ginsen",
  38.                 head="Adhemar Bonnet +1",neck="Fotia Gorget",ear1="Suppanomimi",ear2="Brutal Earring",
  39.                 body="Adhemar Jacket +1",hands="Herculean Gloves",ring1="Rajas Ring",ring2="Epona's Ring",
  40.                 back="Bleating Mantle",waist="Fotia Belt",legs="Taeon Tights +1",feet="Herculean Boots"}
  41.         sets.WS.Acc = {ammo="Ginsen",
  42.                 head="Whirlpool Mask",neck="Asperity Necklace",ear1="Moonshade Earring",ear2="Brutal Earring",
  43.                 body="Mochizuki Chainmail +1",hands="Buremte Gloves",ring1="Rajas Ring",ring2="Epona's Ring",
  44.                 back="Yokaze Mantle",waist="Caudata Belt",legs="Ighwa Trousers",feet="Mochizuki Kyahan +1"}
  45.        
  46.         sets.WS.R = set_combine(sets.WS.Reg,{neck="Ygnas's Resolve +1"})
  47.        
  48.     --Blade: Hi--
  49.         sets.Hi = {}
  50.         sets.Hi.index = {'Reg','Acc'}
  51.         Hi_Index = 1
  52.        
  53.         sets.Hi.Reg = {ammo="Yetshila",
  54.                 head="Adhemar Bonnet +1",neck="Fotia Gorget",ear1="Suppanomimi",ear2="Brutal Earring",
  55.                 body="Adhemar Jacket +1",hands="Herculean Gloves",ring1="Rajas Ring",ring2="Epona's Ring",
  56.                 back="Bleating Mantle",waist="Fotia Belt",legs="Taeon Tights +1",feet="Herculean Boots"}
  57.         sets.Hi.Acc = {ammo="Yeshila",
  58.                 head="Ptica Headgear",neck="Hope Torque",ear1="Moonshade Earring",ear2="Brutal Earring",
  59.                 body="Mochizuki Chainmail +1",hands="Buremte Gloves",ring1="Rajas Ring",ring2="Patricius Ring",
  60.                 back="Yokaze Mantle",waist="Caudata",legs="Ighwa Trousers",feet="Mochizuki Kyahan +1"}
  61.    
  62.         sets.Hi.R = set_combine(sets.Hi.Reg,{neck="Ygnas's Resolve +1"})
  63.    
  64.     --Spell Sets--
  65.         sets.precast = {}
  66.         sets.precast.FC = {ammo="Impatiens",ear1="Loquacious Earring",neck="Jeweled Collar",ring2="Weatherspoon Ring +1",}
  67.        
  68.         sets.precast.FC.Ninjutsu = set_combine(sets.precast.FC,{hands="Mochizuki Tekko +1",feet="Mochizuki Kyahan +1"})
  69.         sets.precast.FC.Utsusemi = set_combine(sets.precast.FC.Ninjutsu,{body="Mochizuki Chainmail +1",neck="Magoraga Beads",
  70.                     feet="Iga Kyahan +2"})
  71.    
  72.     -----Tengu
  73.     sets.tengu = {ammo="Tengu-No-Hane"}  
  74.    
  75. end
  76.  
  77. function precast(spell,act)
  78.     if spell.type == 'JobAbility' then
  79.         if sets.JA[spell.english] then
  80.             equip(sets.JA[spell.english])
  81.         end
  82.     end
  83.    
  84.     if spell.type == 'WeaponSkill' then
  85.         equip(sets.WS[sets.WS.index[WS_Index]])
  86.     end
  87.    
  88.     if spell.english == 'Blade: Hi' then
  89.         equip(sets.Hi[sets.Hi.index[Hi_Index]])
  90.     end
  91.    
  92.     if spell.action_type == 'Ninjutsu' then
  93.         equip(sets.precast.FC.Ninjutsu)
  94.     end
  95.    
  96.     if spell.english == 'Utsusemi: Ichi' then
  97.         equip(sets.precast.FC.Utsusemi)
  98.     end
  99.    
  100.     if spell.english == 'Utsusemi: Ni' then
  101.         equip(sets.precast.FC.Utsusemi)
  102.     end
  103.    
  104.     if spell.english == 'Utsusemi: San' then
  105.         equip(sets.precast.FC.Utsusemi)
  106.     end
  107.    
  108.     if buffactive['Reive Mark'] and spell.type == 'WeaponSkill' then
  109.         equip(sets.WS.R)
  110.     end
  111.    
  112.     if buffactive['Reive Mark'] and spell.english == 'Blade: Hi' then
  113.         equip(sets.Hi.R)
  114.     end
  115.    
  116. end
  117.  
  118. function midcast(spell,act)
  119.     if spell.type == 'JobAbility' then
  120.         if sets.JA[spell.english] then
  121.             equip(sets.JA[spell.english])
  122.         end
  123.     end
  124.    
  125.     if spell.type == 'WeaponSkill' then
  126.         equip(sets.WS[sets.WS.index[WS_Index]])
  127.     end
  128.    
  129.     if spell.english == 'Blade: Hi' then
  130.         equip(sets.Hi[sets.Hi.index[Hi_Index]])
  131.     end
  132.    
  133.     if spell.action_type == 'Ninjutsu' then
  134.         equip(sets.precast.FC.Ninjutsu)
  135.     end
  136.    
  137.     if spell.english == 'Utsusemi: Ichi' then
  138.         equip(sets.precast.FC.Utsusemi)
  139.     end
  140.    
  141.     if spell.english == 'Utsusemi: Ni' then
  142.         equip(sets.precast.FC.Utsusemi)
  143.     end
  144.    
  145.     if buffactive['Reive Mark'] and spell.type == 'WeaponSkill' then
  146.         equip(sets.WS.R)
  147.     end
  148.    
  149.     if buffactive['Reive Mark'] and spell.english == 'Blade: Hi' then
  150.         equip(sets.Hi.R)
  151.     end
  152.    
  153. end
  154.  
  155.  
  156. function tengu_handler()
  157.     if world.time >= 360 and world.time < 1080 then -- 6~18
  158.         equip(sets.tengu)
  159.     end
  160. end
  161.  
  162.  
  163. function aftercast(spell,act)
  164.  
  165.     if player.status == 'Engaged' then
  166.         equip(sets.TP[sets.TP.index[TP_Index]])
  167.     end
  168.    
  169.     if player.status == 'Engaged' and buffactive['Reive Mark'] then
  170.                 equip{neck="Ygnas's Resolve +1"}
  171.     end
  172.    
  173. end
  174.  
  175.  
  176.  
  177.  
  178. function buff_change(new)
  179.  
  180.     if player.status == 'Engaged' and buffactive['Reive Mark'] then
  181.                 equip{neck="Ygnas's Resolve +1"}
  182.     end
  183.  
  184. end
  185.  
  186.  
  187. function status_change(new,old)
  188.     if new == 'Engaged' then
  189.         equip(sets.TP[sets.TP.index[TP_Index]])
  190.     end
  191.    
  192.     if player.status == 'Engaged' and buffactive['Reive Mark'] then
  193.                 equip{neck="Ygnas's Resolve +1"}
  194.     end
  195.    
  196. end
  197.  
  198. function self_command(command)
  199.     if command == 'toggle TP set' then 
  200.         TP_Index = TP_Index +1
  201.         if TP_Index > #sets.TP.index then TP_Index = 1 end
  202.         send_command('@ input /echo >>> TP set changed to: '..sets.TP.index[TP_Index]..' ')
  203.         equip(sets.TP[sets.TP.index[TP_Index]])
  204.        
  205.     elseif command == 'toggle WS set' then
  206.         WS_Index = WS_Index +1
  207.         if WS_Index > #sets.TP.index then WS_Index = 1 end
  208.         send_command('@ input /echo >>> WS set change to: '..sets.WS.index[WS_Index]..' ')
  209.         equip(sets.WS[sets.WS.index[WS_Index]])
  210.    
  211.     elseif command == 'toggle Hi set' then
  212.         Hi_Index = Hi_Index +1
  213.         if Hi_Index > #sets.Hi.index then Hi_Index = 1 end
  214.         send_command('@ input /echo >>> Blade: Hi set changed to: '..sets.Hi.index[Hi_Index]..' ')
  215.         equip(sets.Hi[sets.Hi.index[Hi_Index]])
  216.     end
  217. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement