solk

solkanar_sam

Dec 21st, 2013
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.19 KB | None | 0 0
  1. function get_sets()
  2.     TP_Index = 1
  3.     Idle_Index = 1
  4.     Weapon_Index = 1
  5.    
  6.     sets.JA = {}
  7.     sets.JA.Sekkanoki = {hands="Unkai Kote +2"}
  8.     sets.JA.Seigan = {head="Unkai Kabuto +2"}
  9.     sets.JA.Meditate = {head="Myochin Kabuto", hands="Sao. Kote +2"}
  10.     sets.JA.Hasso = {legs="Unkai Haidate +2"}
  11.     sets.JA.Sengikori = {feet="Unkai Sune-Ate +2"}
  12.     sets.JA['Warding Circle'] = {head="Myochin Kabuto"}
  13.    
  14.     sets.WS = {}
  15.     sets.WS.Masamune = {}
  16.     sets.WS.Tsurumaru = {}
  17.    
  18.     sets.WS.Masamune["Tachi: Fudo"] = {ammo="Thew Bomblet",head="Otomi Helm",neck="Justiciar's Torque",ear1="Moonshade Earring",ear2="Brutal Earring",
  19.         body="Phorcys Korazin",hands="Miki. Gauntlets",ring1="Rajas Ring",ring2="Pyrosoul Ring",
  20.         back="Takaha Mantle",waist="Prosilio Belt",legs="Miki. Cuisses",feet="Mikinaak Greaves"}
  21.        
  22.     sets.WS.Tsurumaru["Tachi: Fudo"] = set_combine(sets.WS.Masamune['Tachi: Fudo'],{back="Buquwik Cape"})
  23.  
  24.     sets.WS.Masamune["Tachi: Shoha"] = {ammo="Cheruski Needle",head="Otomi Helm",neck="Ganesha's Mala",ear1="Moonshade Earring",ear2="Brutal Earring",
  25.         body="Phorcys Korazin",hands="Miki. Gauntlets",ring1="Rajas Ring",ring2="Pyrosoul Ring",
  26.         back="Buquwik Cape",waist="Prosilio Belt",legs="Otronif Brais",feet="Ejekamal Boots"}
  27.        
  28.     sets.WS.Tsurumaru["Tachi: Shoha"] = (sets.WS.Masamune["Tachi: Shoha"])
  29.  
  30.     sets.WS.General = (sets.WS.Masamune["Tachi Fudo"])
  31.    
  32.     TP_Set_Names = {"Attack","Accuracy","Ionis","Hybrid"}
  33.     sets.TP = {}
  34.     sets.TP.Masamune = {}
  35.     sets.TP.Tsurumaru = {}
  36.    
  37.     sets.TP.Masamune['Attack'] = {ammo="Hagneia Stone",head="Otomi Helm",neck="Ganesha's Mala",
  38.         ear1="Bladeborn Earring",ear2="Steelflash Earring",body="Unkai Domaru +2",hands="Otronif Gloves",
  39.         ring1="Rajas Ring",ring2="K'ayres Ring",back="Atheling Mantle",waist="Cetl Belt",
  40.         legs="Unkai Haidate +2",feet="Otronif Boots"}
  41.        
  42.     sets.TP.Tsurumaru['Attack'] = (sets.TP.Masamune['Attack'])
  43.        
  44.     sets.TP.Masamune['Accuracy'] = {ammo="Hagneia Stone",head="Yaoyotl Helm",neck="Ganesha's Mala",
  45.         ear1="Bladeborn Earring",ear2="Steelflash Earring",body="Unkai Domaru +2",hands="Otronif Gloves",
  46.         ring1="Rajas Ring",ring2="K'ayres Ring",back="Takaha Mantle",waist="Dynamic Belt +1",
  47.         legs="Unkai Haidate +2",feet="Whirlpool Greaves"}
  48.        
  49.     sets.TP.Tsurumaru['Accuracy'] = (sets.TP.Masamune['Accuracy'])
  50.        
  51.     sets.TP.Masamune['Ionis'] = (sets.TP.Masamune['Attack'])
  52.    
  53.     sets.TP.Tsurumaru['Ionis'] = set_combine(sets.TP.Masamune['Attack'],{back="Misuuchi Kappa"})
  54.        
  55.     sets.TP.Masamune['Hybrid'] = {ammo="Hagneia Stone",head="Yaoyotl Helm",neck="Twilight Torque",
  56.         ear1="Bladeborn Earring",ear2="Steelflash Earring",body="Otronif Harness",hands="Otronif Gloves",
  57.         ring1="Dark Ring",ring2="Defending Ring",back="Mollusca Mantle",waist="Goading Belt",
  58.         legs="Unkai Haidate +2",feet="Otronif Boots"}
  59.        
  60.     sets.TP.Tsurumaru['Hybrid'] = (sets.TP.Masamune['Hybrid'])
  61.    
  62.     Idle_Set_Names = {'Normal','MDT','PDT'}
  63.     sets.Idle = {}
  64.     sets.Idle.Normal = {ammo="Iron Gobbet",head="Twilight Helm",neck="Twilight Torque",ear1="Merman's Earring",ear2="Merman's Earring",
  65.         body="Twilight Mail",hands="Otronif Gloves",ring1="Dark Ring",ring2="Defending Ring",
  66.         back="Shadow Mantle",waist="Cetl Belt",legs="Ogier's Breeches",feet="Danzo Sune-Ate"}
  67.                
  68.     sets.Idle.MDT = set_combine(sets.Idle.Normal,{head="Ogier's Helm",body="Nocturnus Mail",ring1="Shadow Ring",back="Engulfer Cape",feet="Ogier's Leggings"})
  69.    
  70.     sets.Idle.PDT = set_combine(sets.Idle.Normal,{head="Nocturnus Helm",body="Mekira Meikogai",feet="Phorcys Schuhs"})
  71.    
  72. end
  73.  
  74. function precast(spell,action)
  75.     verify_equip()
  76.     if sets.JA[spell.english] then
  77.         equip(sets.JA[spell.english])
  78.     elseif spell.type=="WeaponSkill" then
  79.         if player.equipment.main == 'Masamune' then
  80.             equip(sets.WS.Masamune[spell.english])
  81.         elseif  player.equipment.main == 'Tsurumaru' then
  82.             equip(sets.WS.Tsurumaru[spell.english])
  83.         else equip(sets.WS.General) end
  84.     end
  85. end
  86.  
  87. function midcast(spell,action)
  88. end
  89.  
  90. function aftercast(spell,action)
  91.     if player.status=='Engaged' then
  92.         if player.equipment.main == 'Masamune' then
  93.             equip(sets.TP.Masamune[TP_Set_Names[TP_Index]])
  94.         elseif  player.equipment.main == 'Tsurumaru' then
  95.             equip(sets.TP.Tsurumaru[TP_Set_Names[TP_Index]])
  96.         end
  97.     else
  98.         equip(sets.Idle[Idle_Set_Names[Idle_Index]])
  99.     end
  100. end
  101.  
  102. function status_change(new,old)
  103.     if T{'Idle','Resting'}:contains(new) then
  104.         equip(sets.Idle[Idle_Set_Names[Idle_Index]])
  105.     elseif new == 'Engaged' then
  106.         if player.equipment.main == 'Masamune' then
  107.             equip(sets.TP.Masamune[TP_Set_Names[TP_Index]])
  108.         elseif  player.equipment.main == 'Tsurumaru' then
  109.             equip(sets.TP.Tsurumaru[TP_Set_Names[TP_Index]])
  110.         end
  111.     end
  112. end
  113.  
  114. function buff_change(buff,gain_or_loss)
  115. end
  116.  
  117. function self_command(command)
  118.     if command == 'toggle TP set' then
  119.         TP_Index = TP_Index +1
  120.         if TP_Index > #TP_Set_Names then TP_Index = 1 end
  121.         send_command('@input /echo ----- TP Set changed to '..TP_Set_Names[TP_Index]..' -----')
  122.         equip(sets.TP[TP_Set_Names[TP_Index]])
  123.     elseif command == 'toggle Idle set' then
  124.         Idle_Index = Idle_Index +1
  125.         if Idle_Index > #Idle_Set_Names then Idle_Index = 1 end
  126.         send_command('@input /echo ----- Idle Set changed to '..Idle_Set_Names[Idle_Index]..' -----')
  127.         equip(sets.Idle[Idle_Set_Names[Idle_Index]])
  128.     end
  129. end
Advertisement
Add Comment
Please, Sign In to add comment